Strings in python - Test

Strings in python - Test

Assessment

Flashcard

Computers

11th Grade

Practice Problem

Hard

Created by

Wayground Content

Used 2+ times

FREE Resource

Student preview

quiz-placeholder

50 questions

Show all answers

1.

FLASHCARD QUESTION

Front

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

Media Image

Back

t

2.

FLASHCARD QUESTION

Front

Which of the operator can be used in Strings?

Back

Both of the above

3.

FLASHCARD QUESTION

Front

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'"")

Back

print('Hello World")

4.

FLASHCARD QUESTION

Front

What is printed by the following statement? print("P" not in "APCSP")

Back

False

5.

FLASHCARD QUESTION

Front

What is printed by the following statement? print("A" in "APCSP")

Back

True

6.

FLASHCARD QUESTION

Front

For strings, the + operator represents

Back

Concatenation

7.

FLASHCARD QUESTION

Front

What does the expression len(data) evaluate to when data = "No Way!"?

Back

7

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?