Intro to Scripting 3 - Powershell

When printing a string on multiple lines in powershell, what is the correct syntax?
Write-Host @"line 1 line 2"@
Write-Host "My name is $name"
Write-Host"line 1 line 2"
echo"line 1 line 2"
Write-Host @"line 1 line 2"@
A powershell script is comparing two integers to determine if a is bigger than b. Which command is correct?
if ($a -gt $b)…
if ($a > $b)…
if {b<a}…
if (a >> b)…
if ($a -gt $b)…
Which of the following is not a valid way to start a function in Powershell
function calc("a") {
function calc {
function calc($text) {
function calc ($a, $b) {
function calc("a") {
What is the correct syntax to print a string with a variable in PowerShell?
Write-Host "My name is $name"
Write-Output ("My name is " +name)
Write-Host "my name is {name}"
Write-Output ("My name is " +$name)
Write-Host "My name is $name"
What environment is commonly used for PowerShell script development
Integrated Scripting Environment
PowerShell developer
Visual Studio
text editor
Integrated Scripting Environment
What is a powershell equivalent to the print command?
Write-Output
print
Write-Here
Write-print
Write-Output
What additional libraries need to be installed on windows to allows the creation of Powershell scripts
None
Shell library
Windows Legacy Library
Scripting library
None
In PowerShell, when creating a conditional statement with 3 conditions what is the correct order of commands?
if <condition> elseif <condition> else <condition>
if <condition> elif <condition> else <condition>
if <condition> else <condition> end <condition>
Write-If <condition> Write-elif <condition> Write-else <condition>
if <condition> elseif <condition> else <condition>
Your Score
Score Label
Score Summary