
Python Quiz 4
Authored by ENDURO SRM
Computers
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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)
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
13 questions
python dicionarios
Quiz
•
University
10 questions
DKS - PR3 & PR4
Quiz
•
University
10 questions
Lenguaje Perl
Quiz
•
University
10 questions
CSNP-04103 Chapter 6 - Functions
Quiz
•
University
10 questions
TIU Quiz-9
Quiz
•
University
10 questions
Python Yazılım Dilleri Soruları
Quiz
•
University
10 questions
Gebang Logika
Quiz
•
University
14 questions
DISPOSITIVOS DE E/S LA IMPRESORA
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade