wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

MOC10961

Total questions: 76

Worksheet time: 3615secs

Name
Class
Date
1.

To interact with Powershell what are the two CLI interfacess , Microsoft provides

a)

PowerShell console and PowerShell ISE

b)

Powershell console and GUI

c)

PowerShell ISE and scripting tool

d)

All ofthe above

2.

ISE offers two main panes. What are they?

a)

Navigator pane and Object Pane

b)

Object Pane and ISE

c)

Console and Cmd

d)

Console and scripting

3.

Which of the following cmdlet verbs is not associated with the ADUser noun?

a)

Get

b)

SET

c)

Update

d)

New

4.

The ----- cmdlet requires that you identify the user or users that you want to retrieve.

a)

Get-ADUser

b)

New-Ad user

c)

Get-user

d)

Add- user

5.

Set-ADGroup command let you do?

a)

Creates a new group

b)

Modifies properties of a group

c)

Displays properties of a group

d)

Deletes a group

6.

What is the structure of the PowerShell cmdlet?

a)

Verb and simple tense

b)

Noun and Simple Tense

c)

Verb and ISE

d)

Verb and noun

7.

--------enables you to enter commands much faster and make your code less prone to errors,

a)

Tab completion

b)

Tab addition

c)

Tab adjustment

d)

All of the above

8.

Select PowerShell Aliases from the options below

a)

MKDIR

Where

Write

b)

Where

Above

MKDIR

c)

MKDIR,

Write

help

d)

Write

read

help

9.

In pipeline windows power shell use two techniques to pass the data

a)

By data

By value

b)

By Value

ByPropertyName

c)

By Value

By int

d)

By Value

By String

10.

Select the PowerShell Active directory administration cmdlets from the list

a)

a. Group

b. OU

c. User

b)

a. user

b. OU

c. add

c)

a. Group

b. Individual

c. OU

d)

All of the options

11.

Select the correct cmdlets to manager IIS

a)

New-Website

Get-site

b)

Get-site

Set Site

c)

New-Website

Help site

d)

New-Website

Stop-Website

12.

What are the ways to send output to a file using PowerShell?

a)

a)      > 

b)      << 

b)

a)  Out-file

b)   &&

c)

a)      &&

b)      >>

d)

a)  Out-file

b)  >>

13.

Select comparison operators used in where -Object cmdlet?

a)

a. -eq

b. -gt

c. -like

b)

a. -eq

b. -lq

c. -gt

c)

a. -lk

b. -make

c. -like

d)

a. -eq

b. -lq

c. -make

14.

Discovery of Object members includes.

a)

a. Methods

b.  Properties

C. Events

b)

a.      Methods

b.      Scripts

c.  Comments

c)

a.      Methods

b.      Synonyms

c.       Comments

d)

a.      Methods

b.      functions

c.       Comments

15.

Select the correct built-in providers list

a)

a) Alias

b) Variables

c) Registry

b)

a)      Email

b)      Variables

c)      Registry

c)

a)      Alias

b)      Type

c)      Registry

d)

a)      Alias

b)      File system

c)      Registry

16.

Which of the variable type take either true or false

a)

Bool

b)

Int

c)

Array

d)

Array list

17.

Which of these variable types cannot store decimal values?

a)

Int

b)

double

c)

Var a

d)

Var b

18.

Select appropriate option to view a Data type of a variable

a)

  Variable.GetType()

b)

Varible-GetType

c)

     Variable_GetType()

d)

Get_type

19.

Applocker is used to ?

a)

Control the services

b)

Control the script execution

c)

Control the user input and output

d)

Control the user print

20.

Select the PowerShell function to get the current system date.

a)

Sys-Date

b)

Get-Date

c)

Set-Data

d)

New-data

21.

Which lopping is better, if you are not bothered about number of items in the loop and number of times to loop?

a)

For

b)

FOREACH

c)

IF else

d)

Do while

22.

Select one command that will loop until the condition is true

a)

DO While

b)

For loop

c)

DO Until

d)

Do Loop

23.

Select 1 command used to collect user input

a)

Write-Host

b)

Read-Host

c)

Collect-Host

d)

Delete host

24.

