Python Strings

Python Strings

12th Grade

10 Qs

quiz-placeholder

Similar activities

Les variables sous Python

Les variables sous Python

10th - 12th Grade

10 Qs

tik kelas 7

tik kelas 7

1st Grade - University

15 Qs

Parcial-Dibujo

Parcial-Dibujo

12th Grade

10 Qs

bài 2-tin 9

bài 2-tin 9

1st - 12th Grade

10 Qs

BÀI 8. SẮP XẾP VÀ LỌC DỮ LIỆU

BÀI 8. SẮP XẾP VÀ LỌC DỮ LIỆU

1st - 12th Grade

10 Qs

BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ

BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ

6th Grade - University

14 Qs

After Effect Intoduction

After Effect Intoduction

10th Grade - University

15 Qs

Quizz Internet

Quizz Internet

KG - Professional Development

12 Qs

Python Strings

Python Strings

Assessment

Quiz

Computers

12th Grade

Practice Problem

Hard

Created by

Computer Science

Used 186+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?