Python MCQs: Data Structures

Python MCQs: Data Structures

12th Grade

30 Qs

quiz-placeholder

Similar activities

Power Point

Power Point

7th - 12th Grade

28 Qs

Asesment Tengah Semester Algoritma dan Array

Asesment Tengah Semester Algoritma dan Array

12th Grade - University

25 Qs

soal uh 9

soal uh 9

9th Grade - University

25 Qs

Quiz Pemrograman Python

Quiz Pemrograman Python

10th 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

NEXORA

NEXORA

12th Grade

25 Qs

Ulangan Harian 1

Ulangan Harian 1

10th Grade - University

25 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?