Select the 3 basic types of job triggers

a)

a)  Once

b)  Fortnightly

c)  Daily

b)

a)Once

c) Daily

d)Atlogon

c)

a) Once

b) week

c) monthly

d)

a)Once

b) week

c) yearly

25.

---------is an adapter that makes some data stores resemble hard drives within Windows PowerShell

a)

Psp drive

b)

usb

c)

IIS

d)

Provider

26.

------ is a connection to a data store.

a)

PS Driver

b)

provider

c)

File system

d)

data system

27.

What is the use of profile script?

a)

  Create

Create aliases

b)

  Create

aliases

c)

Create aliases

Set Variables

d)

set variable

get variable

28.

Select the current User locations to load the profile scripts

a)

$home

b)

$MyDocuments

c)

$PSHome

d)

$Data

29.

PowerShell Command to Delete results and the job object

a)

Receive-job

b)

add-job

c)

Remove

d)

Remove-Job

30.

What is the command to view PowerShell Session.

a)

View-Session

b)

Get-PSSession

c)

list-Session

d)

Get-session

31.

Command used to start remote jobs?

a)

Start-Job –ScriptBlock

b)

Invoke-Command –ScriptBlock

c)

Remote-Job –ScriptBlock

d)

Delete-Job –ScriptBlock

32.

Job results are not retained in memory for future reference

a)

True

b)

False

33.

which one is correct option to defend the script security threat

a)

a). Install Antimalware and update

b).    Install windows update in a timely manner

b)

a). Install Antimalware and update

b). Delete antimalware

c)

a). Add Antimalware

b). Install fireware

d)

a). Install firewall

b). Install windows update

34.

------cmdlet identifies the properties and methods that are available for a specific variable type

a)

Get-Member

b)

Get-data

c)

add- member

d)

Add-function

35.

.\Scriptfile.ps1 syntax used to execute the PowerShell scripts

a)

Absolute path

b)

Full Path

c)

Relative Path

d)

Current path

36.

Hash / table is based on an index and array is based on a key and a value

a)

True

b)

False

37.

What is the command used to determine the version of windows PowerShell on a computer.

a)

$PSVersionTable

b)

$PSVer

c)

$Version

38.

RPC is the traditional method for remote management

a)

True

b)

False

39.

AsSecureString is used to decrypt the user input?

a)

False

b)

Ture

40.

What is the port numbers used in WINRM for the Https?

a)

5986

b)

6985

c)

5985

d)

6940

41.

What is the port numbers used in WINRM for the http

a)

5989

b)

5985

c)

5986

d)

5978

42.

The default type of array that Windows PowerShell creates is

a)

Dynamic array

b)

Fixed size array

c)

local array

d)

default array

43.

Following command is used to convert a string to a secure string

$string | ConvertTo-SecureString -AsPlainText -Force

a)

True

b)

False

44.

Profile script load automatically each time the host application starts?

a)

True

b)

False

45.

Get-WmiObject command uses which protocol?

a)

Remote Registry Service (RGS)

b)

Remote Procedure Calls (RPC)

c)

Remote Procedure enable (RPE)

d)

Remote Registry call (RGC)

46.

Remoting uses an open standard protocol called ?

a)

WS-security

b)

WS-Remote

c)

Remote-access

d)

WS-MAN

47.

What is the PowerShell script extension in PowerShell v5.0?

a)


a.

*.ps5

b)


b.

*.ps1

c)


c.

*.psm1

d)


d.

*.psmd1

48.

Administrator can create private modules to contain custom functions. One of the steps is to convert script file to module file. What is the extension of the module?

a)


a.

*.xml

b)


b.

*.psd1

c)


c.

*.psm1

d)


d.

*.psmd1

49.

An organisation requires that downloaded PowerShell scripts must be signed by a trusted publisher before they can be run. However, scripts from the local computer don't need to be signed.
Which PowerShell execution policy should you set?

a)

a.

Unrestricted

b)

b.

RemoteSigned

c)

c.

ByPass

d)

Restricted

50.

Break stops processing the current iteration of a loop, while Continue completely stops loop processing.


a)

True

b)

False

51.

