Handling Computer File - SS2 ICT Past Questions and Answers - page 1
Which step involves selecting a programming language that supports file manipulation?
Opening the File
Writing Data
Choosing a Programming Language
Closing the File
What mode is typically used to open a file for writing in Python?
'r'
'a'
'w'
'x'
What is the purpose of handling errors during file operations?
To increase file size
To improve writing speed
To release file resources
To handle potential issues gracefully
Which file format is suitable for storing data in a structured manner?
Sequential File
CSV File
Binary File
Random Access File
What is the last step in the process of creating a sequential file?
Writing Data
Opening the File
Error Handling
Closing the File
In a sequential file, how is data stored?
With internal structure
In a random sequence
With encryption
In a continuous sequence
Which method is used to write data to a file in Python?
append()
read()
write()
update()
What type of files have records stored in an ordered manner without internal structure?
Binary Files
Random Access Files
Sequential Files
CSV Files
What is the purpose of opening a file for writing?
To create a backup of the file
To read data from the file
To update existing data in the file
To write data to the file
Which step is crucial to ensure data is saved and file resources are released?
Error Handling
Writing Data
Closing the File
Opening the File