Question 1
In PowerShell, which of the following is not a Win32 Class category?

WMI Service Management

Performance Counter

Security Descriptor Helper

Access Control Lists

Question 2

Before you set the value of any variable in a PowerShell Script, you should always initialize the value.

True

False

Question 3

Which of the following is not a key characteristic of PowerShell?

Is object based

Commands can be customized

Is a command line interpreter and a scripting environment

Is text based

Question 4
In PowerShell, what is the significance of curved parenthesis brackets ()?

Contain the name of a method

Contain compulsory arguments

Contain optional items

Employed in blocked statements

Question 5

In PowrerShell, what is the significance of braces brackets {}?

Employed in blocked statements

Contain optional items

Contain an object name

Contain compulsory arguments

Question 6

What is Windows PowerShell ISE?

A GUI application, which helps develop PowerShell scripts

An Identity Services Engine for PowerShell

A package containing a library of many pre-written scripts

A text editor, which is very similar to Notepad, in terms of functionality

IncorrectQuestion 7
0 / 4 pts
Any PowerShell script can only access either a WMI or ADSI database.

True

False

Question 8

What do the letters ADSI stand for?

Active Directory Service Interfaces

Active Directory Systems Interface

Active Directory System Information

Active Directory Services Information

Question 9

Which of the following commands would be used to delete a user from Active Directory?

Delete-ADUser

Remove-ADUser

Remove-User

Get-ADUser -Delete

Question 10

You have to declare the data type for PowerShell variables before you use them.

True

False

Question 11

______are used in a script to clarify code or provide additional information to other programmers.

Variables

Statements

Character strings

Comments

IncorrectQuestion 12

What are the beginning and ending characters used to designate a block containing comment lines? <— and —>

<# and #>

Question 13

When you want to add the values of several numbers to an array, which of the following ways would work?

Separate the numbers by Tab characters

Separate the numbers by commas

Separate the numbers by spaces

Separate the numbers by using the Pipe symbol

Question 14

In PowerShell, arguments for a command will have which of the following formats?

-parameterName parameterValue

-command option

-optionName optionValue

-option command

Question 15

What command is used to query the WMI database?

Get-WMIDatabase

Get-WMIClass

Query-WMI

Get-WMIObject

Question 16

Which of the following is the correct list of the available parameters, which can be used when running the Get-Help command.

Only -Full, -Detailed and -ShowWindow

Only -Full and -Detailed

Only -Full, -Detailed and -Online

-full, -detailed, -online, or -ShowWindow

Question 17

By default, which of the following locations does PowerShell not search for commands?

The current directory

c:\windowssystem32WindowsPowerShellv1.0

c:\windows

c:\windowssystem32

IncorrectQuestion 18

Which of following is the correct answer for the question about the number of the first element in an array.

1

0

Script defined

User defined

Question 19

What are PowerShell built-in commands called?

Functions

Commands

Parameters

Cmdlets

Question 20

What do the letters ISE stand for in the PowerShell ISE application?

Integrated Service Environment

Integrated Scripting Environment

Integrated Script Execution

Initial Server Execution

IncorrectQuestion 21

Which of the following is an advantage of using scripts?

Less error prone

Requires more training than the GUI

Scripts can be reused between different operating systems

Quicker for simpler tasks

Question 22

Which of the following commands will list all of the processes that contain the string “svc”?

Get-Processes *svc

Get-Process svc

Get-Processes svc

Get-Process *svc

IncorrectQuestion 23
When you want to create an array containing strings, which of the following ways is correct?

Separate each string by using a pipe symbol

Separate each string by double quotation marks, and separate elements by commas

Separate each string by double quotation marks, and separate elements by blank spaces

Separate each string by using a comma

Question 24

Which of the following information is not contained in the ADSI database?

Groups

Organizational Units

WMI Events

User Accounts

Question 25

Which of the following types of information is not contained in the ADSI database?

Domain Name Service

Installed Software

IP Addresses and subnets

Domain Controller


Question 1

What are the beginning and ending characters used to designate a block containing comment lines?

<— and —>

<# and #>

