Python – Lessons 3 Review KS3
Quiz Summary
0 of 7 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 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)
Categories
- Introduction to Python 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- Current
- Review / Skip
- Answered
- Correct
- Incorrect
-
Question 1 of 7
1. 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 2 of 7
2. 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.
What line of code is needed under the first line and above the second, to enable this calculation to be performed correctly?
CorrectIncorrect -
Question 3 of 7
3. 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 4 of 7
4. Question
What is the name of the data type of a variable that contains whole numbers (for example 4 or 453)?
CorrectIncorrect -
Question 5 of 7
5. 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 6 of 7
6. Question
What would be the output from the following program if the user entered the number 4?
number = int(input(“Please enter a number: “))
answer = number + 5
print(answer)CorrectIncorrect -
Question 7 of 7
7. Question
What would be the output from the following program?
number = “4”
answer = number + “5”
print(answer)CorrectIncorrect