Search Header Logo

STRINGS

Authored by Sunita Dash

Computers

11th Grade

CCSS covered

Used 4+ times

STRINGS
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

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

0
1
a
A

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What output will this code produce?

Exeter
4
6
city

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Python accepts single ('), double (") and triple ("""or ''') quotes to denote strings. Which of the following is NOT acceptable Python syntax?

print('Hello World')

print("Hello World")

print('Hello World")

print(""'Hello World'"")

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is printed by the following statement?

print("P" not in "APCSP")

True

False

Error

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is printed by the following statement?

print("A" in "APCSP")

True

False

Error

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Evaluate the following expression:

"dog" < "Dog"

They are the same word

True

False

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

For strings, the + operator represents

Concatenation

Addition

Appending

Recantation

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?