
Python MCQs: Data Structures

Quiz
•
Information Technology (IT)
•
12th Grade
•
Hard
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
Similar Resources on Wayground
30 questions
Java Code Output Quiz

Quiz
•
9th - 12th Grade
30 questions
Y9 Python Review

Quiz
•
9th Grade - University
25 questions
Ujian Kompetensi Skakes Airlangga

Quiz
•
9th - 12th Grade
25 questions
G9-Introduction to Python Programming

Quiz
•
9th Grade - University
25 questions
Quizizz JavaScript Attempt 2 Review

Quiz
•
9th - 12th Grade
30 questions
Kelas 8 - Halaman 31 (PTS)

Quiz
•
8th Grade - University
29 questions
ÔN TẬP THI HK1 MÔN TIN HỌC LỚP 5

Quiz
•
5th Grade - University
28 questions
Review Python_G8

Quiz
•
8th Grade - University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade