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

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
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 Quizizz
28 questions
Review Python_G8

Quiz
•
8th Grade - University
30 questions
Y9 Python Review

Quiz
•
9th Grade - University
25 questions
SAS Dasar Program Keahlian RPL Kelas X

Quiz
•
10th Grade - University
30 questions
Revision Quiz 3

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

Quiz
•
5th Grade - University
25 questions
Chapter 4 Mastering Algebraic Expressions

Quiz
•
7th Grade - University
25 questions
Remidi PTS Gasal

Quiz
•
12th Grade - University
30 questions
Test3

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University