Search Header Logo

Python operators

Authored by Aruna Rao

Computers

Professional Development

Used 16+ times

Python operators
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output of print(2%6)

ValueError

0.33

2

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code

x = 100

y = 50

print(x and y)

True

100

False

50

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the expression print(-18 // 4)

-4

4

-5

5

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value of the following Python Expression

print(36 / 4)

9.0

9

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following assignment operator

y = 10

x = y += 2

print(x)

12

10

syntax error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of print(10 - 4 * 2)

2

12

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following Python code

x = 10

y = 50

if (x ** 2 > 100 and y < 100):

print(x, y)

100 500

10 50

None

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?