Python MCQs: Data Structures

Python MCQs: Data Structures

12th Grade

30 Qs

quiz-placeholder

Similar activities

G9-Introduction to Python Programming

G9-Introduction to Python Programming

9th Grade - University

25 Qs

Code HS Computer SCi 114.1.1 JavaScript Final Exam Pt. 1

Code HS Computer SCi 114.1.1 JavaScript Final Exam Pt. 1

9th - 12th Grade

25 Qs

QUIZ TIK EXCEL

QUIZ TIK EXCEL

10th Grade - University

25 Qs

Quizizz JavaScript Attempt 2 Review

Quizizz JavaScript Attempt 2 Review

9th - 12th Grade

25 Qs

Kelas 8 - Halaman 31 (PTS)

Kelas 8 - Halaman 31 (PTS)

8th Grade - University

30 Qs

Soal TEST

Soal TEST

12th Grade

35 Qs

Java Code Output Quiz

Java Code Output Quiz

9th - 12th Grade

30 Qs

Ujian Kompetensi Skakes Airlangga

Ujian Kompetensi Skakes Airlangga

9th - 12th Grade

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?