Python Module 1

Python Module 1

University

25 Qs

quiz-placeholder

Similar activities

Data Structure & Algo - Prelim Long Quiz

Data Structure & Algo - Prelim Long Quiz

University

21 Qs

Week 5: Test your understanding part 1

Week 5: Test your understanding part 1

University

20 Qs

unit-4-testing

unit-4-testing

University

20 Qs

SMARTICUS

SMARTICUS

University

20 Qs

Internet Technologies

Internet Technologies

University

20 Qs

Microsoft Excel

Microsoft Excel

KG - Professional Development

20 Qs

data structures1

data structures1

University

20 Qs

IAS CH4

IAS CH4

University

20 Qs

Python Module 1

Python Module 1

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Atul Uttam

Used 37+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following program:


y = 8

z = lambda x : x * y

print z(6)

48

14

64

None of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the use of id() function in python?

Id returns the identity of the object

Every object doesn’t have a unique id

All of the mentioned

None of the mentioned

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose list1 is [3, 4, 5, 20, 5, 25, 1, 3], what is list1 after list1.pop(1)?

[3, 4, 5, 20, 5, 25, 1, 3]

[1, 3, 3, 4, 5, 5, 20, 25]

[3, 5, 20, 5, 25, 1, 3]

[1, 3, 4, 5, 20, 5, 25]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can we add two strings together?

s.join(s2)

s.add(s2)

s = s + s2

s ++ s2

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the output be from the following code?
print("Hello world!\nHello world!")

Hello world! Hello world!
Hello world!
Hello world!
SyntaxError
Hello world!

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the output be from the following code?
print("Hello" + str(2) + "world!")

Hello world! Hello world!
Hello2world!
Hello Hello world! world!
SyntaxError

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Code repeated / looped until a condition has been met or a set number of times.

Sequence
Selection
Iteration
Variable

Create a free account and access millions of resources

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?