Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Chapter: 5
Q141:
Each API in Windows is associated with
A. a process name
B. A data file
C. A list of parameters
D. A thread ID
Correct Answer: C
Chapter: 5
Q142:
For each API, how many parameters are required for any operation?
A. All must be used
B. Only specific ones
C. None of them
D. Only 1
Correct Answer: B
Chapter: 5
Q143:
What does Windows provide to support multitasking and multithreading?
A. Thread management
B. Pipes only
C. Memory expansion
D. Synchronization constructs
Correct Answer: D
Chapter: 5
Q144:
Which feature helps Windows arbitrate among resources during multitasking?
A. Error handling
B. Exception throwing
C. Synchronization constructs
D. APIs
Correct Answer: C
Chapter: 5
Q145:
Windows API names are typically
A. Short and random
B. Long and descriptive
C. Non-English
D. Numeric strings
Correct Answer: B
Chapter: 5
Q146:
Which of the following is a predefined Windows data type for storing logical values?
A. INT
B. FLOAT
C. BOOL
D. CHAR
Correct Answer: C
Chapter: 5
Q147:
Which predefined Windows data type is used to reference an object?
A. STR
B. BOOL
C. HANDLE
D. DWORD
Correct Answer: C
Chapter: 5
Q148:
LPTSTR is used as
A. a file handler
B. An integer
C. Pointer to a string
D. Array
Correct Answer: D
Chapter: 5
Q149:
What data type in Windows represents a 32-bit unsigned integer?
A. LONG
B. BOOL
C. DOUBLE
D. DWORD
Correct Answer: D
Chapter: 5
Q150:
Which symbol is avoided in Windows data types?
A. &
B. *
C. #
D. @
Correct Answer: B
Chapter: 5
Q151:
Hungarian notation helps in
A. Memory allocation
B. Network configuration
C. Identifying variable types
D. Sorting data
Correct Answer: C
Chapter: 5
Q152:
The notation 'lpsz' in a variable name such as 'lpszFilename' represents
A. a looped function
B. A string terminator
C. A long pointer to zero terminated string
D. A license key
Correct Answer: C
Chapter: 5
Q153:
Hungarian notation uses ______ to indicate variable type
A. Uppercase prefixes
B. Variable suffixes
C. Lowercase prefixes
D. Pointer symbols
Correct Answer: C
Chapter: 5
Q154:
Which header file contains all Windows API prototypes and data types?
A. io.h
B. windows.h
C. main.h
D. api.h
Correct Answer: B
Chapter: 5
Q155:
An object in Windows OS can be referenced only through
A. a pointer
B. a handle
C. a function address
D. a DLL
Correct Answer: B
Chapter: 5
Q156:
If an application tries to access a Windows object directly, Windows
A. Allows it
B. Ignores the action
C. Throws an exception
D. Generates random output
Correct Answer: C
Chapter: 5
Q157:
Objects like DLLs, pipes, and memory in Windows are considered
A. as files
B. as variables
C. as system resources
D. as data types
Correct Answer: C
Chapter: 5
Q158:
To access and operate on objects in Windows, one must use
A. Handles only
B. Windows API functions
C. Command Prompt
D. Mouse actions
Correct Answer: B
Chapter: 5
Q159:
Parameters in Windows APIs
A. Are never needed
B. Must all be used
C. Each has its own significance
D. Have no effect
Correct Answer: C
Chapter: 5
Q160:
DWORD in Windows represents
A. a floating-point number
B. Unsigned 64-bit integer
C. Unsigned 32-bit integer
D. Handle type
Correct Answer: C

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now