POWERSHELL COMPRESS QUESTION ANSWER

POWERSHELL COMPRESS QUESTION ANSWER

  POWERSHELL COMPRESS QUESTION ANSWER


Q.1 Powershell is built on _____________.

Answer-.NET Framework

 

Q.2 Which of the version of .Net Frame work is required to install PowerShell version 4?

Answer-.Net Framework 4.5

 

Q.3 _____________ is the feature of Commnd Line Tools.

Answer-Automation can be implemented easily

 

Q.4 Which of the following are Command Line Tools?

Answer-All the options mentioned

 

Q.5 List out the PowerShell command types.

Answer-All the options mentioned

 

Q.6 What is the command to find total number of "FUNCTION" Commands?

Answer-(Get-Command -type function).count

 

Q.7 PowerShell command is in ___________________ format.

Answer-Verb-Noun format

 

Q.8 What is the command to list out the files and folders in the directory?

Answer-Get-Childitem

 

Q.9 Function of the Pipeline is _______________.

Answer- All

 

Q.10 Foreach-Object cmdlet is used to __________.

Answer-Perform an action on each object

 

Q.11 Where-Object cmdlet is used to __________.

Answer-Perform an action on each object

 

Q.12 Select-Object cmdlet is used to __________.

Answer-Display the list of objects based on the selected property

 

Q.13 Pipeline Symbol in PoweShell is _____.

Answer-"|"

 

Q.14 Sort-Object cmdlet is used to __________.

Answer-Sort the list f the object based on the selected property

 

Q.15 In the command below, how will the value of the variable "$name" be set?

Answer-$ name=user1

Write-host "$name"

Value will be supplied through a script file

 

Q.16 PowerShell commands are case sensitive.

Answer-False

 

Q.17 Command to find the PowerShell Version is _____________.

Answer-$PSVersiontable

 

- To run ".PS1" files, the execution policy must be set to __________.

Answer-Restricted

 

Q.18 In the following command, "-as secured string" is used to ___________.

$ password=Read-host "Enter Your Password" -assecured string

Answer-To enter the password securely

 

Q.19 Which of the following are Session Specific commands?

Answer-Alias Commands

 

Q.20 ISE is available from _______.

Answer-PowerShell 1.0

 

Q.21 PowerShell command to view all the properties of a specific Process like "Notepad" is Get-Process notepad | Select-Object -Property *.

Answer-False

 

Q.22 PowerShell module can contain _______.

Answer-cmd lets, providers,fuctions, variables that can be imported as a single unit.

 

Q.23 The command Get-Process | Where-Object{$_.ProcessName -match "^p. *"} filters the Processes by Process name and lists the Processes which

Answer-contains the Alphabet "P"

 

Q.24 Open source of PowerShell version is available from the year _______.

Answer-2016

 

Q.25 Error Action Preference specifies the desired behavior for ___________ in PowerShell

Answer-a terminating error

 

Q.26 Command to display process name and ID of all process is get-process ______.

Answer-Select-Object process name, ID

 

Q.27 Open Source Version of PowerShell contains full set of commands.

Answer-False

 

Q.28 Integrated scripting environment is ______ for PowerShell.

Answer-host application

 

Q.29 Variables starts with ______.

Answer-"$"

 

Q.30 Which is an equivalent PowerShell command for "ls"?

Answer-get-childitem

 

Q.31 PowerShell for Ubuntu can be downloaded _______________.

Answer-As a Debian Package

 

Q.32 Write-host is used to ______.

Answer-Display messages in the PowerShell console

 

Q.33 Shell is _______ that is used to pass commands to the OS.

Answer-cmd encoder

 

Q.34 Get-Process | Sort-Object -Property Handles | Select-Object -Last 5 The output of the above command will be the

Answer-List of 5 Process, having lower handles values

 

Q.35 When PowerShell 2.0 is updated with PowerShell 3.0, then ___________.

Answer-None of the options mentioned

 

Q.36 Alias name of the Format-table is _________.

Answer-fc

 

Q.37 Command to display the examples of get-service ______________.

Answer-All the options mentioned

 

Q.38 Using PowerShell, we can administrate _____________.

Answer-Servers and Workstations locally and remotely

 

Q.39 The default version of PowerShell in Windows 7 is _____________.

Answer-PowerShell 2.0

 

Q.40 Which of the following is a/are PowerShell command type(s)?

Answer-All the options

 

Q.41 Alias commands are _____________.

Answer-Function Commands

 

Q.42 The function(s) of the Pipeline is/are _______________.

Answer-All the options

 

Q.43 Shell is a _______ that is used to pass commands to the OS

Answer-cmd interpreter

 

Q.44 Package management module is available in ________

Answer-PowerShell 3.0

 

Q.45 If $Name="User1" then the command $name.gettype() provides the information on___________

Answer-Type of the variable value

 

Q.46 Pssession is ________.

Answer- Created, Managed and closed by a local system user

 

Q.47 Which of the following are Session Specific commands? 

Answer- Alias Commands

 

Q.48 When PowerShell 2.0 is updated with PowerShell 3.0, then ___________R.

Answer- PowerShell

 

Q.49 2.0 will be replaced by PowerShell 3.0 PowerShell 2.0 cannot be updated with

Answer-PowerShell 3.0

 

Q.50 PowerShell 2.0 is left on the SystemPowerShell commands are case sensitive.R.

Answer- FIf

 

Q.51 $Name="User1" then the command $name.gettype() provides the information

on___________?

Answer- Type of the variable

 

Q.52 valueOpen source of PowerShell version is available from the year _______.

Answer- 2016

 

Q.53 In the following command, "-as secured string" is used to ___________.

Answer-assecured string

 

Q.54 $password=Read-host "Enter Your Password"

Answer- To enter the password securely

 

Q.55 PowerShell for Ubuntu can be downloaded _______________.R.

Answer- As a Debian Package

 

Q.56 Get-Variable cmdlet displays the list ofR.

Answer- Both Pre-Defined and User-Defined Variables

 

Q.57 Variables starts with ______.R

Answer- "$"

 

Q.58 Alias name of the Format-table is

Answer- ftPowerShell cmdlets performs system administration tasks such as managingR.-

 

Q.59 All The command Get-Process | Where-Object{$_.ProcessName -match "^p. *"} filters the Processes by Process name and lists the Processes whichR.

Answer- contains the Alphabet "P"

 

Q.60 Write-host is used to ______.R.

Answer- Display messages in the PowerShell

 

Q.61 consoleCommand to display process name and ID of all process is get-process ______.

Answer- None

 

Q.62 Error Action Preference specifies the desired behavior for ___________ in PowerShellR.

Answer- a non-terminating error

 

Post a Comment

0 Comments