Search Header Logo

MOC10961-M7

Authored by mohsin murtaza

Computers

University

Used 8+ times

MOC10961-M7
AI

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?