Search Header Logo

Python strings

Authored by Paul Hughes

Computers

8th - 9th Grade

Used 2K+ times

Python strings
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What letter will be printed on the screen after running this code:

e
x
t
Nothing prints

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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

List
Loop
Variable
Array

3.

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

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What output will this code produce?

Exeter
4
6
city

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What output will this code produce?

4
2
3
5

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What output will this code produce?

3
20
25
17

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What output will this code produce?

1
3
2
4

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?