Handling Computer File - SS2 ICT Past Questions and Answers - page 1

1

Which step involves selecting a programming language that supports file manipulation?

View related lesson
A

Opening the File

B

Writing Data

C

Choosing a Programming Language

D

Closing the File

Ask EduPadi AI for a detailed answer

Share this question

2

What mode is typically used to open a file for writing in Python?

View related lesson
A

'r'

B

'a'

C

'w'

D

'x'

Ask EduPadi AI for a detailed answer

Share this question

3

What is the purpose of handling errors during file operations?

View related lesson
A

To increase file size

B

To improve writing speed

C

To release file resources

D

To handle potential issues gracefully

Ask EduPadi AI for a detailed answer

Share this question

4

Which file format is suitable for storing data in a structured manner?

View related lesson
A

Sequential File

B

CSV File

C

Binary File

D

Random Access File

Ask EduPadi AI for a detailed answer

Share this question

5

What is the last step in the process of creating a sequential file?

View related lesson
A

Writing Data

B

Opening the File

C

Error Handling

D

Closing the File

Ask EduPadi AI for a detailed answer

Share this question

6

In a sequential file, how is data stored?

View related lesson
A

With internal structure

B

In a random sequence

C

With encryption

D

In a continuous sequence

Ask EduPadi AI for a detailed answer

Share this question

7

Which method is used to write data to a file in Python?

View related lesson
A

append()

B

read()

C

write()

D

update()

Ask EduPadi AI for a detailed answer

Share this question

8

What type of files have records stored in an ordered manner without internal structure?

View related lesson
A

Binary Files

B

Random Access Files

C

Sequential Files

D

CSV Files

Ask EduPadi AI for a detailed answer

Share this question

9

What is the purpose of opening a file for writing?

View related lesson
A

To create a backup of the file

B

To read data from the file

C

To update existing data in the file

D

To write data to the file

Ask EduPadi AI for a detailed answer

Share this question

10

Which step is crucial to ensure data is saved and file resources are released?

View related lesson
A

Error Handling

B

Writing Data

C

Closing the File

D

Opening the File

Ask EduPadi AI for a detailed answer

Share this question

Recommended:SS2 ICT Lessons

Share this page