ExamVeda
Login
Home
21
Correct syntax of file.writelines() is?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
22
Which is/are the basic I/O connections in file?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
23
What is the use of "a" in file handling?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
24
Which are the two built-in functions to read a line of text from standard input, which by default comes from the keyboard?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
25
How can you check the current position in a file in Python?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
26
How can you check if a file exists in Python before opening it?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
27
Which function is used to read single line from file?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
28
Which of the following are the modes of both writing and reading in binary format in file?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
29
To read the entire remaining contents of the file as a string from a file object infile, we use . . . . . . . .
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
30
Which function is used to read all the characters?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board