Python User Input Quiz

Python User Input Quiz

6th Grade

10 Qs

quiz-placeholder

Similar activities

Program Development - Python: Errors

Program Development - Python: Errors

8th - 10th Grade

13 Qs

Variables & Conditional Statements

Variables & Conditional Statements

9th Grade

10 Qs

Y9 Intro to Python

Y9 Intro to Python

8th Grade

10 Qs

Review Python

Review Python

8th Grade

15 Qs

Python Basics

Python Basics

7th Grade

14 Qs

CSC401- G9[GEN]_53

CSC401- G9[GEN]_53

9th Grade

10 Qs

Input and Output Operations in Python

Input and Output Operations in Python

8th Grade

10 Qs

Computer Software

Computer Software

7th - 8th Grade

10 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?