Search Header Logo

String Manipulation (Python)

Authored by Louise Lockwood

Computers

9th - 12th Grade

Used 51+ times

String Manipulation (Python)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

17 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

1 min • 1 pt

how we store string value in variable?

'string'

"string"

%string%

#sring#

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

index of a string begins with

1

0

a

-1

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The pseudocode below assigns two strings to two variables:

title = "computer science"

level = "gcse"

What would the Python code: len(level) return?

2

3

4

1

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The pseudocode below assigns two strings to two variables:

title = "computer science"

level = "gcse"

What is title[0]?

'c'

'o'

'g'

An error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The pseudocode below assigns two strings to two variables:

title = "computer science"

level = "gcse"

What is title[4]?

'p'

'u'

't'

An error

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

string = "abcdef"

What is index of "f" ?

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

string = "Computer Science"

What is string[0:8] ?

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?