User Input in Python

User Input in Python

8th Grade

8 Qs

quiz-placeholder

Similar activities

Lesson 3 - Using Variables

Lesson 3 - Using Variables

8th Grade

11 Qs

Technology Basics

Technology Basics

6th - 8th Grade

10 Qs

Mathematical Operators in Python

Mathematical Operators in Python

8th Grade

12 Qs

Python Introduction Quiz

Python Introduction Quiz

8th - 9th Grade

12 Qs

Python

Python

7th - 8th Grade

10 Qs

Year 7 Python Lesson 1 Recap

Year 7 Python Lesson 1 Recap

8th Grade

10 Qs

Python Quiz 2

Python Quiz 2

8th Grade

13 Qs

Lord Bill's Year 7 Python Quiz

Lord Bill's Year 7 Python Quiz

6th - 8th Grade

13 Qs

User Input in Python

User Input in Python

Assessment

Quiz

Computers

8th Grade

Hard

Created by

Mr. So

Used 243+ 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