Search Header Logo

Python Final Test

Authored by Gnaneshwar Reddy

Other

University

Used 1+ times

Python Final Test
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the value of the following Python expression?

4 + 3 % 5

a) 7

b) 2

c) 4

d) 1

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following character is used to give single-line comments in Python?

a) //

b) #

c) !

d) /*

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the order of precedence in python?

a) Exponential, Parentheses, Multiplication, Division, Addition, Subtraction

b) Exponential, Parentheses, Division, Multiplication, Addition, Subtraction

c) Parentheses, Exponential, Multiplication, Division, Subtraction, Addition

d) Parentheses, Exponential, Multiplication, Division, Addition, Subtraction

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code?

2*3*2

214

456

567

512

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does pip stand for python?

a) Pip Installs Python

b) Pip Installs Packages

c) Preferred Installer Program

d) All of the mentioned

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the values of the following Python expressions?

2*(3*2)

(2*3)*2

2*3*2

a) 512, 64, 512

b) 512, 512, 512

c) 64, 512, 64

d) 64, 64, 64

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code?

l=[1, 0, 2, 0, 'hello', '', []]

list(filter(bool, l))

a) [1, 0, 2, ‘hello’, ”, []]

b) Error

c) [1, 2, ‘hello’]

d) [1, 0, 2, 0, ‘hello’, ”, []]

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?