Question 2

In PowerShell, arguments for a command will have which of the following formats?

-optionName optionValue

-parameterName parameterValue

-command option

-option command

IncorrectQuestion 3

Which of the following parameters can be used to run a command on multiple computers?

-ServerName

-Computers

-HostName

-ComputerName

Question 4

By default, which of the following locations does PowerShell not search for commands?

c:\windows

c:\windowssystem32WindowsPowerShellv1.0

The current directory

c:\windowssystem32

Question 5

According to Microsoft, how many different categories of Win32 classes exist? For example the Computer System Hardware Class category.

6

3

10

12

Question 6

What are PowerShell built-in commands called?

Functions

Commands

Parameters

Cmdlets

IncorrectQuestion 7

In PowerShell, which of the following is not a Win32 Class category?

WMI Service Management

Performance Counter

Security Descriptor Helper

Access Control Lists

IncorrectQuestion 8

Which of the following is not a type of coding error?

Runtime

Syntax

Logic

Statement

Question 9

Each Windows Operating System has its own version of Windows PowerShell.

True

False

Question 10

Which is the symbol used to designate a line in a PowerShell script as a comment

The ‘>’ symbol

#sign

The letter ‘C’

! mark

IncorrectQuestion 11

When you want to create an array containing strings, which of the following ways is correct?

Separate each string by using a comma

Separate each string by double quotation marks, and separate elements by commas

Separate each string by double quotation marks, and separate elements by blank spaces

Separate each string by using a pipe symbol

Question 12

______are used in a script to clarify code or provide additional information to other programmers.

Comments

Statements

Variables

Character strings

Question 13

Which of the following is the correct list of the available parameters, which can be used when running the Get-Help command.

Only -Full and -Detailed

Only -Full, -Detailed and -ShowWindow

Only -Full, -Detailed and -Online

-full, -detailed, -online, or -ShowWindow

Question 14

Which of the following is true of a PowerShell variable?

It can only contain a floating point number

It can only contain an integer

It can only contain a string

It can contain a string, an integer and a floating point number

Question 15

In the PowerShell ISE, how are syntax errors shown?

They are highlighted in yellow

They have an info icon next to them

A blue squiggle underneath the error

A red squiggle underneath the error

Question 16

What do the letters ADSI stand for?

Active Directory Systems Interface

Active Directory Services Information

Active Directory System Information

Active Directory Service Interfaces

Question 17

Which of the following types of information is not contained in the ADSI database?

Domain Name Service

Installed Software

Domain Controller

IP Addresses and subnets

IncorrectQuestion 18

Which of the following is not a Win32 Class Category

Installed Application

Active Directory

Operating System

Computer System Hardware

IncorrectQuestion 19

In PowerShell, what is the significance of square brackets [ ]?

Employed in blocked statements

Contain method names

Contain object names

Contain optional items

Question 20

What is the purpose of a PowerShell “here string”?

To contain the prompt for user input

An alternative command to be used instead of the Write-Host cmdlet

To allow a block of text, with its formatting, to be put inside a variable or array

To define a special character to delimit text

IncorrectQuestion 21

What command is used to query the WMI database?

Get-WMIObject

Get-WMIDatabase

Get-WMIClass

Query-WMI

Question 22

Which of following is the correct answer for the question about the number of the first element in an array.

1

0

User defined

Script defined

Question 23

Which of the following commands will list all of the processes that contain the string “svc”?

Get-Processes *svc

Get-Process *svc

Get-Processes svc

Get-Process svc

Question 24

When you want to add the values of several numbers to an array, which of the following ways would work?

Separate the numbers by Tab characters

Separate the numbers by commas

Separate the numbers by spaces

Separate the numbers by using the Pipe symbol

IncorrectQuestion 25

Which of the following is the basic format for a PowerShell cmdlet?

noun-verb

verb-adjective

command parameter parameter

verb-noun


IncorrectQuestion 1

Which of the following is not a Win32 Class Category

Computer System Hardware

Operating System

Installed Application

Active Directory

Question 2

In PowrerShell, what is the significance of braces brackets {}?

