Python Module 1

Python Module 1

University

25 Qs

quiz-placeholder

Similar activities

C - Structures

C - Structures

University

20 Qs

DreamWeaver CS6

DreamWeaver CS6

University

20 Qs

Software Engineering-1

Software Engineering-1

University

20 Qs

Multimedia Video & Animation

Multimedia Video & Animation

University

20 Qs

Django-quiz

Django-quiz

5th Grade - University

20 Qs

Lesson 3 (Model Training)

Lesson 3 (Model Training)

University

20 Qs

คีย์ลัด A-Z ใน Microsoft Word

คีย์ลัด A-Z ใน Microsoft Word

University

20 Qs

First Quiz Interactive Designing

First Quiz Interactive Designing

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

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

Already have an account?