Tutorpip← About this lessonABCWith the answer keyDownload PDF
Coding · Ages 10+ · Set B
Input from the user
Scan to mark
on screen
B
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 has a bug?
🔤input = name("Name? ")🔤age = int(input("Age? "))🔤age = input("Age? ")
2
Which line turns the typed answer into a number?
🔤age = input("Age? ")🔤input = name("Name? ")🔤age = int(input("Age? "))
3
Which line has a bug?
🔤stars = int(input("Stars? "))🔤age = int("Age? ")🔤name = print("Name? ")
4
Which idea about input is not true?
🔢int turns text into a whole number📝whatever is typed arrives as text🏃Python keeps running while it waits for typing
5
Which line has a bug?
🔤age = input("Age? ")🔤age = int(input("Age? "))🔤age = int(input "Age? ")
6
Which idea about input is true?
🏁the program is finished when a person starts typing🖥️input shows the typed answer on the screen by itself⏳input waits for the person to type
7
Which line turns the typed answer into a number?
🔤age = int("Age? ")🔤name = print("Name? ")🔤stars = int(input("Stars? "))
8
Which idea about input is not true?
🖥️input shows the typed answer on the screen by itself📦the typed answer is kept in a variable🔢int turns text into a whole number
9
🏁Is it true that the program is finished when a person starts typing?
YesNo
10
Which idea about input is true?
➕typed digits arrive as numbers you can add🏃Python keeps running while it waits for typing📝whatever is typed arrives as text
11
Which line never waits for a person to type?
🔤name = print("Name? ")🔤age = int(input("Age? "))🔤age = input("Age? ")
12
Which idea about input is true?
🔢int turns text into a whole number➕typed digits arrive as numbers you can add🏃Python keeps running while it waits for typing
Scan the code at the top to mark this sheet on screenTake a photo of your answers or type them. It is marked for you automatically, and your score is kept.