Search Header Logo

Python Strings

Authored by Raksha Panjwani

Computers

11th Grade

Used 134+ times

Python Strings
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

21 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

Identify the string membership operators of Python

in, not in

like, not like

as, not as

between, not between

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

MATCH THE FOLLOWING:

1. concatenation A) +=

2. Append B) [ ]

3. String Slicing C) *

4. Repeating D) +

1-B. 2-A, 3-C, 4-D

1-D. 2-A, 3-B, 4-C

1-A,2-B,3-C,4-D

1-A,2-D,3-C,4-B

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

In the following code, "city" is an example of a what?

List
Loop
Variable
Array

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Each item in a string has an "address" or index. The first index in a Python string is what?

0

1

a

A

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Returning a range of characters (part of a string) is done using which syntax?

Slice

Splice

Cut

Select

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output from this code?

ell

llo

ello,

Hello

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?