Python Module 1

Python Module 1

University

25 Qs

quiz-placeholder

Similar activities

Assessment #2

Assessment #2

5th Grade - Professional Development

20 Qs

Python Strings

Python Strings

University

20 Qs

Python_2R

Python_2R

KG - Professional Development

20 Qs

Python Recap

Python Recap

7th Grade - University

20 Qs

Basics of programming - Quiz - 01

Basics of programming - Quiz - 01

University - Professional Development

20 Qs

Introduction To Python

Introduction To Python

University

20 Qs

AI BootCamp: 2024 Edition- Session 1

AI BootCamp: 2024 Edition- Session 1

University

20 Qs

Python for beginners

Python for beginners

University

20 Qs

Python Module 1

Python Module 1

Assessment

Quiz

Computers

University

Medium

Created by

Atul Uttam

Used 37+ times

FREE Resource

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?