MOC10961-M7

MOC10961-M7

University

10 Qs

quiz-placeholder

Similar activities

Cryptology Tools

Cryptology Tools

University

15 Qs

Interactivity with JavaScript

Interactivity with JavaScript

University

15 Qs

dfc50193-6B-chapter1,2

dfc50193-6B-chapter1,2

University

15 Qs

U0. Dynamic Data Structures

U0. Dynamic Data Structures

University

12 Qs

C++ Basics (1)

C++ Basics (1)

University

12 Qs

Rapid Round 1

Rapid Round 1

University

10 Qs

Revision 2 MCA

Revision 2 MCA

University

13 Qs

C Programming Array Concepts

C Programming Array Concepts

University

15 Qs

MOC10961-M7

MOC10961-M7

Assessment

Quiz

Computers

University

Medium

Created by

mohsin murtaza

Used 8+ times

FREE Resource

AI

Enhance your content

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?