
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
Java Arrays

Quiz
•
University
12 questions
CSSE Quiz Day2

Quiz
•
University
10 questions
Intro to Python

Quiz
•
KG - University
10 questions
Python debugging

Quiz
•
University
10 questions
OOP-2

Quiz
•
University
10 questions
Datentypen, Variablen & Eingabe in Python

Quiz
•
University
13 questions
Python Reflect

Quiz
•
8th Grade - University
10 questions
Python User Input Quiz

Quiz
•
6th 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