Which of the following is an example of a single-outcome selection?
A) If testScore >= 60 Then
Display "That is a passing grade."
Else
Display "That is a failing grade."
End If
B) If hoursWorked > 40 Then
OvertimeHours = hoursWorked - 40
OvertimePay = overtimeHours * wageRate * 1.5
RegularPay = 40 * wageRate
GrossPay = regularPay + overtimePay
Else
GrossPay = hoursWorked * wageRate
End If
C) If age >= 65 Then
DiscountRate = 0.10
End If
D) Method deposit(Numeric amt)
AcctBal = acctBal + amt
Display "The new balance is: $" + acctBal
End Method
Correct Answer:
Verified
Q29: The following symbols are known as _.
<,
Q30: The simplest selection structure is one in
Q31: Which of the following statements corresponds to
Q32: Which of the following statements corresponds to
Q33: Which of the following statements corresponds to
Q35: The code for the following is _.
"If
Q36: The code for the following is _.
"If
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents