Python Quiz_Module2

Python Quiz_Module2

University

20 Qs

quiz-placeholder

Similar activities

Python 3

Python 3

University

21 Qs

Python Programming Quiz

Python Programming Quiz

University

25 Qs

Intro to Python by AUG Problem solving module

Intro to Python by AUG Problem solving module

University - Professional Development

24 Qs

Quanta

Quanta

University

20 Qs

Python

Python

University

15 Qs

Python Quiz

Python Quiz

University

18 Qs

python script

python script

University

16 Qs

Python QCM

Python QCM

University

21 Qs

Python Quiz_Module2

Python Quiz_Module2

Assessment

Quiz

Other

University

Medium

Created by

Yashwanth B

Used 6+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is a collection data type in Python that is unordered and unindexed with no duplicate members?

Dictionary

List

Set

Tuple

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

How do you access the second item in a list in Python?

thislist[0]

thislist[1]

thislist[-1]

thislist[2]

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which method in Python is used to remove the last item from a list?

remove()

pop()

clear()

del

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is the purpose of the append() method in Python lists?

To remove an item

To add an item at a specified index

To add an item at the end of the list

To clear the list

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

In Python, what is the keyword used to determine if a specified item is present in a list?

contains

has

exists

in

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is the result of the expression '5 **3' in Python?

35

53

125

8

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which keyword is used in Python to define a function?

def

define

func

method

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?