
MOC10961-M7
Authored by mohsin murtaza
Computers
University
Used 8+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to create a variable in PowerShell?
A) Use the & symbol followed by the variable name.
B) Use the $ symbol followed by the variable name.
C) Use the # symbol followed by the variable name.
D) Use the ? symbol followed by the variable name.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a type of variable in PowerShell?
A) String
B) Int32
C) Array
D) Bool
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you modify a hash table to add a new key-value pair?
A) Use $hashTable.Add("key", "value")
B) $hashTable["newKey"] = "newValue"
C) $hashTable.newKey("newValue"
D) None of the above
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What PowerShell cmdlet is used to identify properties and methods of a variable?
A) Get-Variable
B) Get-Command
C) Get-Help
D) Get-Member
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method allows for dynamic size change in collections in PowerShell?
A) Array
B) Hash table
C) ArrayList
D) Dictionary
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
PowerShell variables are case sensitive.
True
False
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In PowerShell, using the += operator with an array adds elements without recreating the array
True
False
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?