Web2 rb –same as r mode but with binary file 3 r+ - both reading and writing. The file pointer placed at the beginning of the file. 4 rb+ - same as r+ mode but with binary file 5 w - writing only. Overwrites the file if the file exists. If not, creates a new file for writing. 6 wb–same as w mode but with binary file. 7 w+- both writing and ... WebApr 11, 2024 · Which function open file in python? open () new () Processing of Text file is faster than binary files. (T/F) True False Which mode create new file if the file does not exist? write mode append mode both Which statement will return one line from a file (file object is 'f')? f.readline () f.readlines () f.read () f.line readlines () method return?
MOST IMPORTANT QUESTIONS BASED ON BINARY FILE
WebAug 25, 2024 · Class 12 Binary File – Practicals The next section of Practical File Computer Science Class 12 consists of programs based on CSV Files. Let’s see them! Programs based on data file handling CSV files [1] Read a CSV file top5.csv and print the contents in a proper format. The data for top5.csv file are as following: curly fries fast food
2nd PUC Computer Science Question Bank Chapter 12 Data File …
WebSep 18, 2024 · Binary File MCQ Question Bank For Class 12 1. Out of the followings which mode is used for both reading and writing in binary format in file? a) wb b) wb+ c) w d) w+ Show Answer 2. Which of the following is not true about binary files? a) Binary files are store in terms of bytes b) When you open binary file in text editor will show garbage … WebApr 7, 2024 · Method 1 – Modifying a dictionary with fresh key and value ex. d= {1:’A’,2:’B’}; d [3]=’C’. Method 2 – With a function setdefault ex. d= {1:’A’,2:’B’};d.setdefault (3,’C’) Samira wants to remove an element by value. Suggest her a function name to accomplish her task. WebThe course Computer Science class XII is divided into three units: Computational thinking and Programing – 2 Computer Networks Database Management Click on the read more button to read detailed and topic-wise notes, assignments, and practical lists for class 12 computer science. curly fries hosta size