Python-Expressions#1

Python-Expressions#1

12th Grade - University

10 Qs

quiz-placeholder

Similar activities

CS1310 Unit 1 Quizziz

CS1310 Unit 1 Quizziz

12th Grade

10 Qs

Python If statement

Python If statement

University

11 Qs

CSE 102 Exam 2 Practice

CSE 102 Exam 2 Practice

University

15 Qs

Python Control Structure

Python Control Structure

12th Grade

15 Qs

Python Inbuilt functions

Python Inbuilt functions

12th Grade

15 Qs

Python Generators

Python Generators

10th Grade - University

10 Qs

python daily 10 questions 30 seconds

python daily 10 questions 30 seconds

12th Grade - Professional Development

10 Qs

Python Programming Intermediate-1

Python Programming Intermediate-1

University

15 Qs

Python-Expressions#1

Python-Expressions#1

Assessment

Quiz

Computers

12th Grade - University

Hard

Created by

Rafeeque PC

Used 67+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is a proper arithmetic expression in Python?

10 (15 + 6)

(10 * 2) (4 + 8)

5 * (6 - 2)

2.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following are valid assignment statements in which only variable k has already assigned a value?

n = k + 1

n = n + 1

n + k = 10

n + 1 = 1

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What does the following expression evaluates to ?

2 + 9 * ((3 * 12) - 8) / 10

27

27.2

28

30.8

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Evaluate the following expression in Python

2 * 3 ** 2

18

36

12

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Evaluate the following expression in Python?

24 // 4 // 4

1

2

24

1.5

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Evaluate the following arithmetic expression in Python ?

2 ** 2 ** 3

256

48

64

512

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Evaluate the following expression in Python?

2 + int(4.5)

6

6.5

7

Error

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?