
Python Input and Arithmetic Quiz

Quiz
•
Computers
•
9th Grade
•
Hard

Zubaida Al-Soudi
Used 1+ times
FREE Resource
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'>
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Ôn tập KTGK. Bài 18. Các lệnh vào ra đơn giản

Quiz
•
10th Grade
12 questions
Python

Quiz
•
12th Grade
12 questions
S1 Start if

Quiz
•
10th Grade
20 questions
Python Basics Review (TSK)

Quiz
•
9th - 12th Grade
20 questions
Python Basics (CodeHS)

Quiz
•
7th - 12th Grade
12 questions
Python Print Statement

Quiz
•
6th - 10th Grade
15 questions
Python бағдарламалау тілі

Quiz
•
11th Grade
20 questions
Control Statements in Python

Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade