word = "amazing"
For the given string if we run word[2:5] what does it mean?
Strings in python -1
Quiz
•
Computers
•
11th Grade
•
Hard
Sangeetha John
Used 112+ times
FREE Resource
22 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
word = "amazing"
For the given string if we run word[2:5] what does it mean?
It will extract alphabets from index 2 to index 4
It will extract alphabets from index 2 to index 5
It will extract alphabets from position 2 to position 4
It will extract alphabets from position 2 to position 5
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to convert a given string in Capital letters?
Capital
Upper
ConverttoUpper
Capitalize
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a valid string function?
isalphanumeric
isspace
islower
isalnum
4.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
string="HELlo"
What will be the result of string.isupper()?
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
s1="Hello"
n1=10
print(s1+n1)
What is the error in this code?
Print statement not written in quotes
Numeric value not written in quotes
colon not written after the print statement
string cannot be added to a number
6.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
In Python, strings are…
char arrays
changeable
immutable
str objects
7.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which of the following mathematical operators can be used to concatenate strings:
*
/
-
+
18 questions
Coding Unit 2 Review
Quiz
•
9th - 12th Grade
20 questions
ASK : : KOD ARAHAN
Quiz
•
10th Grade - Professi...
20 questions
Unit 3 Python TEST
Quiz
•
11th - 12th Grade
20 questions
Python variables, expressions, and data types
Quiz
•
9th - 12th Grade
20 questions
UH1_INFO_XII
Quiz
•
11th Grade
20 questions
Java, part I
Quiz
•
11th Grade - University
19 questions
Lists and Tuples
Quiz
•
11th Grade
25 questions
SAINS KOMPUTER TINGKATAN 4 - 1.6 STRUKTUR DATA DAN MODULAR
Quiz
•
7th - 12th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University