Python User Input Quiz

Python User Input Quiz

6th Grade

10 Qs

quiz-placeholder

Similar activities

Java: repetition control structure for & while

Java: repetition control structure for & while

10th - 12th Grade

10 Qs

Expert System

Expert System

University

10 Qs

Teoria General de los Sistemas IF1300

Teoria General de los Sistemas IF1300

University

10 Qs

PowerPoint Quiz 2

PowerPoint Quiz 2

9th Grade

13 Qs

Redes de computadoras Topologías

Redes de computadoras Topologías

University

10 Qs

Aula 10 - Excel

Aula 10 - Excel

6th Grade

10 Qs

ข้อมูลและการประมวลผลข้อมูล

ข้อมูลและการประมวลผลข้อมูล

7th Grade

15 Qs

DCN5511: Chapter 5 - 7

DCN5511: Chapter 5 - 7

University

15 Qs

Python User Input Quiz

Python User Input Quiz

Assessment

Quiz

Computers

6th Grade

Practice Problem

Medium

Created by

Sreeja Gopalakrishnan

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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?