Python operators

Python operators

Professional Development

15 Qs

quiz-placeholder

Similar activities

Season 4 #Spaic Python Weekly Quiz

Season 4 #Spaic Python Weekly Quiz

KG - Professional Development

20 Qs

Operators in Python

Operators in Python

9th Grade - Professional Development

17 Qs

PYTHON ::04

PYTHON ::04

University - Professional Development

17 Qs

CodeHS - Intro to Python - Conditionals Quiz

CodeHS - Intro to Python - Conditionals Quiz

9th Grade - Professional Development

15 Qs

Python Programming Fundamental

Python Programming Fundamental

Professional Development

20 Qs

CodeHS 5.1 Python

CodeHS 5.1 Python

9th Grade - Professional Development

15 Qs

Code HS Unit 6 Computer Science in Python

Code HS Unit 6 Computer Science in Python

9th Grade - Professional Development

15 Qs

Q1 PYTHON EXPRESSION

Q1 PYTHON EXPRESSION

Professional Development

20 Qs

Python operators

Python operators

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Aruna Rao

Used 16+ times

FREE Resource

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

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?