PowerShell selftest

PowerShell 1 scripts have the .ps1 extension. What extension do PowerShell 3 scripts have?
Please select exactly one correct alternative.

Answer

The only extension (untill this moment) is the .ps1 extension for PowerShell scripts.
Which of the following rules apply for if statements in PowerShell?
Please select none ore more correct alternatives.

Answer

The depending statement must be in braces. The boolean condition has to be in parentheses. PowerShell commands are case-insensitive, so you can use If, if, or IF. The same applies to else. The statement that there must be an else defined is nonsense.
How are 0 and 1 treated in logical expressions?
Please select exactly one correct alternative.

Answer

PowerShell treats the numbers 0 and 1 like False and True.
What are automatic variables?
Please select exactly one correct alternative.

Answer

Variables that store state information for PowerShell. These variables are created and maintained by Windows PowerShell.

Geen opmerkingen:

Een reactie posten