Python EXPRESSION

Python EXPRESSION

University

25 Qs

quiz-placeholder

Similar activities

Python Basics 1

Python Basics 1

University

20 Qs

Python if/else

Python if/else

University

20 Qs

EXCEPTION HANDLING IN PYTHON

EXCEPTION HANDLING IN PYTHON

University

22 Qs

Season 4 #Spaic Python Weekly Quiz

Season 4 #Spaic Python Weekly Quiz

KG - Professional Development

20 Qs

Understanding Python Functions

Understanding Python Functions

University

20 Qs

FD Theory Python 2

FD Theory Python 2

11th Grade - University

20 Qs

Python_2R

Python_2R

KG - Professional Development

20 Qs

Python Control Structures

Python Control Structures

University

20 Qs

Python EXPRESSION

Python EXPRESSION

Assessment

Quiz

Computers

University

Medium

Created by

Darwin Vargas

Used 1+ times

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used for exponentiation in Python?

^

**

!

*

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following expressions will result in a TypeError?

'Hello' + ' World'

5 + 6

'5' + 5

7 * 3

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value of the following expression: 10 % 3?

1

0

2

3

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following expression: 2 + 3 * 4?

20

14

12

24

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the expression 3 // 2 evaluate to in Python?

1.5

1

2

0

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the expression not True evaluate to?

True

False

None

Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value of 2 ** 3 ** 2?

512

64

256

128

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?