Chapter 8 String Manipulations

Quiz
•
Computers
•
12th Grade
•
Hard
SUDHA B
Used 25+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
s1='ComputerScience' What is the output of print(s1[::-1])
Cmptrcinc
ComputerScience
ecneicSretupmoC
cnicrtpmC
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which error is generated when the index is not an integer?
Index Error
Type error
Name error
Bound error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To change 'cool' from 'COOL', which function should be used?
upper()
lower()
capitalize()
title()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When using find(), if str is not present in the string then what is returned?
0
1
-1
Null
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to change 'save earth' to 'Save Earth'?
capitalize()
swapcase()
title()
upper()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Identify the correct result from the following.
ord('10')=50
chr(72)='H'
chr(55)=9
ord('z')=123
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which error is generated when a character in a string variable is modified?
Index error
Name error
Type error
unbound local error
Create a free account and access millions of resources
Similar Resources on Wayground
13 questions
L3 U14 Python Basics 2

Quiz
•
11th - 12th Grade
20 questions
Python variables, expressions, and data types

Quiz
•
9th - 12th Grade
15 questions
Programming - Screening Test

Quiz
•
3rd Grade - Professio...
20 questions
Subroutines - Procedures & Functions

Quiz
•
9th - 12th Grade
20 questions
Python básico

Quiz
•
9th - 12th Grade
20 questions
Python 3 Review Part 1

Quiz
•
9th - 12th Grade
16 questions
Python programming

Quiz
•
6th - 12th Grade
15 questions
PCEP Section 4C: Python Built-In Exceptions Hierarchy

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade