Course Name : PowerShell Assessment | Course id 55956
Course name : PowerShell Assessment | Course id 55956
1 The open-source version of PowerShell contains a full set of commands.
Answer: True
2. When PowerShell 2.0 is updated with PowerShell 3.0, then _.
Answer: PowerShell 2.0 will be replaced by PowerShell 3.0
3. The open-source version of PowerShell is available from the year _.
Answer: 2016
4. Get-Process | Sort-Object -Property Handles | Select-Object -Last 5
The output of the above command will be the __
Answer: List of 5 processes having lower handles values
5. Get-Variable cmdlet displays the list of __.
Answer: Both Pre-defined and User-defined variables
Course name : PowerShell Assessment | Course id 55956
6. PowerShell cmdlets perform system administration tasks such as managing __.
Answer: All the options
7. PSSession is __.
Answer: Created, managed and closed by a user
8. Which is an equivalent PowerShell command for “ls”?
Answer: Get-childitem
9. The PowerShell module can contain _.
Answer: Cmdlets, providers, functions, variables that can be imported as a single unit
10. PowerShell for Ubuntu can be downloaded ___.
Answer: As a Debian Package
11. To get customized output, _ cmdlet is used.
Answer: Format-table
12. PowerShell variables are used to store _.
Answer: Strings and Number objects
13. Shell is a _ that is used to pass commands to the OS.
Answer: cmd interpreter
Course name : PowerShell Assessment | Course id 55956
14. Alias name of the Format-table is _.
Answer: ft
15 To run “.PS1” files, the execution policy must be set to __.
Answer: Remote Signed
16.PowerShell commands are case sensitive.
Answer: False
17.Which of the following are Session specific commands?
Answer: Both Shell Function and Alias Commands
18.Error Action Preference specifies the desired behavior for _ in PowerShell.
Answer: Both terminating and non-terminating errors
19.The command(s) to display the examples of get-service is/are __.
Answer: Get-help Get-service -examples
Course name : PowerShell Assessment | Course id 55956
20.The PowerShell command to view all the properties of a specific Process like “Notepad” is Get-Process notepad | Select-Object -Property *.
Answer: True
21.The command to display the process name and ID of all processes is get-process __.
Answer: Both Select-Object and FT can be used
22.Write-host is used to _.
Answer: Display messages in the PowerShell console
23.The default version of PowerShell in Windows 10 is __.
Answer: PowerShell 5.0
24.Read-Host cmdlet is used to _
Answer: Prompt the value of the variable interactively
25.How will the value of the variable “$name” be set in the following command?
Answer: The value is already defined in the command
26.PowerShell commands are case sensitive.
Answer: False
Course name : PowerShell Assessment | Course id 55956
27.The PowerShell command to view all the properties of a specific Process like “Notepad” is Get-Process notepad | Select-Object -Property *.
Answer: True
28.Variables start with __.
Answer: “$”
29.If $Name=”User1″ then the command $name.gettype() provides the information on _
Ans: Type of the variable value
30.Integrated scripting environment is the __ for PowerShell.
Answer: Host application