0 of 10 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 10 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)
Study the following code and select the output that it would produce when run.
num1 = 10
num2 = 15
if num1 > num2:
print(num1)
else:
print(num2)
Study the code below and select the output that this program would produce if the user entered 50.
score = input(“Please enter your test score”)
if score > 50:
print(“You Passed!”)
else:
print(“You Failed”)
Study the code below and select the output that this program would produce if the user entered 50.
score = int(input(“Please enter your test score”))
if score > 50:
print(“You Passed!”)
else:
print(“You Failed”)
What would be the output if the user inputted the data “PaSsWoRd123”?
user_pass = input(“Please enter your password”)
if user_pass != “password123”:
print(“Wrong Password”)
else:
print(“Correct Password”)
Write (in the space below) the first line of a python IF statement that would check if the contents of a variable (called age) was greater than the number 25.
Remember, this code needs to be written perfectly to be marked correctly.
Which of the programs above will check to see which number is the biggest?
Which of the programs above will work out if the number entered is positive, negative or zero?
Which of the programs above will work out if the first number entered is bigger or smaller than the second?
What is the error in the program above?
What is the error in the code above, which will cause the program to fail?