
Textboob MCQs Chapter 6 - Files

Quiz
•
Computers
•
12th Grade
•
Medium
vihutuo paira
Used 3+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a solid argument for using file handling?
It is not possible to store all data produced by the program in the main memory
It is used for persistent storage
Both
None of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In which of the format the end of the line is denoted by \n and \r
Text
Binary
Both
None of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To be able to use a file it must be opened. The reason for doing so is
To allocate memory to the object so formed
To specify the access mode
To specify the offset (optional)
All of the above
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In f = open("abc.txt", "r"), the offset is
0 from the beginning
0 from the end
Random
None of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many arguments does the open function take?
1
2
3
None of the above
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The file must be closed, if it is opened in which of the following mode?
r
w
both
None of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If the file is not opened successfully, which of the following exception is raised?
File not found
IOERROR
IO
None of these
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
General ICT Questions (Part 1)

Quiz
•
5th - 12th Grade
20 questions
History of Computers & Internet Quiz

Quiz
•
9th - 12th Grade
20 questions
Data handling using pandas and Data visualization

Quiz
•
12th Grade
20 questions
Linux Directory Structures

Quiz
•
10th Grade - University
20 questions
U01 - Command Line & Binary/Decimal Test

Quiz
•
9th - 12th Grade
24 questions
Photoshop Certification Vocabulary Part 1

Quiz
•
11th Grade - University
20 questions
DD1 Semester 1 Exam Review: Thursday

Quiz
•
12th Grade
20 questions
Networking Elements: GCSE 9-1

Quiz
•
9th Grade - University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade