Cmdlets MCQ Questions & Answers

Cmdlets MCQs : This section focuses on "Cmdlets" in Powershell. These Multiple Choice Questions (MCQ) should be practiced to improve the Powershell skills required for various interviews (campus interview, walk-in interview, company interview), placements, entrance exams and other competitive examinations.

1. cmdlet stands for?

A. Command let
B. Command lightweight
C. Comman let
D. Command let

View Answer


2. Cmdlets are .NET Framework class objects

A. TRUE
B. FALSE
C. Can be true or false
D. Can not say

View Answer


3. Which of the following is true about Cmdlet?

A. Cmdlets are record-based as they process a single object at a time
B. Cmdlets process works on objects not on text stream and objects can be passed as output for pipelining.
C. Parsing, error presentation, and output formatting are not handled by cmdlets. It is done by the Windows PowerShell runtime.
D. All of the above

View Answer


4. Cmdlets can have?

A. required parameters
B. switch parameters
C. positional parameters
D. All of the above

View Answer


5. Most cmdlets are based on ___________ classes.

A. PHP
B. SQL
C. .NET
D. Java

View Answer


6. PowerShell uses a _______ name pair to name cmdlets.

A. verb
B. noun
C. Both A and B
D. None of the above

View Answer


7. cmdlets can receive _________ as input and deliver ________ as output

A. classes, objects
B. objects, classes
C. classes, classes
D. objects, objects

View Answer


8. ____________ are specialized arguments that offer preset options or selections.

A. Arguments
B. Switches
C. Parameters
D. None of the above

View Answer


9. Although PowerShell relies on processing cmdlets, there is a second type of command called?

A. function
B. declare
C. classes
D. define

View Answer


10. Cmdlets can be easily constructed from as few as a dozen lines of code

A. Yes
B. No
C. Can be yes or no
D. Can not say

View Answer





Discussion


* You must be logged in to add comment.