Search Header Logo

Python Programming Quiz

Authored by Hamza Motiyar

Other

9th Grade

Used 1+ times

Python Programming Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following code print? print("Hello" + "World")

Hello World

HelloWorld

Hello + World

Error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to get input from the user?

read("name")

input("Enter name: ")

scan("name")

get("name")

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used to store a number like 25?

string

int

bool

float

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of this code? x = 3 if x > 5: print("Big") else: print("Small")

Big

Small

3

Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will this code output? for i in range(3): print(i)

1 2 3

0 1 2

0 1 2 3

Error

6.

OPEN ENDED QUESTION

3 mins • Ungraded

What does the input() function do in Python?

Evaluate responses using AI:

OFF

7.

OPEN ENDED QUESTION

3 mins • Ungraded

Write one example of using a while loop.

Evaluate responses using AI:

OFF

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?