Python User Input Quiz

Python User Input Quiz

6th Grade

10 Qs

quiz-placeholder

Similar activities

Y9 - Module 2 - KT1 Python Basics

Y9 - Module 2 - KT1 Python Basics

9th Grade

14 Qs

Python Statements

Python Statements

5th - 7th Grade

10 Qs

Python Introduction Quiz

Python Introduction Quiz

8th - 9th Grade

12 Qs

Python

Python

7th - 8th Grade

10 Qs

Python Basics Quiz

Python Basics Quiz

9th Grade

15 Qs

Python Inputs

Python Inputs

7th - 8th Grade

10 Qs

Python L2

Python L2

10th - 11th Grade

10 Qs

Python Basics

Python Basics

6th - 7th Grade

15 Qs

Python User Input Quiz

Python User Input Quiz

Assessment

Quiz

Computers

6th Grade

Medium

Created by

Sreeja Gopalakrishnan

Used 2+ times

FREE Resource

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.

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?