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
20 questions
quiz dasar python

Quiz
•
1st Grade - University
10 questions
Quiz Tipe Data

Quiz
•
9th - 12th Grade
20 questions
Intro to Python Vocabulary

Quiz
•
7th - 12th Grade
15 questions
JAVA: Level-1

Quiz
•
5th - 12th Grade
15 questions
PYTHON PROGRAMMING

Quiz
•
11th - 12th Grade
10 questions
L.8. STRINGS AND STRING MANIPULATION - 2

Quiz
•
12th Grade
15 questions
Python Basics

Quiz
•
KG - University
20 questions
Python Recap

Quiz
•
7th Grade - University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
6 questions
Maier - AMDM - Unit 1 - Quiz 1 - Estimation

Quiz
•
12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade
21 questions
9th Grade English Diagnostic Quiz

Quiz
•
9th - 12th Grade
7 questions
Characteristics of Life

Interactive video
•
11th Grade - University