
Python Input and Arithmetic Quiz
Authored by Zubaida Al-Soudi
Computers
9th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
17 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which line of code correctly obtains and stores user input?
input()
today_is = input
today_is = input()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Someone named Sophia enters their name when prompted with print("Please enter your name: ") and then types Sophia and presses Enter. What is displayed by print("You entered:", name)?
You entered: name
You entered: Sophia
You entered:, Sophia
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output if the user enters "six" as the input?
print("Please enter a number: ")
number = input()
print("Value =", number)
Value = six
Value = 6
Value = number
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the type of the variable x in the following Python program?
x = input("Enter something: ")
string
integer
float
The type cannot be determined.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following program print if the user types the input "Delaware ratified the U.S. Constitution in 1787" and presses Enter?
x = input("Enter some text: ")
print(x)
Delaware ratified the U.S. Constitution in 1787.
Delaware ratified the U.S. Constitution in
Delaware
The program does not print anything.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
x = 1
print(x, type(x))
1 <class 'int'>
1.0 <class 'int'>
1
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
y = 2.0
print(y, type(y))
2.0 <class 'int'>
2.0 <class 'float'>
2 <class 'int'>
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
14 questions
BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ
Quiz
•
6th Grade - University
12 questions
Examen final algoritmo
Quiz
•
11th Grade
12 questions
Електронні таблиці Exel
Quiz
•
1st - 12th Grade
20 questions
basisdata1
Quiz
•
University
15 questions
After Effect Intoduction
Quiz
•
10th Grade - University
20 questions
Trắc nghiệm Tin 10-Chủ đề A
Quiz
•
10th - 11th Grade
20 questions
Alat Proses
Quiz
•
9th Grade
19 questions
UNIT 1.2 MEMORY
Quiz
•
10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade