

MCQOPTIONS
Saved Bookmarks
This section includes 11 Mcqs, each offering curated multiple-choice questions to sharpen your Technical MCQs knowledge and support exam preparation. Choose a topic below to get started.
1. |
Operators are the building blocks of the Windows PowerShell. |
A. | TRUE |
B. | FALSE |
C. | Can be true or false |
D. | Can not say |
E. | |
Answer» B. FALSE | |
2. |
To display the value of a variable, type the name of a variable, followed by a dollar sign $. |
A. | Yes |
B. | No |
C. | Can be yes or no |
D. | Can not say |
Answer» B. No | |
3. |
If you want to find the type of a variable, you can use the GetType() method. |
A. | TRUE |
B. | FALSE |
C. | Can be true or false |
D. | Can not say |
Answer» B. FALSE | |
4. |
Which command is used to delete a variable? |
A. | delete-variable |
B. | drop-variable |
C. | cls-variable |
D. | clear-variable |
Answer» E. | |
5. |
We use an = operator to assign a specified value to the variable. |
A. | greater than |
B. | less than |
C. | dollar |
D. | equal to |
Answer» E. | |
6. |
Is variable name $my-variable is valid? |
A. | Invalid variable names |
B. | Valid variable names |
C. | Can be A and B |
D. | Can not say |
Answer» B. Valid variable names | |
7. |
If we use the special characters in the variable names, we will need to enclose them in the? |
A. | () |
B. | [] |
C. | {} |
D. | || |
Answer» D. || | |
8. |
By default, the value of all the variables in a PowerShell is? |
A. | zero |
B. | empty |
C. | null |
D. | one |
Answer» D. one | |
9. |
The name of the variables are? |
A. | case-sensitive |
B. | not case-sensitive |
C. | Both A and B |
D. | None of the above |
Answer» C. Both A and B | |
10. |
In Windows PowerShell, the name of a variable starts with the dollar? |
A. | @ |
B. | # |
C. | & |
D. | $ |
Answer» E. | |
11. |
Variables are the fundamental part of the Windows PowerShell. |
A. | TRUE |
B. | FALSE |
C. | Can be true or false |
D. | Can not say |
Answer» B. FALSE | |