This is theory can you help me also explain to me what the asnwer is and this is
ID: 3594818 • Letter: T
Question
This is theory can you help me also explain to me what the asnwer is and this is python
D Question 1 which of the following statements are TRUE? Check all that apply. uentiatieaccess means that you have to read data from the beginning of the file before reading data stored at the end In Python, the first agurment to function open specifies the mode in which the file will be opened. G When a piece of data is written to a tile. it is copied from a vairiable in RAM to the ile After processing a hic the hile should be closed DQuestion 4 3 pts Which of the following statement are TRUE? Check all that apply. when a file is open for reading its read position is set to the beginning of the file when a file is open for reading special value known asa read position is internaly maintained for that file. A file read position is updated each time an item is read from that file. When opening a file for writing using the w mode, the new file gets to be created on the disk when opening a fife for writing using the a, mode, the new file erases the old 1e. D Question 6 3 pts Which of the following statements regarding Program 6-10 are TRUE? (Check all that apply) The loop presented in the progran acts as if the readline statement were repeated for all lines in the te Second time through the loop variable line contains the second line of Salesber hle. The for loop presented in the program automaticaly reads a file line by line, without explicit call to readline The loop presented in te program automaticaly stops when when it reads the last line in the fle. D First time through the looo variable fine contains the hrst line of sales tat hileExplanation / Answer
Question 1:
a) True, before processing we need to open file i.e it can be opened . by programmer
b) True, Sequential access can access the records one by one from beginning till the end
c) False, the first argument is the fle name.
d) True, Piece of data is written from RAM to file
e) True, file should be closed
Question 4:
a) True
b) True
c) True
d) True, new file gets creatd and any old file will be deleted with that name
e) False, append mode will append existing file
Question 6:
a) True
b) True
c) True
d) True
e) True
Thanks, let me know if there is any concenr.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.