1.The following symbols are known as ____.
<, >, ==, <=, >=, !=
A) assignment statements
B) selection structures
C) relational operators
D) sentinels
2. Which of the following programs displays a “passing grade” message if the score is 60 or above?
A) Display “Enter a test score: “
Input testScore
If testScore > 60 Then
Display “That is a passing grade.”
End If
Display “End of program.”
B) Display “Enter a test score: “
Input testScore
If testScore ==60 Then
Display “That is a passing grade.”End IfDisplay “End of program.”
C) Display “Enter a test score: “
Input testScore
If testScore <=60 Then
Display “That is a passing grade.”End IfDisplay “End of program.”
D) Display “Enter a test score: “
Input testScore
If testScore >=60 Then
Display “That is a passing grade.”End IfDisplay “End of program.”
3. The following statement concatenates a customer’s name:
custName = firstName + ” ” + lastName
[Write True or Flase]
4. The code for the following is ____.
“If the value of password is not bottomsUp, display the message Access denied.”:
A) If password != “bottomsUp” Then
Display “Access denied.”
End If
B) If password !== “bottomsUp” Then
Display “Access denied.”End If
C) If password >= “bottomsUp” Then
Display “Access denied.”End If
D) If password ! “bottomsUp” Then
Display “Access denied.”End If