Courses » SS2 » SS2 ICT » ICT Exam Topics » Handling Computer File - Questions and Answers

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

1

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

A

Opening the File

B

Writing Data

C

Choosing a Programming Language

D

Closing the File

correct option: c
Users' Answers & Comments
2

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

A

'r'

B

'a'

C

'w'

D

'x'

correct option: c
Users' Answers & Comments
3

What is the purpose of handling errors during file operations?

A

To increase file size

B

To improve writing speed

C

To release file resources

D

To handle potential issues gracefully

correct option: d
Users' Answers & Comments
4

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

A

Sequential File

B

CSV File

C

Binary File

D

Random Access File

correct option: b
Users' Answers & Comments
5

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

A

Writing Data

B

Opening the File

C

Error Handling

D

Closing the File

correct option: d
Users' Answers & Comments
6

In a sequential file, how is data stored?

A

With internal structure

B

In a random sequence

C

With encryption

D

In a continuous sequence

correct option: d
Users' Answers & Comments
7

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

A

append()

B

read()

C

write()

D

update()

correct option: c
Users' Answers & Comments
8

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

A

Binary Files

B

Random Access Files

C

Sequential Files

D

CSV Files

correct option: c
Users' Answers & Comments
9

What is the purpose of opening a file for writing?

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

correct option: d
Users' Answers & Comments
10

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

A

Error Handling

B

Writing Data

C

Closing the File

D

Opening the File

correct option: c
Users' Answers & Comments
Recommended: SS2 ICT Lessons
Please share this, thanks: