
Python Inputs
Authored by Thomas Martinez
Computers
6th - 10th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will this python code do?
print("Hello, World")
Display Hello, World
Sent a message to our printer to print Hello, World in a paper
Display "Hello, World"
Nothing its syntax is wrong
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
how do we assign to the variable x a value of 5?
var x = 5;
var x = 5
x = 5
(x) == 5
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Whats wrong with the script below?
print(a+b)
a = 5
b = 10
The program doesn' t now what a and b is.
The print function should be print("a+b")
The print function should be print(a + b)
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
click the correct input statement:
name=int(input("Enter name")
name=input(Enter name)
name=input("Enter your name:")
print=input("Enter your name")
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Assign a string to a variable named food
food=pizza
pizza=food
pizza="food"
food="pizza"
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
why will the following script won't work?
user_input1 = input("Enter a number: ")
user_input2 = input("Enter a second number: ")
print(user_input1 + user_input2)
Because variables cannot be longer than 1 word
Because user_input1 and user_input2 is a string
Because input is an invalid function
Because python will always thing that it has to add 1+2
It will work
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
When we get an input what type of variable is it?Examble:
input_var = input("Input: ")
float
string
int
key
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
# REVIEW 1 DATA TYPES
Quiz
•
10th Grade
10 questions
Fundamentos PHP (Manejo de Fomularios y arreglos)
Quiz
•
9th Grade
14 questions
LA5.C5: Branching and Subroutines
Quiz
•
9th Grade - University
9 questions
OCR GCSE CS - 2.1 ERL sorts and searches
Quiz
•
10th - 11th Grade
11 questions
درس التقارير- Ms Access
Quiz
•
8th Grade
10 questions
2025 python class first quiz
Quiz
•
9th Grade - University
16 questions
J808 LO6.2 Tools to present information
Quiz
•
10th - 11th Grade
15 questions
Review for Midterm Test ICT 3
Quiz
•
1st - 11th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade