Search Header Logo

Python Programming Quiz

Authored by Nhoung Nhem

Science

11th Grade

15 Questions

Used 4+ 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

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

x = 5

y = int(5.5)

print(x+y)

what is this answer?

10

10.60

11

10.6

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to comment multiple lines in Python?

Use triple quotes (''' or """) to comment multiple lines in Python.

Use a single hashtag (#) at the beginning of each line to comment multiple lines in Python.

Use double slashes (//) to comment multiple lines in Python.

Use a single forward slash and asterisk (/*) at the beginning and end of the block to comment multiple lines in Python.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

x = "Salary"

y = "500$"

print(x+y)

what is this answer?

Salary500$

Salary 500$

salary500$

salary 500$

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

x = "Salary"

y = "500$"

print(x,y)

what is this answer?

Salary 500$

Salary500$

salary500$

salary 500$

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to comment 1 lines in Python?

""" """

#

''' '''

##

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

x = 5

y = 5

.............. = x+y

print(z)

what is this answer?

x

y

z

x+y

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

how to know type of Python?

print(type())

print(type)

print type()

print type

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?