User Input in Python

User Input in Python

8th Grade

8 Qs

quiz-placeholder

Similar activities

Python (Selection)

Python (Selection)

8th - 10th Grade

13 Qs

Python Selection

Python Selection

8th - 9th Grade

10 Qs

N5 SDD - Python input and output

N5 SDD - Python input and output

7th - 11th Grade

12 Qs

Python Inputs

Python Inputs

7th - 8th Grade

10 Qs

Computer Systems - How the web works - Lesson 7

Computer Systems - How the web works - Lesson 7

8th Grade

12 Qs

Intro to Python

Intro to Python

8th Grade

10 Qs

Introduction to Python Quiz

Introduction to Python Quiz

8th Grade - University

10 Qs

Python Data Types and Arithmetic Quiz

Python Data Types and Arithmetic Quiz

8th Grade

7 Qs

User Input in Python

User Input in Python

Assessment

Quiz

Computers

8th Grade

Hard

Created by

Mr. So

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