The ______________construct is used to run a script block a specific number of times based on the: Initial state; Condition and Action.

a)


a.

ForEach

b)


b.

Switch

c)


c.

For

d)

d.

If

52.

How to view the most recent error?

a)

a.

$Error[0]

b)

b.

$Error

53.

By default, for both non-terminating and terminating errors, you can use Try..Catch to display error messages in a friendly way.


a)

True

b)

False

54.

Which the following command is NOT correct to import data from files?


a)


a.

Import-Clixml

b)


b.

Import-Json

c.

c)


c.

Get-Content

d)


d.

Import-CSV

55.

When using Try..Catch construct to implement error handling, Finally section is optional.


a)

True

b)

False

56.

When using PS Remoting, Administrator need enable PS Remoting on both local and remote computers.


a)

true

b)

false

57.

Results received through PS Remoting are static snapshot, don’t have all methods or events.


a)

True

b)

False

58.

When using PS Remoting, the contents of the script block or file are transmitted as literal text to the remote computers.


a)

True

b)

False

59.

Get-CIMInstance does have an –AsJob parameter.


a)

True

b)

False

60.

When using Receive-Job to retrieve background job results, you can use -keep to retain a copy of the results in memory. Otherwise, results are not retained in memory.

a)

True

b)

False

61.

Select the 3 components of a scheduled job.


Job options

Job definition

Job triggers

a)

True

b)

False

62.

The PS scheduled job definition and results are stored in ___________

a)

a.

Memory

b)

b.

Disk

63.

Profile scripts are a Windows PowerShell feature that you can use to specify a list of commands that run every time you open a new Windows PowerShell session.

a)

True

b)

False

64.

Administrator wants to grant “full control” to John Peter on C:\Test folder.

icacls.exe C:\Test /Grant “John Peter”:(F)

However, PowerShell cannot process this command successfully, since “icacls.exe” is an external command which contains preserved PowerShell characters.

How to correct this command to run it successfully?

a)

icacls.exe --% C:\Test /Grant “John Peter”:(F)

b)

icacls.exe --% C:\Test /Grant “John P”:(F)

c)

icacls.exe % --C:\Test /Grant “John Peter”:(F)

d)

All are correct

65.

Which PowerShell logging method is suitable if you want PowerShell to log events for running cmdlets in specific modules?


a)

a.

Module logging

b)

b.

Script block logging

c)

c.

Transcription logging

d)

All of the above

66.

Windows PowerShell 5.0 logs suspicious script blocks automatically, even if script block logging is not enabled.


a)

true

b)

false

67.

PowerShell is Microsoft product, so that we cannot use it to manage Linux and macOS computers.


a)

True

b)

False

68.

The default value for the -ProtectedFromAccidentalDeletion parameter of New-ADOrganizationalUnit is $true?


a)

true

b)

false

69.

Which two parameters can you use with *-NetIPAddress cmdlets to identify a network interface?
a.

-InterfaceIndex

b.

-DefaultGateway

c.

-InterfaceAlias

d.

-AddressFamily

a)

-InterfaceAlias and InterfaceIndex

b)

InterfaceIndex and -DefaultGateway

c)

-DefaultGateway and -AddressFamily

d)

All of the above

70.

Which Windows PowerShell cmdlets should you pipe output to when you want to return specified properties of an object?


a)

a.

Select-Object

b)

b.

Where-Object

c)

c.

Measure-Object

d)

d.

Sort-Object

71.

Which Windows PowerShell cmdlets should you pipe output to descending order based on specific properties?

a)


a.

Select-Object

b)


b.

Where-Object

c)

c.

Measure-Object

d)


d.

Sort-Object

72.

PSProviders are adapters that connect Windows PowerShell to data stores.


a)

true

b)

false

73.

Both Windows Management Instrumentation (WMI) and Common Information Model (CIM) support local, session based connection and ad-hoc connection.

a)

true

b)

false

74.

If you query a computer multiple times in a short period of time, a CIM session offers much better performance than an ad-hoc connection.

a)

true

b)

false

75.

An array is a data structure that is designed to store a collection of items


a)

true

b)

false

76.

Both Array and Arraylist support Add() and Remove() methods.


a)

true

b)

false