Bright Tutorials
Home
Courses
Solutions
Videos
Q&A
Blogs
Downloads
Login
Enquiry
Home
Solutions
CBSE
Class 12
Computer Science
File Handling
Question 2
CBSE
Class 12
Computer Science
Question 9 of 145
File Handling — Question 2
Back to all questions
2
Question
Question 2
What would be the data type of variable data in following statements ?
data = f.read()
data = f.read(10)
data = f.readline()
data = f.readlines()
Answer
data = f.read() — Variable data will be string data type.
data = f.read(10) — Variable data will be string data type.
data = f.readline() — Variable data will be string data type.
data = f.readlines() — Variable data will be list data type.
Previous
Question 1
Next
Question 3