Search Header Logo

Python User Input Quiz

Authored by Sreeja Gopalakrishnan

Computers

6th Grade

Used 4+ times

Python User Input Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function is used in Python to accept user input?

print()

input()

output()

enter()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of value does the input() function return by default?

Integer

Float

String

Boolean

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to convert a user input to an integer in Python?

str()

float()

int()

bool()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is automatically added in a print statement when using a comma separator?

A period

A space

A tab

A newline

5.

OPEN ENDED QUESTION

3 mins • 1 pt

  1. Write a Python program that asks for a user's name and age, then prints:
    "Hello [Name], you are [Age] years old!"

Evaluate responses using AI:

OFF

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

______________ will the following code print.

output = ""

x = -5

while x < 0:

x = x + 1

output = output + str(x) + " "

print(output)

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

  1. The ______ function is used to accept user input in Python.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?