Search Header Logo

Python Unit-1 Quiz-2

Authored by Rishikesh Pathak

Computers

University

Used 18+ times

Python Unit-1 Quiz-2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code :

print 9//2

4.5

4

4.0

Error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is output for −

2 * 2 **3

12

64

16

36

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

var1 = 1

var2 = 2

var3 = "3"


print(var + var2 + var3)

6

33

123

Error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Find the Output:

x = 36 / 4 * (3 + 2) * 4 + 2

print(x)

182

37

117

270

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?


listOne = [20, 40, 60, 80]

listTwo = [20, 40, 60, 80]


print(listOne == listTwo)

print(listOne is listTwo)

True

True

True

False

False

True

False

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A string is immutable in Python?


Every time when we modify the string, Python Always create a new String and assign a new string to that variable.

True

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?


var = "James" * 2 * 3

print(var)

JamesJamesJamesJamesJamesJames

JamesJamesJamesJamesJames

Error: invalid syntax

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?