Strings in python -1

Quiz
•
Computers
•
11th Grade
•
Hard
Sangeetha John
Used 119+ 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:
*
/
-
+
Create a free account and access millions of resources
Similar Resources on Wayground
17 questions
Python - Quiz

Quiz
•
9th - 11th Grade
20 questions
Unit 3 Python TEST

Quiz
•
11th - 12th Grade
18 questions
STATIC KEYWORD IN JAVA

Quiz
•
9th - 12th Grade
22 questions
AS Data Types and Programming Constructs

Quiz
•
10th - 12th Grade
21 questions
Python Strings

Quiz
•
11th Grade
20 questions
Python year 9

Quiz
•
8th - 11th Grade
24 questions
SKT4 : Bab 1 : f) Tatasusunan & Subaturcara

Quiz
•
10th - 12th Grade
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
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
20 questions
Scalars, Vectors & Graphs

Quiz
•
11th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
10 questions
Solving Equations Opener

Quiz
•
11th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade