Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q371: Unicode characters are typically represented with how many bits?
  • A: 8-bit
  • B: 16-bit
  • C: 32-bit
  • D: 64-bit
View Answer
B

Q372: Which macro includes all Unicode function headers in Windows API?
  • A: #define_UNICODE
  • B: #defineUNICODE
  • C: #defineUNICODE_FUNC
  • D: #define_UNICODE_FUNC
View Answer
B

Q373: What is the purpose of the #define_UNICODE macro?
  • A: Includes all function headers
  • B: Includes variable types
  • C: Enables ASCII support
  • D: Disables Unicode support
View Answer
B

Q374: Generic code in Windows can work for which character types?
  • A: Only ASCII
  • B: Only Unicode
  • C: Both ASCII and Unicode
  • D: None of these
View Answer
C

Q375: Which header file should be included for generic C functions using TCHAR?
  • A: stdio.h
  • B: stdlib.h
  • C: tchar.h
  • D: string.h
View Answer
C

Q376: Which operator is recommended to use for sizes instead of hard coding in Unicode programming?
  • A: sizeof()
  • B: length()
  • C: strlen()
  • D: count()
View Answer
A

Q377: What is the role of the _itot() function in generic programming?
  • A: Convert integer to ASCII
  • B: Convert integer to TCHAR
  • C: Convert string to integer
  • D: Convert float to integer
View Answer
B

Q378: The _stprintf() function is used to _______.
  • A: Format strings in ASCII
  • B: Format strings in generic TCHAR format
  • C: Format only Unicode strings
  • D: Format binary data
View Answer
B

Q379: Which macro is used to represent string constants in generic programming?
  • A: _TEXT or _T
  • B: _ASCII or _U
  • C: _STR or _TXT
  • D: _CHAR or _WIDE
View Answer
A

Q380: Why should generic code be written instead of ASCII code in latest Windows APIs?
  • A: To support older software
  • B: Because Unicode is deprecated
  • C: Because most APIs expect Unicode
  • D: To reduce memory usage
View Answer
C

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now