
Python Quiz 4

Quiz
•
Computers
•
University
•
Hard
ENDURO SRM
Used 2+ times
FREE Resource
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
If str_1 = "Coders", which of the following codes will print ' r ' ?
print(str_1[4])
print(str_1[4:5])
print(str_1[-2])
All of these
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output?
Pe
e
Pol
Peop
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How can we print reverse of a string str_1 ?
str_1.reverse( )
str_1 [ : : -1 ]
reverse(str_1)
str_1 [ -1 : 0 ]
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which operator can be used to concatenate variable and values of any data type?
comma ( , ) operator
concatenate (+) operator
join operator
addition (+) operator
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What can be used to declare multi line comments?
triple quotes
( ''' .... ''' )
double quotes
( '' .... '' )
hash tag (#)
All of these
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the correct way to use len( ) function to find length of a string word1 ?
word1.len( )
len(word1)
str.len(word1)
string.len(word1)
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the correct way to use lower( ) method on a string word1 ?
word1.lower( )
lower(word1)
str.lower(word1)
string.lower(word1)
8.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be output of this code?
0
1
2
Error
9.
OPEN ENDED QUESTION
3 mins • Ungraded
Any Feedback/ Suggestions/ Comments
Evaluate responses using AI:
OFF
Similar Resources on Wayground
10 questions
ข้อสอบก่อนเรียน หน่วยที่ 5 ชนิดข้อมูลสตริง (String)

Quiz
•
University
10 questions
Pemahaman Dasar Komputasi

Quiz
•
9th Grade - University
11 questions
Quiz 1

Quiz
•
University
10 questions
CSC126_Chapter3.1

Quiz
•
University
10 questions
Programación

Quiz
•
University
14 questions
Java Operators

Quiz
•
University
12 questions
OS with C programming

Quiz
•
University
12 questions
Vocaloid

Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University