User Input in Python

User Input in Python

8th Grade

8 Qs

quiz-placeholder

Similar activities

Programming in Python

Programming in Python

6th - 8th Grade

10 Qs

Python Quiz 1

Python Quiz 1

6th Grade - University

12 Qs

Python L2 Input & Variable

Python L2 Input & Variable

6th - 8th Grade

10 Qs

3. Variables and Operators

3. Variables and Operators

8th Grade

13 Qs

Intro to Python

Intro to Python

KG - University

10 Qs

SQL and databases

SQL and databases

KG - 12th Grade

10 Qs

Python Basics

Python Basics

6th - 12th Grade

9 Qs

Strings & Integers

Strings & Integers

6th - 9th Grade

10 Qs

User Input in Python

User Input in Python

Assessment

Quiz

Computers

8th Grade

Hard

Created by

Mr. So

Used 242+ times

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is missing from this input statement?

input ("What is your name? ")

the answer

a variable to store the input

an output

print =

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Look at the following code:

name = input ("What is your name? ")

print (name)

What would be printed from the print command?

whatever the user wrote

name

Andre

What is your name?

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Look at the following code:

name = input ("What is your name? ")

name = input ("What is your age? ")

print (name)


If the user answered "John" to the first question and "23" to the second, what will be printed?

23

John

name

an error message

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Look at the following code:

name = input ("What is your name? ")

age = input ("What is your age? ")

print (name)


If the user answered "John" to the first question and "23" to the second, what will be printed?

23

John

name

an error message

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Look at the following code:

name = input ("What is your name? ")

name = input ("What is your age? ")

print (age)


If the user answered "John" to the first question and "23" to the second, what will be printed?

23

John

age

an error message

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Look at the following code:

name = input ("What is your name? ")

name = input ("What is your age? ")

print ("name")


If the user answered "John" to the first question and "23" to the second, what will be printed?

23

John

name

an error message

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Look at the following code:

name = input ("What is your name? ")

name = input ("What is your age? ")


If the user answered "John" to the first question and "23" to the second, what type of data is in name?

str

int

float

none of the above

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Look at the following code:

name = input ("What is your name? ")

age = input ("What is your age? ")


If the user answered "John" to the first question and "23" to the second, what type of data is in age?

str

int

float

none of the above