Which line of code correctly obtains and stores user input?

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
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 Quizizz
18 questions
Computer Science (Python)

Quiz
•
9th Grade
20 questions
quiz dasar python

Quiz
•
1st Grade - University
14 questions
Java Operators

Quiz
•
University
20 questions
CodeHS - Intro to Python - Basics and Console Interaction

Quiz
•
9th Grade - Professio...
15 questions
Python introduction

Quiz
•
University
16 questions
C-Programming Basics

Quiz
•
12th Grade
20 questions
Python variables and operators quiz

Quiz
•
9th - 12th Grade
15 questions
Input Commands Quiz

Quiz
•
10th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University