User Input in Python

User Input in Python

8th Grade

8 Qs

quiz-placeholder

Similar activities

KS4 Programming Techniques (1)

KS4 Programming Techniques (1)

8th - 10th Grade

10 Qs

N5 SDD - Python input and output

N5 SDD - Python input and output

7th - 11th Grade

12 Qs

Variables in Python

Variables in Python

8th Grade

8 Qs

Python Programming

Python Programming

7th - 9th Grade

10 Qs

Introduction to Python Quiz

Introduction to Python Quiz

8th Grade - University

10 Qs

Python Lesson 1 - Homework

Python Lesson 1 - Homework

8th - 9th Grade

10 Qs

Python (Selection)

Python (Selection)

8th - 10th Grade

13 Qs

Python Selection

Python Selection

8th - 9th 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