
String

Quiz
•
Computers
•
10th Grade
•
Medium
Ержан Ауезов
Used 11+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
One of the following functions is not used with Python String
Split
Remove
Replace
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose the correct code to print line of 10 stars using repetition operation:
print("**********")
print("*"*10)
print("*"^10)
print("*"+10)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The correct syntax of the len function for string x:
x.len()
len[x]
LEN[]
len(x)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The correct syntax for converting the string x to uppercase is :
X.upper()
upper(x)
x.UPPER[ ]
x.upper()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The correct syntax for converting the string myname to lowercase is :
myNAME.lower[ ]
myname.lower( )
myname.upper( )
myname_lower(12 )
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To remove the spaces present at start and end of the string, you can use
split()
len()
strip()
remove()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Let x= "python is a high level language", the output of print(len(x[-1])) is
1
31
Error
25
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
COMP SCI (FUNCTIONS)

Quiz
•
12th Grade
25 questions
Python Basics Quiz 12 by RK

Quiz
•
11th Grade
27 questions
Turtle Python Quiz 1

Quiz
•
10th - 12th Grade
25 questions
Script_programming_test

Quiz
•
University
25 questions
Understanding Input, Selection and Loops in Python

Quiz
•
7th Grade - University
25 questions
String Manipulation Review

Quiz
•
11th Grade
25 questions
Python Class 9

Quiz
•
9th - 10th Grade
25 questions
Python Basics

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