Python Continued – Lesson 2 Review KS3
Quiz Summary
0 of 17 Questions completed
Questions:
Information
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:
Results
Results
0 of 17 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)
Categories
- Python Continued 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- Current
- Review
- Answered
- Correct
- Incorrect
-
Question 1 of 17
1. Question
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)CorrectIncorrect -
Question 2 of 17
2. Question
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”)CorrectIncorrect -
Question 3 of 17
3. Question
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”)CorrectIncorrect -
Question 4 of 17
4. Question
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”)CorrectIncorrect -
Question 5 of 17
5. Question
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.CorrectIncorrect -
Question 6 of 17
6. Question

Which of the programs above will check to see which number is the biggest?
CorrectIncorrect -
Question 7 of 17
7. Question

Which of the programs above will work out if the number entered is positive, negative or zero?
CorrectIncorrect -
Question 8 of 17
8. Question

Which of the programs above will work out if the first number entered is bigger or smaller than the second?
CorrectIncorrect -
Question 9 of 17
9. Question

What is the error in the program above?
CorrectIncorrect -
Question 10 of 17
10. Question

What is the error in the code above, which will cause the program to fail?
CorrectIncorrect -
Question 11 of 17
11. Question
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”)CorrectIncorrect -
Question 12 of 17
12. Question
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”)CorrectIncorrect -
Question 13 of 17
13. Question
Which of the following pieces of python code enables more than one condition to be checked within an IF statement?
CorrectIncorrect -
Question 14 of 17
14. Question
How should the following condition be read?
if age > 17:
CorrectIncorrect -
Question 15 of 17
15. Question
How should the following condition be read?
if password != “1234”:
CorrectIncorrect -
Question 16 of 17
16. Question
What would be the result of the following if statement condition?
if password = “pAs$w0rd”
CorrectIncorrect -
Question 17 of 17
17. Question

What is the error in the program above?
CorrectIncorrect