Python – Revision Quiz KS3
Quiz Summary
0 of 19 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 19 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
- Introduction to Python 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- Current
- Review
- Answered
- Correct
- Incorrect
-
Question 1 of 19
1. Question
x = “Number”
y = 3
print(x + y)What would be the output?
CorrectIncorrect -
Question 2 of 19
2. Question
What is a variable?
CorrectIncorrect -
Question 3 of 19
3. Question
Which of the following pieces of python code will allow you to display a message on the screen, without immediately waiting for the user to type in an input?
CorrectIncorrect -
Question 4 of 19
4. Question
What would be displayed on the screen if the following code was run?
print(“Hi there!”)
CorrectIncorrect -
Question 5 of 19
5. Question
Type in the code that would display the message “Hello everyone” on the screen when the program is run and not wait for the user to enter something on the keyboard afterwards.
Remember to take care with your spelling and use of capital/lower case letters. The code needs to be exact!
CorrectIncorrect -
Question 6 of 19
6. Question
Type in the space below the code that would ask the following message “Enter your age”, wait for a user to input their age and store the inputted age in a variable called age.
Remember to take care with your spelling and use of capital/lower case letters. The code needs to be exact!
CorrectIncorrect -
Question 7 of 19
7. Question
number = input(“Please enter a number”)
answer = number * 5
print(answer)If the following program was run, the user would be asked to enter a number. If they typed in the number 4, you might expect the program to output the number 20 but in actual fact the program would output 44444.
Why is this?
CorrectIncorrect -
Question 8 of 19
8. Question
What is the name of the data type of a variable that contains a mixture of keyboard characters (for example “Bob123” or “Hello You!”)?
CorrectIncorrect -
Question 9 of 19
9. Question
What would be the output from the following program if the user entered the number 4?
number = input(“Please enter a number: “)
answer = number + 5
print(answer)CorrectIncorrect -
Question 10 of 19
10. Question
What would be the output from the following program?
number = “4”
answer = number + “5”
print(answer)CorrectIncorrect -
Question 11 of 19
11. 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 12 of 19
12. 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 13 of 19
13. 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 14 of 19
14. 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 15 of 19
15. Question
Which of the following pieces of python code enables more than one condition to be checked within an IF statement?
CorrectIncorrect -
Question 16 of 19
16. Question
How should the following condition be read?
if password != “1234”:
CorrectIncorrect -
Question 17 of 19
17. Question

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

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

What is the error in the program above?
CorrectIncorrect