Read and download free pdf of CBSE Class 12 Computer Science Binary Files Worksheet. Download printable Computer Science Class 12 Worksheets in pdf format, CBSE Class 12 Computer Science Binary Files Worksheet has been prepared as per the latest syllabus and exam pattern issued by CBSE, NCERT and KVS. Also download free pdf Computer Science Class 12 Assignments and practice them daily to get better marks in tests and exams for Class 12. Free chapter wise worksheets with answers have been designed by Class 12 teachers as per latest examination pattern
Binary Files Computer Science Worksheet for Class 12
Class 12 Computer Science students should refer to the following printable worksheet in Pdf in Class 12. This test paper with questions and solutions for Class 12 Computer Science will be very useful for tests and exams and help you to score better marks
Class 12 Computer Science Binary Files Worksheet Pdf
Multiple Choice Questions
Question. Which of the following statements is true?
a. load method of pickle module gives error if EOF is reached
b. load method of pickle module returns an empty string is EOF is reached
c. load method of pickle module returns -1 if EOF is reached
d. None of the above
Answer. A
Question. Shylesh is writing python code to append a new record to a binary file ‘salary.dat’ that is storing list objects containing [empid, empname, salary]. Consider the following code written by him.
import pickle
f = open(‘salary.dat’, ‘ab’)
id = input(“Enter employee id : ”)
name = input(“Enter name of employee: ”)
sal = float(input(“Enter salary :”))
record = ___________ #Blank 1
pickle.dump(record,f)
f.close()
Identify the missing part of Blank 1.
a. [id,name,sal]
b. id, name, sal
c. [empid, empname, salary]
d. empid, empname, salary
Answer. A
Question. Which is the valid syntax to write an object onto a binary file opened in the write mode?
a. pickle.dump(<object to be written>, <file handle of open file>)
b. pickle.dump(<file handle of open file>, <object to be written>)
c. dump.pickle(<object>, <file handle>)
d. None of the above
Answer. A
Question. What is the binary file mode associated with “ file must exist, otherwise error will be raised and reading and writing can take place”.
a. wb+
b. w+
c. rb
d. rb+
Answer. D
Question. Rahul is trying to write a tuple t = (10,20,30,40,50) on a binary file notebook.bin. Consider the following code written by him.
import pickle #statement 1
t = (10,20,30,40,50) #statement 2
myfile = open("notebook.bin",'w') #statement 3
pickle.dump(t, myfile) #statement 4
myfile.close()
Which of the following statement contains an error?
a. Statement 1
b. Statement 2
c. Statement 3
d. Statement 4
Answer. C
Question. In which file, no delimiters are used for line and no translations occur?
(a) Text file
(b) Binary file
(c) csv file
(d) None of the above
Answer. B
Question. Choose the file mode used to write data into binary file.
(a) rb
(b) wb
(c) r+
(d) w+
Answer. B
Question. Which of the following function is used to read data from a binary file?
(a) write
(b) load
(c) dump
(d) scan
Answer. B
Question. Dima is trying to read a list l1 from a binary file ‘num’. Consider the following code written by her.
import pickle
f1 = open("num",'rb')
l1=__________________#Statement 1
print(l1)
f1.close()
Identify the missing code in Statement 1.
(a) pickle.load(f1)
(b) pickle.load(l1,f1)
(c) pickle.read(f1)
(d) pickle.dump(l1,f1)
Answer. A
More Study Material
CBSE Class 12 Computer Science Binary Files Worksheet
The above practice worksheet for Binary Files has been designed as per the current syllabus for Class 12 Computer Science released by CBSE. Students studying in Class 12 can easily download in Pdf format and practice the questions and answers given in the above practice worksheet for Class 12 Computer Science on a daily basis. All the latest practice worksheets with solutions have been developed for Computer Science by referring to the most important and regularly asked topics that the students should learn and practice to get better scores in their examinations. Studiestoday is the best portal for Printable Worksheets for Class 12 Computer Science students to get all the latest study material free of cost.
Worksheet for Computer Science CBSE Class 12 Binary Files
Teachers of studiestoday have referred to the NCERT book for Class 12 Computer Science to develop the Computer Science Class 12 worksheet. If you download the practice worksheet for the above chapter daily, you will get better scores in Class 12 exams this year as you will have stronger concepts. Daily questions practice of Computer Science printable worksheet and its study material will help students to have a stronger understanding of all concepts and also make them experts on all scoring topics. You can easily download and save all revision Worksheets for Class 12 Computer Science also from www.studiestoday.com without paying anything in Pdf format. After solving the questions given in the practice sheet which have been developed as per the latest course books also refer to the NCERT solutions for Class 12 Computer Science designed by our teachers
Binary Files worksheet Computer Science CBSE Class 12
All practice paper sheet given above for Class 12 Computer Science have been made as per the latest syllabus and books issued for the current academic year. The students of Class 12 can be assured that the answers have been also provided by our teachers for all test paper of Computer Science so that you are able to solve the problems and then compare your answers with the solutions provided by us. We have also provided a lot of MCQ questions for Class 12 Computer Science in the worksheet so that you can solve questions relating to all topics given in each chapter. All study material for Class 12 Computer Science students have been given on studiestoday.
Binary Files CBSE Class 12 Computer Science Worksheet
Regular printable worksheet practice helps to gain more practice in solving questions to obtain a more comprehensive understanding of Binary Files concepts. Practice worksheets play an important role in developing an understanding of Binary Files in CBSE Class 12. Students can download and save or print all the printable worksheets, assignments, and practice sheets of the above chapter in Class 12 Computer Science in Pdf format from studiestoday. You can print or read them online on your computer or mobile or any other device. After solving these you should also refer to Class 12 Computer Science MCQ Test for the same chapter.
Worksheet for CBSE Computer Science Class 12 Binary Files
CBSE Class 12 Computer Science best textbooks have been used for writing the problems given in the above worksheet. If you have tests coming up then you should revise all concepts relating to Binary Files and then take out a print of the above practice sheet and attempt all problems. We have also provided a lot of other Worksheets for Class 12 Computer Science which you can use to further make yourself better in Computer Science
You can download the CBSE Practice worksheets for Class 12 Computer Science Binary Files for the latest session from StudiesToday.com
Yes, you can click on the links above and download chapter-wise Practice worksheets in PDFs for Class 12 for Computer Science Binary Files
Yes, the Practice worksheets issued for Binary Files Class 12 Computer Science have been made available here for the latest academic session
You can easily access the links above and download the Class 12 Practice worksheets Computer Science for Binary Files
There is no charge for the Practice worksheets for Class 12 CBSE Computer Science Binary Files you can download everything free
Regular revision of practice worksheets given on studiestoday for Class 12 subject Computer Science Binary Files can help you to score better marks in exams
Yes, studiestoday.com provides all the latest Class 12 Computer Science Binary Files test practice sheets with answers based on the latest books for the current academic session
Yes, studiestoday provides worksheets in Pdf for Binary Files Class 12 Computer Science in mobile-friendly format and can be accessed on smartphones and tablets.
Yes, practice worksheets for Class 12 Computer Science Binary Files are available in multiple languages, including English, Hindi