Python Module 1

Python Module 1

University

25 Qs

quiz-placeholder

Similar activities

Power point

Power point

University

20 Qs

Software Engineering Quiz 1

Software Engineering Quiz 1

University

20 Qs

Arduino Loop

Arduino Loop

2nd Grade - University

20 Qs

Round 1 ( RHA Learner Contest )

Round 1 ( RHA Learner Contest )

University

20 Qs

Python MCQ

Python MCQ

University

20 Qs

Network topologies

Network topologies

8th Grade - University

20 Qs

WML & WAP

WML & WAP

University

20 Qs

Microsoft Office Advandces 2016

Microsoft Office Advandces 2016

9th Grade - Professional Development

20 Qs

Python Module 1

Python Module 1

Assessment

Quiz

Computers

University

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?