Search Header Logo

LO13 Lesson 11 String

Authored by Samantha Cassia

Computers

10th Grade

Used 4+ times

LO13 Lesson 11 String
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

14 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What is the output of this code?

my_name = "Sandy"

print(my_name[2])

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What is the output of this code?

my_name = "Sandy"

print(my_name[-2])

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What is the output of this code?

my_name = "Sandy"

print(my_name[0:5])

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What is the output of this code?

my_name = "Sandy"

print(my_name[:])

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What is the output of this code?

my_name = "Sandy"

print(my_name[:5])

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What is the output of this code?

my_name = "Sandy"

print(my_name[1:4])

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The len() method in the below example is used to

find the length of a list.

compare two integers.

find the length of a string.

find the length of a program.

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?