Python MCQs: Data Structures

Python MCQs: Data Structures

12th Grade

30 Qs

quiz-placeholder

Similar activities

Y9 Python Review

Y9 Python Review

9th Grade - University

30 Qs

G9-Introduction to Python Programming

G9-Introduction to Python Programming

9th Grade - University

25 Qs

PTS2 SENI BUDAYA 8A

PTS2 SENI BUDAYA 8A

8th Grade - University

25 Qs

Pengayaan Informatika Kelas 12

Pengayaan Informatika Kelas 12

12th Grade - University

25 Qs

Soal TEST

Soal TEST

12th Grade

35 Qs

PAT_AIJ_XII-TKJ

PAT_AIJ_XII-TKJ

12th Grade - University

30 Qs

ÔN TẬP THI HK1 MÔN TIN HỌC LỚP 5

ÔN TẬP THI HK1 MÔN TIN HỌC LỚP 5

5th Grade - University

29 Qs

Review Python_G8

Review Python_G8

8th Grade - University

28 Qs

Python MCQs: Data Structures

Python MCQs: Data Structures

Assessment

Quiz

Information Technology (IT)

12th Grade

Hard

Created by

Manjunatha M

Used 1+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code? print('Hello'[1])

H

e

l

o

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to convert a string to lowercase in Python?

lowercase()

toLower()

lower()

tolowercase()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code? print(len('Python'))

6

5

7

8

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following operation? 'abc' + 'def'

abcdef

abc def

abc+def

Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of 'Python'.find('y')?

0

1

2

-1

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method removes whitespace from the start and end of a string?

trim()

strip()

clean()

remove()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following creates an empty list in Python?

[]

()

{}

None

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?

Discover more resources for Information Technology (IT)