Python Strings

Quiz
•
Computers
•
12th Grade
•
Hard
Computer Science
Used 157+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
A: Strings can be changed during execution
B. Strings can be enclosed within single, double or even triple quotes
C. Strings are immutable
A,B & C are True
A,B are True but C is False
B, C are True but A is False
A,C are True but B is False
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the output of the following code:
>>>str1='Save Soil'
>>>str1.isalnum( )
Save Soil
True
False
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Identify the string membership operators of Python
in, not in
like, not like
as, not as
between, not between
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which is the powerful function used for formatting strings?
chr( )
format( )
title( )
capitalize( )
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
The title( ) function
assigns title
returns the title of the file
returns string in title case
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Predict the output:
>>>str1="Rajathi Raja"
>>>print(str1.count('Raja'))
1
2
Error
Raja
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Match the following:
1. \n A) Carriage return
2. \v B) BackSpace
3. \b C) new line
4. \r D) Vertical tab
1-C, 2-D, 3-B, 4-A
1-A, 2-C, 3-B, 4-D
1-C, 2-D, 3-A, 4-B
1-C, 2-A, 3-B, 4-D
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Java Script Quiz

Quiz
•
9th - 12th Grade
15 questions
Problem Solving using Python and R - UNIT I STRINGS MCQS

Quiz
•
12th Grade
10 questions
Quiz1_HPB2021_2010t1

Quiz
•
1st - 12th Grade
15 questions
AP CSP Unit 4

Quiz
•
10th - 12th Grade
15 questions
Google Slides Pre-Assessment

Quiz
•
3rd Grade - Professio...
15 questions
Unit 4 Test JS

Quiz
•
9th - 12th Grade
15 questions
Python Built-in Functions

Quiz
•
11th - 12th Grade
6 questions
Java while loops

Quiz
•
10th - 12th Grade
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