Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q771: If a record's referenceCount is incremented, what does it signify?
  • A: The record has been updated
  • B: The record is empty
  • C: The record is deleted
  • D: The record is locked
View Answer
A

Q772: What type of file is created when argc > 2 and _ttoi(argv[2]) <= 0?
  • A: Existing file
  • B: New file
  • C: Read-only file
  • D: Empty file
View Answer
A

Q773: The file header is written using which function?
  • A: ReadFile
  • B: WriteFile
  • C: SetFilePointerEx
  • D: CloseHandle
View Answer
B

Q774: What happens if WriteFile fails when updating the record?
  • A: ReportError is called
  • B: The program silently continues
  • C: The record is deleted
  • D: The program quits silently
View Answer
A

Q775: In the main loop, what is the condition to exit?
  • A: Command 'q' is entered
  • B: Command 'x' is entered
  • C: EOF is reached
  • D: Record number exceeds numRecords
View Answer
A

Q776: Which structure member contains the time the record was last updated?
  • A: recordCreationTime
  • B: recordUpdateTime
  • C: recordLastRefernceTime
  • D: dataString
View Answer
B

Q777: What does the _tscanf function read from the user?
  • A: Command character and record number
  • B: Command only
  • C: Record number only
  • D: File name
View Answer
A

Q778: What is the purpose of the headerChange boolean?
  • A: Indicates if header data changed
  • B: Indicates if record data changed
  • C: Indicates if file is corrupted
  • D: Indicates if file is empty
View Answer
A

Q779: Which system header is likely included for SYSTEMTIME and DWORD types?
  • A: Windows.h
  • B: Stdlib.h
  • C: Stdio.h
  • D: String.h
View Answer
A

Q780: Which function is called to close the file handle?
  • A: CloseFile
  • B: CloseHandle
  • C: FileClose
  • D: CloseStream
View Answer
B

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now