System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Chapter: 88
Q1861:
lpStartupInfo cannot be NULL.
A. A
B. B
Correct Answer:
B
Chapter: 88
Q1862:
Setting bInheritHandles to TRUE allows:
A. Thread termination
B. Process scheduling
C. Inheriting of parent's handles
D. Creation of child threads
Correct Answer:
C
Chapter: 88
Q1863:
The child process inherits all parent process attributes by default.
A. A
B. B
Correct Answer:
B
Chapter: 88
Q1864:
lpProcessAttributes and lpThreadAttributes are both optional.
A. A
B. B
Correct Answer:
A
Chapter: 88
Q1865:
Which of the following CreateProcess flags starts the process without a console window?
A. CREATE_NEW_CONSOLE
B. CREATE_SUSPENDED
C. CREATE_UNICODE_ENVIRONMENT
D. DETACHED_PROCESS
Correct Answer:
D
Chapter: 88
Q1866:
ResumeThread() is called to:
A. Terminate suspended thread
B. Start a suspended thread
C. Restart a failed process
D. Stop thread execution
Correct Answer:
B
Chapter: 88
Q1867:
The command line of a process is specified by ______ in CreateProcess.
A. lpApplicationName
B. lpCommandLine
C. lpStartupInfo
D. lpEnvironment
Correct Answer:
B
Chapter: 89
Q1868:
Process IDs are ______ for the entire lifetime of the process.
A. temporary
B. shared
C. unique
D. variable
Correct Answer:
C
Chapter: 89
Q1869:
What happens to a process ID when the process is destroyed?
A. It is deleted permanently
B. It is invalidated
C. It is stored in logs
D. It causes an error
Correct Answer:
B
Chapter: 89
Q1870:
Can a process ID be reused by a newly created process?
A. No
B. Yes, immediately
C. Yes, but only after destruction
D. Only by system processes
Correct Answer:
C
Chapter: 89
Q1871:
A process can have multiple ______ with different security attributes.
A. names
B. threads
C. IDs
D. handles
Correct Answer:
D
Chapter: 89
Q1872:
Some process management functions use process ______.
A. names
B. paths
C. handles and IDs
D. files
Correct Answer:
C
Chapter: 89
Q1873:
Handles are used for ______ purpose functions.
A. single
B. security
C. general
D. process-specific
Correct Answer:
C
Chapter: 89
Q1874:
Which of the following must be closed when no longer required?
A. Process ID
B. Process path
C. Process handle
D. Process memory
Correct Answer:
C
Chapter: 89
Q1875:
What is required for handle-based function calls?
A. Process IDs
B. Process command line
C. Process handles
D. Process group IDs
Correct Answer:
C
Chapter: 89
Q1876:
Environment information is passed to the new process by ______.
A. SetProcessInfo()
B. CreateProcess()
C. GetProcessData()
D. InitEnv()
Correct Answer:
B
Chapter: 89
Q1877:
After a process is created, changes in the parent’s environment will affect the child process.
A. A
B. B
Correct Answer:
B
Chapter: 89
Q1878:
Process handles are similar to ______ handles in their usage.
A. thread
B. heap
C. file
D. memory
Correct Answer:
C
Chapter: 89
Q1879:
Each process in Windows is considered ______.
A. part of system
B. linked to parent
C. tightly coupled
D. entirely independent
Correct Answer:
D
Chapter: 89
Q1880:
Changing the working directory in the parent process ______ affect the child’s working directory.
A. does not
B. always
C. sometimes
D. automatically
Correct Answer:
A