Python Input and Output Quiz

Python Input and Output Quiz

Assessment

Passage

Computers

7th Grade

Hard

Created by

Chris Bashford

Used 3+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the `input()` function in the code?

To display text on the screen

To take user input

To perform calculations

To create a loop

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of data does the `input()` function return?

Integer

String

Boolean

Float

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will happen if you enter "Alice" for the name and "12" for the age?

"Hello, Alice, you are 12 years old"

"Hello, 12, you are Alice years old"

"Hello, Alice, you are Alice years old"

"Hello, 12, you are 12 years old"

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be printed after the user's name is entered?

The user's age

"Hello World"

"***"

"Hello, [name], you are [age] years old"

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an output in programming?

The values which get sent from the computer to the user

The values which get sent from the user to the computer

The place where inputs get stored by the program

The process of writing code

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a lesson objective?

Understand how to program inputs in Python

Understand how to store inputs into variables in Python

Understand how to cook a meal

Understand the need to store inputs in Python

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the significance of understanding Python outputs?

To send data to the user

To store data

To delete data

To create errors

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?