PowerShell Programming and Automation
Test your knowledge of Windows PowerShell, including cmdlets, scripting, execution policies, and PowerShell's object-oriented features.
Questions
What is a loop ?
- A new type of Applet
- A segment of code to be run a specified amount of times
- A segment of code to be run infinite times
- A segment of code to be run once
BCPL stands for ?
- Basic Combined Programming Language
- Basic Computer Programming Language
- Basic Combination Programming Language
- None of the Above
Before Bob Muglia formally announced Windows PowerShell in April 2006, what was PowerShell's code name?
- Longhorn
- Monad
- Cairo
- Whistler
Which of the following Windows versions does NOT support Windows PowerShell?
- Windows 2000
- Windows XP SP2
- Windows Vista
- Windows Server 2003 SP1
You can launch Windows programs that have a GUI, such as Notepad and Calculator, within Windows PowerShell.
- True
- False
If I sue Get-Process >>c\fso\process.txt and the c:\fso directory does not exist already.Windows powershell will automatically create the folder, and then create the file.
- True
- False
By default, you can run a Windows PowerShell script by double-clicking its icon.
- True
- False
To reduce typing, you can create an alternate name for a Windows PowerShell command called a/an ______________.
- Alias
- Cmdlet
- Object
- Pipe
In addition to having the standard file system drives, like C: and D:, Windows PowerShell has drives that correspond to which of the following data stores?
- Local machine's digital signature certificate store
- HKEY_LOCAL_MACHINE registry hive
- HKEY_CURRENT_USER registry hive
- All of the above
To Query from the Application logon your compute, you can use the Get-EventLog cmdlet in the Windows Powershell
- True
- False
Windows PowerShell script files use which of the following file extensions?
- .wps
- .ps1
- .shl
- .cmd
Windows PowerShell can execute commands in which of the following formats?
- Cmdlets
- PowerShell scripts
- Regular executables
- All of the above
Windows PowerShell processes data as text, like Cmd.exe, BASH, and other UNIX shells.
- True
- False
Single-feature commands that manipulate objects within PowerShell and are native to the PowerShell stack are called _______.
- Pipelines
- Line commands
- Cmdlets
- Scriptlets
PowerShell is often referred to as what?
- An object oriented shell built on the .NET Framework
- A clam shell
- A band shell
- All of the above
What can you type in PowerShell to find out more information about a particular command?
- Oh magic genie
- Get-help
- Get-please
- All of the above
What must you set before you can run a PowerShell script?
- Your alarm clock
- Your budget
- Your execution policy
- All of the above
PowerShell is:
- An interactive management shell
- Something your job will eventually require
- All of the above
- shell
What is PowerShell?
- A fabulous dessert topping
- A terrific floor wax
- The future of Windows automation and administration
- All of the above
PowerShell passes objects from one command to another via what?
- IRC
- E-mail
- The pipeline
- All of the above