Tutorpip
← About this lesson
A
B
C
With the answer key
Download PDF
Print
tutorpip.com · for your family's use
Coding · Ages 10+ · Set C
Input from the user
Scan to mark
on screen
C
Name
Date
Start
Finish
Goal: 15 min
Score
/ 12
Remember:
Input pauses the program until a person types, and keeps what they type.
Questions
1
Which line asks a question and keeps the typed answer as text?
🔤
age = int(input "Age? ")
🔤
age = int("Age? ")
🔤
town = input("Town? ")
2
Which idea about input is not true?
📝
whatever is typed arrives as text
🖥️
input shows the typed answer on the screen by itself
⏳
input waits for the person to type
3
Which line has a bug?
🔤
age = int("Age? ")
🔤
name = print("Name? ")
🔤
name = input("Name? ")
4
Which line never waits for a person to type?
🔤
name = print("Name? ")
🔤
name = input("Name? ")
🔤
age = int("Age? ")
5
Which idea about input is not true?
⏳
input waits for the person to type
🏃
Python keeps running while it waits for typing
📝
whatever is typed arrives as text
6
Which idea about input is not true?
➕
typed digits arrive as numbers you can add
📦
the typed answer is kept in a variable
⏳
input waits for the person to type
7
Which idea about input is true?
➕
typed digits arrive as numbers you can add
🏁
the program is finished when a person starts typing
📝
whatever is typed arrives as text
8
Which line turns the typed answer into a number?
🔤
age = int("Age? ")
🔤
input = name("Name? ")
🔤
age = int(input("Age? "))
9
Which line asks a question and keeps the typed answer as text?
🔤
age = int("Age? ")
🔤
age = int(input("Age? "))
🔤
name = input("Name? ")
10
Which idea about input is true?
🔢
int turns text into a whole number
🏃
Python keeps running while it waits for typing
➕
typed digits arrive as numbers you can add
11
Which line has a bug?
🔤
name = print("Name? ")
🔤
age = input("Age? ")
🔤
input = name("Name? ")
12
⏳
Is it true that input waits for the person to type?
Yes
No
Scan the code at the top to mark this sheet on screen
Take a photo of your answers or type them. It is marked for you automatically, and your score is kept.