This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
How does PowerShell compile?
You run your code through a compiler as a step to outputting an executable program.
PowerShell is an interpreted language and your code will be interpreted to the computer as it runs.
PowerShell doesn't compile at all, and the computer knows what your code says automatically.
PowerShell code is compiled to an AST, checked for issues, and then translated again so the computer can understand it.
Which of the following statements is true about PowerShell.
PowerShell is case sensitive.
Prompt is a cmdlet and Read-Host is a parameter.
Prompt
Read-Host
You can enclose strings in either single or double quotation marks.
If you make a mistake when you write code, you have to delete it all and start over.
What is wrong with this line of code? Read-host "What is wrong with this line of code?"
Read-host "What is wrong with this line of code?"
The letter 'h' in Read-host should be uppercase.
Read-host
It's missing a semicolon at the end.
The string should be enclosed in single quotation marks.
Nothing is wrong with this command. It will run normally.
You must answer all questions before checking your work.
Continue
Was this page helpful?