Python MCQs: Data Structures

Python MCQs: Data Structures

12th Grade

30 Qs

quiz-placeholder

Similar activities

Inquinamento e sostenibilità

Inquinamento e sostenibilità

6th Grade - University

25 Qs

4. ADMINISTRASI INFRASTRUKTUR JARINGAN KELAS 12

4. ADMINISTRASI INFRASTRUKTUR JARINGAN KELAS 12

12th Grade

25 Qs

Hardware y Software

Hardware y Software

10th Grade - University

25 Qs

BU 10 - TIK

BU 10 - TIK

10th Grade - University

25 Qs

Ujian Kompetensi Skakes Airlangga

Ujian Kompetensi Skakes Airlangga

9th - 12th Grade

25 Qs

Media Literacy Quiz

Media Literacy Quiz

11th Grade - University

25 Qs

Worksheet: Quiz (Kelas 12)

Worksheet: Quiz (Kelas 12)

12th Grade - University

25 Qs

Ôn tập K12 Bài 8 9 10

Ôn tập K12 Bài 8 9 10

12th Grade

25 Qs

Python MCQs: Data Structures

Python MCQs: Data Structures

Assessment

Quiz

Information Technology (IT)

12th Grade

Practice Problem

Hard

Created by

Manjunatha M

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Access all questions and much more by creating a free account

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

Already have an account?