Strings in python - Test

Strings in python - Test

Assessment

Flashcard

Computers

11th Grade

Hard

Created by

Quizizz Content

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:

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?