0 of 7 Questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 7 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
If this program were to run, how many possible outcomes could this program produce?
score = int(input(“Enter your test score (out of 100): “))
if score > 30:
print(“Pass”)
else:
print(“Fail”)
If this program were to run, how many possible outcomes could be produced from this program?
score = int(input(“Enter your test score (out of 100): “))
if score > 90:
print(“Grade A”)
elif 80 < score <= 90:
print(“Grade B”)
elif 70 < score <= 80:
print(“Grade C”)
elif 60 < score <= 70:
print(“Grade D”)
elif 50 < score <= 60:
print(“Grade E”)
elif 40 < score <= 50:
print(“Grade F”)
elif 30 < score <= 40:
print(“Grade G”)
else:
print(“Fail”)
Which of the following pieces of python code enables more than one condition to be checked within an IF statement?
How should the following condition be read?
if age > 17:
How should the following condition be read?
if password != “1234”:
What would be the result of the following if statement condition?
if password = “pAs$w0rd”
What is the error in the program above?