System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q381: Windows supports which of the following besides generic data types?
- A: Generic functions
- B: Only Unicode
- C: Only ASCII
- D: Only macros
View Answer
A
Q382: Which generic function is used instead of lstrcmp()?
- A: _tcscmp()
- B: _lstrcmp()
- C: _tcscmpi()
- D: _lstrcmpi()
View Answer
A
Q383: Which generic function compares strings ignoring case?
- A: _tcscmp()
- B: _lstrcmp()
- C: _tcscmpi()
- D: _lstrcmpi()
View Answer
C
Q384: Which function is used to convert characters to uppercase and works with Unicode?
- A: CharLower()
- B: CharUpper()
- C: CharToUpper()
- D: UpperChar()
View Answer
B
Q385: The function IsCharAlphaNumeric() checks whether a character is _______.
- A: Alphabetic only
- B: Numeric only
- C: Alphanumeric
- D: Special character
View Answer
C
Q386: Which function compares strings taking locale settings into account?
- A: CompareText()
- B: CompareString()
- C: StringCompare()
- D: LocaleCompare()
View Answer
B
Q387: The generic version of main() function in Windows is written as _______.
- A: int main(int argc, char *argv[])
- B: int _tmain(int argc, LPTSTR argv[])
- C: void main()
- D: int _main(int argc, char *argv[])
View Answer
B
Q388: Which header files must be included before the generic main() function?
- A: stdio.h and stdlib.h
- B: windows.h and tchar.h
- C: string.h and ctype.h
- D: tchar.h and stdio.h
View Answer
B
Q389: Windows API functions often have two variants to support different character types. TextOut function variants are _______.
- A: TextOutA and TextOutB
- B: TextOutA and TextOutW
- C: TextOut16 and TextOut32
- D: TextOutW and TextOutX
View Answer
B
Q390: The suffix 'A' in Windows API function names usually indicates _______.
- A: Unicode version
- B: ASCII version
- C: Generic version
- D: 32-bit version
View Answer
B