Contain optional items

Contain an object name

Employed in blocked statements

Contain compulsory arguments

Question 3

What is the purpose of a PowerShell “here string”?

To allow a block of text, with its formatting, to be put inside a variable or array

An alternative command to be used instead of the Write-Host cmdlet

To contain the prompt for user input

To define a special character to delimit text

Question 4

What is Windows PowerShell ISE?

An Identity Services Engine for PowerShell

A GUI application, which helps develop PowerShell scripts

A package containing a library of many pre-written scripts

A text editor, which is very similar to Notepad, in terms of functionality

Question 5

Which of the following is true of a PowerShell variable?

It can contain a string, an integer and a floating point number

It can only contain an integer

It can only contain a floating point number

It can only contain a string

Question 6

In PowerShell, what is the significance of curved parenthesis brackets ()?

Contain optional items

Contain compulsory arguments

Contain the name of a method

Employed in blocked statements

Question 7

What is the default extension for a PowerShell file?

.ps1

.ps4

.psd

.ps

IncorrectQuestion 8

Which of the following is the basic format for a PowerShell cmdlet?

verb-adjective

verb-noun

command parameter parameter

noun-verb

Question 9

Which is the symbol used to designate a line in a PowerShell script as a comment

The letter ‘C’

! mark

The ‘>’ symbol

#sign

IncorrectQuestion 10

Which of the following is an advantage of using scripts?

Less error prone

Quicker for simpler tasks

Scripts can be reused between different operating systems

Requires more training than the GUI

Question 11

Which of the following is the correct list of the available parameters, which can be used when running the Get-Help command.

Only -Full, -Detailed and -ShowWindow

Only -Full, -Detailed and -Online

Only -Full and -Detailed

-full, -detailed, -online, or -ShowWindow

IncorrectQuestion 12

In PowerShell, what is the significance of square brackets [ ]?

Employed in blocked statements

Contain object names

Contain optional items

Contain method names

Question 13

Which of the following is the basic format for a command line statement?

command [argument option …]

command [argument…]

command [option…]

command [command…]

Question 14

Which of the following parameters can be used to run a command on multiple computers?

-ServerName

-Computers

-HostName

-ComputerName

IncorrectQuestion 15

Which of the following commands would you use to view the PowerShell help topic about the Switch statement?

Get-Help -topics Switch

Get-Help Switch

Get-Help -Topic Switch

Get-Help about_Switch

Question 16

Which of following is the correct answer for the question about the number of the first element in an array.

User defined

1

0

Script defined

Question 17

Which of the following commands would be used to delete a user from Active Directory?

Delete-ADUser

Remove-User

Get-ADUser -Delete

Remove-ADUser

Question 18

According to Microsoft, how many different categories of Win32 classes exist? For example the Computer System Hardware Class category.

10

12

6

3

IncorrectQuestion 19

In PowerShell, which of the following is not a Win32 Class category?

Security Descriptor Helper

Performance Counter

Access Control Lists

WMI Service Management

IncorrectQuestion 20

What feature of the PowerShell ISE helps you avoid syntax errors?

Break points

Call stack

Auto save

Intellisense

Question 21

Before you set the value of any variable in a PowerShell Script, you should always initialize the value.

True

False

Question 22

Each Windows Operating System has its own version of Windows PowerShell.

True

False

Question 23

What are PowerShell built-in commands called?

Commands

Parameters

Cmdlets

Functions

Question 24

What command is used to query the WMI database?

Get-WMIObject

Get-WMIDatabase

Get-WMIClass

Query-WMI

Question 25

Any PowerShell script can only access either a WMI or ADSI database.

True

False

Please click on the “PURCHASE” link below to get “CIS 321 Quiz 2 (Latest Syllabus) A+ Answer”.

For instant digital download of the above solution or tutorial, please click on the below link and make an instant purchase. You will be guided to the PAYPAL Standard payment page wherein you can pay and you will receive an email immediately with a download link.

In case you find any problem in getting the download link or downloading the tutorial, please send us an email on ekmtutor@gmail.com.

Leave a Comment