Refer to the following powershell code for the next 9 questions :# Student grade processor# Line 1[string] $ClassName = “Introduction to Scripting”[int] $PassingGrade = 60[bool] $Verbose = $true # Line 6$Scores = @(72, 45, 91, 58, 83, 100, 39) # Line 8$TotalScore = 0$PassCount = 0$FailCount = 0 # Line 12foreach ($Score in $Scores) { $TotalScore += $Score if ($Score -ge $PassingGrade) { $PassCount++ if ($Verbose) { Write-Output “PASS: $Score” } } else { $FailCount++ Write-Output “FAIL: $Score” }} # Line 26$Average = $TotalScore / $Scores.Length # Line 28Write-Output “— $ClassName —“Write-Output (“Average: {0:F1}” -f $Average)Write-Output “Passed: $PassCount | Failed: $FailCount”
Blog
Write the powershell expression that would be used to access…
Write the powershell expression that would be used to access the first item in the $Scores array and the powershell expression that would be used to access the last item in the $Scores array
When the program completes what will be the value of the var…
When the program completes what will be the value of the variable $PassCount?
How many lines will the following command return?grep “192.1…
How many lines will the following command return?grep “192.168.1.10” server.log
What is a practical use of the -Uri parameter in Invoke-Rest…
What is a practical use of the -Uri parameter in Invoke-RestMethod or Invoke-WebRequest?
Match the Windows PowerShell commands with their outcomes.
Match the Windows PowerShell commands with their outcomes.
In a hypertensive crisis, which reason best explains why a n…
In a hypertensive crisis, which reason best explains why a nurse should focus on mean arterial pressure over blood pressure?
To meet standards of care, what assessment tool should emerg…
To meet standards of care, what assessment tool should emergency care providers utilize when initially assessing a client suspected of having a stroke?
Which of the following is true of marketing channel members?
Which of the following is true of marketing channel members?
An intervention in which parents and their children who have…
An intervention in which parents and their children who have been diagnosed with conduct disorder learn to do behavior therapy—targeting and rewarding desired behavior—is called: