
String manipulation class11

Quiz
•
Computers
•
9th - 12th Grade
•
Easy
Rohit E
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Negative index (-1) belongs to which character of a string
first character
last character
second last character
second character
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following functions will return the string in all caps?
to.upper()
is.upper()
upper()
all-upper()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct output?
True False
False True
False False
True True
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose the correct function to get the ASCII code of a character:
char('char')
All of these
ascii('char')
ord('char')
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
str1 = 'Waha'
print(str1[:3] + 'Bhyi' + str1[-3:])
Wah Bhyi Wah
WahBhyiWah
WahBhyiWaha
WahBhyiaha
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Functions capitalize() and title() return the same result.
False
True
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the result of this code: ‘*’ * 3
***
Error
*3
3*
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
python revision

Quiz
•
9th Grade
10 questions
Tipuri de date structurate, C++

Quiz
•
11th Grade
10 questions
Soal informatika pemrograman X.5

Quiz
•
10th Grade
15 questions
Java Level 1 - D

Quiz
•
12th Grade
10 questions
Guided Note 5.3 For Loop and List

Quiz
•
9th - 12th Grade
15 questions
Python Basics

Quiz
•
KG - University
11 questions
algoritma

Quiz
•
12th Grade
10 questions
Quiz1_HPB2021_2010t1

Quiz
•
1st - 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
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade