User Input in Python

User Input in Python

8th Grade

8 Qs

quiz-placeholder

Similar activities

Python Homework

Python Homework

8th Grade

12 Qs

Intro to Python

Intro to Python

8th Grade

10 Qs

Python

Python

7th - 8th Grade

13 Qs

Introduction to Python Quiz

Introduction to Python Quiz

8th Grade - University

10 Qs

Python Intro

Python Intro

8th - 9th Grade

10 Qs

N5 SDD - Python input and output

N5 SDD - Python input and output

7th - 11th Grade

12 Qs

Python for Class 7

Python for Class 7

7th - 8th Grade

11 Qs

Lesson 6 - Starter (Yr7 Using Computers Unit)

Lesson 6 - Starter (Yr7 Using Computers Unit)

6th - 10th Grade

10 Qs

User Input in Python

User Input in Python

Assessment

Quiz

Computers

8th Grade

Hard

Created by

Mr. So

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