System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Chapter: 28
Q621:
The second argument to GetCurrentDirectory is used for ______.
A. file handle
B. file size
C. path length
D. directory storage buffer
Correct Answer:
D
Chapter: 28
Q622:
What is the condition for "Pathname is too long" error?
A. lenCurDir < 0
B. lenCurDir == 0
C. lenCurDir > DIRNAME_LEN
D. lenCurDir == MAX_PATH
Correct Answer:
C
Chapter: 28
Q623:
PrintMsg is used to output ______ to the console.
A. errors
B. user input
C. current directory
D. directory list
Correct Answer:
C
Chapter: 28
Q624:
The macro MAX_PATH is used to define ______.
A. maximum length of the filename
B. maximum buffer for printf
C. maximum size of file content
D. maximum length of a directory path
Correct Answer:
D
Chapter: 28
Q625:
pwdBuffer is used to store the ______.
A. command-line input
B. output message
C. current directory path
D. console error message
Correct Answer:
C
Chapter: 28
Q626:
pwdBuffer contains ______ after a successful call to GetCurrentDirectory.
A. error message
B. current directory path
C. error code
D. empty string
Correct Answer:
B
Chapter: 28
Q627:
When lenCurDir > DIRNAME_LEN, the program will call ______.
A. PrintMsg()
B. ReportError()
C. GetStdHandle()
D. GetCurrentDirectory()
Correct Answer:
B
Chapter: 28
Q628:
lenCurDir is used to store the result of ______.
A. PrintMsg()
B. GetStdHandle()
C. GetCurrentDirectory()
D. ReportError()
Correct Answer:
C
Chapter: 28
Q629:
The code uses TCHAR for character type to support ______.
A. only ASCII
B. unicode and ANSI
C. digits only
D. alphabetic only
Correct Answer:
B
Chapter: 28
Q630:
GetStdHandle(STD_OUTPUT_HANDLE) returns handle to ______.
A. console error
B. device output
C. console output
D. file output
Correct Answer:
C
Chapter: 29
Q631:
Early file systems supported which file size limit?
A. 12-bit
B. 64-bit
C. 32-bit
D. 8-bit
Correct Answer:
A
Chapter: 29
Q632:
Which file system type supported a maximum file size of 4GB?
A. NTFS
B. FAT32
C. EXT4
D. FAT
Correct Answer:
B
Chapter: 29
Q633:
What is the theoretical file size limit of NTFS?
A. 2^32
B. 4GB
C. 2^64
D. 1TB
Correct Answer:
C
Chapter: 29
Q634:
Files with extremely large size are referred to as _______.
A. extended files
B. huge files
C. shared files
D. super files
Correct Answer:
B
Chapter: 29
Q635:
The file size limit of 2^32 bytes is approximately equal to _______.
A. 2GB
B. 1TB
C. 4GB
D. 512MB
Correct Answer:
C
Chapter: 29
Q636:
Windows provides certain ______ to handle 64-bit file systems.
A. directories
B. interfaces
C. APIs
D. functions
Correct Answer:
C
Chapter: 29
Q637:
For most general applications, ______ file space is sufficient.
A. 8-bit
B. 64-bit
C. 12-bit
D. 32-bit
Correct Answer:
D
Chapter: 29
Q638:
The shift from 32-bit to 64-bit systems was influenced by ______.
A. hardware failures
B. decreasing storage use
C. technological advancements
D. user complaints
Correct Answer:
C
Chapter: 29
Q639:
The term 2^64 bytes refers to ______ file support.
A. standard
B. medium-scale
C. small-hardware
D. huge
Correct Answer:
D
Chapter: 29
Q640:
One reason to understand 64-bit file systems is due to ______.
A. old file formats
B. rising file sizes
C. internet speed
D. limited memory
Correct Answer:
B