Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Chapter: 47
Q981:
The parameter to display hidden registry items in Get-ChildItem is called ________.
A. Force
B. ShowHidden
C. IncludeHidden
D. Reveal
Correct Answer: A
Chapter: 47
Q982:
Get-ChildItem is used in PowerShell to list registry keys similar to listing files in a ________.
A. directory
B. database
C. spreadsheet
D. file
Correct Answer: A
Chapter: 47
Q983:
The Registry provider in PowerShell can be accessed using the shortened name ________.
A. Registry
B. MicrosoftPowerShell
C. PSRegistry
D. RegProv
Correct Answer: A
Chapter: 47
Q984:
To list registry keys under HKEY_LOCAL_MACHINE, you would use Get-ChildItem -Path ________.
A. HKLM:\
B. HKCU:\
C. HKU:\
D. HKCR:\
Correct Answer: A
Chapter: 47
Q985:
Force parameter in Get-ChildItem helps to view keys that are normally ________.
A. hidden
B. visible
C. deleted
D. readonly
Correct Answer: A
Chapter: 47
Q986:
Registry keys and values can be accessed and manipulated in PowerShell using ________.
A. Get-ChildItem
B. Get-Registry
C. Key-Value
D. Set-Item
Correct Answer: A
Chapter: 47
Q987:
The syntax Registry:: is used to specify the ________ in PowerShell commands.
A. registry provider
B. file system
C. service manager
D. user profiles
Correct Answer: A
Chapter: 48
Q988:
What does SEH stand for in Microsoft C programming?
A. Structured Exception Handling
B. Standard Exception Handling
C. Systematic Error Handling
D. Sequential Exception Handling
Correct Answer: A
Chapter: 48
Q989:
SEH is primarily used to handle ________ situations in code.
A. Exceptional
B. Hardware
C. Fault
D. General
Correct Answer: A
Chapter: 48
Q990:
Which exception handling method is recommended for better portability and flexibility in C++?
A. ISO-standard C++ exception handling
B. Structured Exception Handling
C. Microsoft SEH
D. Java Exception Handling
Correct Answer: A
Chapter: 48
Q991:
SEH is an extension provided by which company?
A. Microsoft
B. Apple
C. Google
D. IBM
Correct Answer: A
Chapter: 48
Q992:
SEH can handle which type of faults gracefully?
A. Hardware faults
B. Logic errors
C. Syntax errors
D. Runtime errors
Correct Answer: A
Chapter: 48
Q993:
To maintain legacy code, programmers might need to use ________.
A. SEH
B. ISO-standard C++ exceptions
C. Java exceptions
D. Python exceptions
Correct Answer: A
Chapter: 48
Q994:
Structured exception handling is a feature of which programming language?
A. Microsoft C
B. Java
C. Python
D. ISO C++
Correct Answer: A
Chapter: 48
Q995:
The use of ISO-standard C++ exceptions over SEH results in code that is more ________.
A. Portable and flexible
B. Complex and slow
C. Platform-dependent
D. Unreliable
Correct Answer: A
Chapter: 48
Q996:
SEH was introduced as an extension to which language?
A. C
B. C++
C. Java
D. Python
Correct Answer: A
Chapter: 48
Q997:
Handling hardware faults gracefully in Windows programming can be done using ________.
A. SEH
B. Java Exceptions
C. Python Try-Except
D. ISO C++ exceptions
Correct Answer: A
Chapter: 48
Q998:
ISO-standard C++ exception handling improves code by making it more ________.
A. Flexible
B. Slow
C. Complex
D. Difficult
Correct Answer: A
Chapter: 48
Q999:
The recommendation for new C++ code is to use ________ instead of SEH.
A. ISO-standard exception handling
B. SEH
C. No exception handling
D. Java exceptions
Correct Answer: A
Chapter: 48
Q1000:
SEH allows handling exceptions that are raised by the ________.
A. Operating system
B. Hardware
C. Compiler
D. User
Correct Answer: A

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now