PowerShell Programming and Automation

Test your knowledge of Windows PowerShell, including cmdlets, scripting, execution policies, and PowerShell's object-oriented features.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What is a loop ?

  1. A new type of Applet
  2. A segment of code to be run a specified amount of times
  3. A segment of code to be run infinite times
  4. A segment of code to be run once
Question 2 Multiple Choice (Single Answer)

BCPL stands for ?

  1. Basic Combined Programming Language
  2. Basic Computer Programming Language
  3. Basic Combination Programming Language
  4. None of the Above
Question 3 Multiple Choice (Single Answer)

Before Bob Muglia formally announced Windows PowerShell in April 2006, what was PowerShell's code name?

  1. Longhorn
  2. Monad
  3. Cairo
  4. Whistler
Question 4 Multiple Choice (Single Answer)

Which of the following Windows versions does NOT support Windows PowerShell?

  1. Windows 2000
  2. Windows XP SP2
  3. Windows Vista
  4. Windows Server 2003 SP1
Question 5 True/False

You can launch Windows programs that have a GUI, such as Notepad and Calculator, within Windows PowerShell.

  1. True
  2. False
Question 6 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.

  1. True
  2. False
Question 7 True/False

By default, you can run a Windows PowerShell script by double-clicking its icon.

  1. True
  2. False
Question 8 Multiple Choice (Single Answer)

To reduce typing, you can create an alternate name for a Windows PowerShell command called a/an ______________.

  1. Alias
  2. Cmdlet
  3. Object
  4. Pipe
Question 9 Multiple Choice (Single Answer)

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?

  1. Local machine's digital signature certificate store
  2. HKEY_LOCAL_MACHINE registry hive
  3. HKEY_CURRENT_USER registry hive
  4. All of the above
Question 10 True/False

To Query from the Application logon your compute, you can use the Get-EventLog cmdlet in the Windows Powershell

  1. True
  2. False
Question 11 Multiple Choice (Single Answer)

Windows PowerShell script files use which of the following file extensions?

  1. .wps
  2. .ps1
  3. .shl
  4. .cmd
Question 12 Multiple Choice (Single Answer)

Windows PowerShell can execute commands in which of the following formats?

  1. Cmdlets
  2. PowerShell scripts
  3. Regular executables
  4. All of the above
Question 13 True/False

Windows PowerShell processes data as text, like Cmd.exe, BASH, and other UNIX shells.

  1. True
  2. False
Question 14 Multiple Choice (Single Answer)

Single-feature commands that manipulate objects within PowerShell and are native to the PowerShell stack are called _______.

  1. Pipelines
  2. Line commands
  3. Cmdlets
  4. Scriptlets
Question 15 Multiple Choice (Single Answer)

PowerShell is often referred to as what?

  1. An object oriented shell built on the .NET Framework
  2. A clam shell
  3. A band shell
  4. All of the above
Question 16 Multiple Choice (Single Answer)

What can you type in PowerShell to find out more information about a particular command?

  1. Oh magic genie
  2. Get-help
  3. Get-please
  4. All of the above
Question 17 Multiple Choice (Single Answer)

What must you set before you can run a PowerShell script?

  1. Your alarm clock
  2. Your budget
  3. Your execution policy
  4. All of the above
Question 18 Multiple Choice (Single Answer)

PowerShell is:

  1. An interactive management shell
  2. Something your job will eventually require
  3. All of the above
  4. shell
Question 19 Multiple Choice (Single Answer)

What is PowerShell?

  1. A fabulous dessert topping
  2. A terrific floor wax
  3. The future of Windows automation and administration
  4. All of the above
Question 20 Multiple Choice (Single Answer)

PowerShell passes objects from one command to another via what?

  1. IRC
  2. E-mail
  3. The pipeline
  4. All of the above