File Handling - غير مطلوب في الاختبار

A file that data is written to is known as a(n)
Input file
Output file
Sequential access file
Binary file
A file that data is read from is known as a(n)
Input file
Output file
Sequential access file
Binary file
Before a file can be used by a program, it must be
Formatted
Encrypted
Closed
Opened
When a program is finished using a file, it should do this.
Erase the file
Open the file
Close the file
Encrypt the file
The contents of this type of file can be viewed in an editor such as Notepad.
text file
binary file
English file
Human-readable file
This type of file contains data that has not been converted to text.
text file
binary file
Unicode file
Symbolic file
When working with this type of file, you access its data from the beginning of the file to the end of the file.
Ordered access
Binary access
Direct access
Sequential access
When working with this type of file, you can jump directly to any piece of data in the file without reading the data that comes before it.
Ordered access
Binary access
Direct access
Sequential access
This is a small "holding section" in memory that many systems write data to before writing the data to a file.
Buffer
Variable
Virtual file
Temporary file
This marks the location of the next item that will be read from a file.
Input position
Delimiter
Pointer
read position
When a file is opened in this mode, data will be written at the end of the file's existing contents.
Output mode
Append mode
Backup mode
read-only mode
This is a single piece of data within a record.
Field
Variable
Delimiter
Sub-record
When an exception is generated, it is said to have been
Built
Raised
Caught
Killed
This is a section of code that gracefully responds to exceptions.
Exception generator
Exception manipulator
Exception handler
Exception monitor
You write this statement to respond to exceptions.
Run/handle
Try/except
Try/handle
Attempt/except
When working with a sequential access file, you can jump directly to any piece of data in the file without reading the data that comes before it.
True
False
When you open a file that file already exists on the disk using the 'w' mode, the contents of the existing file will be erased.
True
False
The process of opening a file is only necessary with input files. Output files are automatically opened when data is written to them.
True
False
When an input file is opened, its read position is initially set to the first item in the file.
True
False
When a file that already exists is opened in append mode, the file's existing contents are erased.
True
False
If you do not handle an exception, it is ignored by the Python interpreter and the program continues to execute.
True
False
You can have more than one except clause in a try/except statement.
True
False
The else suite in a try/except statement executes only if a statement in the try suite raises an exception.
True
False
The finally suite in a try/except statement executes only if no exceptions are raised by statements in the try suite.
True
False
{"name":"File Handling - غير مطلوب في الاختبار", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"A file that data is written to is known as a(n), A file that data is read from is known as a(n), Before a file can be used by a program, it must be","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}
Powered by: Quiz Maker