Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Mcq1- Mcq-2- Mcq-3- Mcq-4- Tell me these MCQ correct answer please What does readline() function do? select all that applies * returns all lines from
Mcq1-
Mcq-2-
Mcq-3-
Mcq-4-
Tell me these MCQ correct answer please
What does readline() function do? select all that applies * returns all lines from a file as string does not keep the trailing new line character returns one line from a file as a string inside a list returns one line from a file as string keeps the trailing new line character What does readlines() function do? O returns a list containing each line of a file O reads and prints all the line returns a tuple containing each line of a file O reads all the line at once and does nothing If you write open('abc.txt'), in which mode python will open the file by default? O read mode O write mode O append mode random mode O none of the options What will be the correct code if you want to open a file named 'abc.txt" located in 'C:\users\pc desktop ? O open("C:\\users\\pal\desktop\\aba txt") open(C:\\users\\por desktop yaba.txt) O O O C open("C:\users\pe desktop") open(C:\\Users\pek desktop N) O open("C:\users\po desktop abe txt")Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started