System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q461: The function _memtchr() is used to check if a character exists within a _______.
- A: String
- B: Buffer
- C: Flag array
- D: Pointer
View Answer
A
Q462: What is the return type of the Options() function?
- A: DWORD
- B: BOOL
- C: VOID
- D: INT
View Answer
A
Q463: In the Options() function, what type is the argv parameter?
- A: LPCTSTR[]
- B: LPBOOL[]
- C: DWORD[]
- D: CHAR[]
View Answer
A
Q464: Which function is called at the end of variable argument processing?
- A: va_start
- B: va_end
- C: va_arg
- D: va_copy
View Answer
B
Q465: What happens if the Options() function encounters an argument not starting with ‘-‘?
- A: It is ignored
- B: It is treated as a file name
- C: It stops processing
- D: It sets an error
View Answer
C
Q466: The CatFile function processes data in chunks of size _______.
- A: BUF_SIZE
- B: argc
- C: DWORD
- D: LPBOOL
View Answer
A
Q467: Which of the following is NOT true about the Options() function?
- A: It uses variable argument lists
- B: It parses command line options
- C: It copies file content
- D: It returns the argument index where parsing ended
View Answer
C
Q468: The Caesar Cipher replaces each alphabet with another alphabet placed ______ positions forward.
- A: n
- B: c
- C: m
- D: 26
View Answer
A
Q469: In Caesar Cipher, the text after encryption is called _______.
- A: Plain text
- B: Encrypted text
- C: Cipher text
- D: Decrypted text
View Answer
C
Q470: The original text before encryption is known as _______.
- A: Cipher text
- B: Plain text
- C: Encrypted text
- D: Decrypted text
View Answer
B