HansR on the Web - All quiz questions on Powershell
Updated: 14-03-2018 23:42:08h
topics: powershell, level: 100
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.
topics: powershell, level: 100
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.
topics: powershell|flow control, level: 100
Which of the following rules apply for if statements in PowerShell?
Please select exactly one or 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.
topics: powershell, level: 100
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.
That's all folks!

Congratulations, you've made it to the end! I'll try to add more questions and topics on a regular basis.

More questions?

If you have enjoyed the quiz and you want more, you can select other tests by clicking the green buttons below.

Other resources

There are many quizzes and learning resources on the internet. Below you'll links to a selection of these. I'll add more. Quizzes from others
Learning resources
Take a look at my blog

Contact

Please contact me for feedback, suggestions and questions. hansrontheweb@live.com
Other quizzes

all topics
latest questions
html
css
javascript
jquery
bootstrap
architecture
software engineering
c#
sharepoint
xml
powershell
angular