Python Flashcard 6 (Working with Strings)

Python Flashcard 6 (Working with Strings)

Assessment

Flashcard

Other

6th - 8th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

10 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

In the following code, "city" is an example of a what? Options: List, Loop, Variable, Array

Back

Variable

3.

FLASHCARD QUESTION

Front

What output will this code produce? Options: Exeter, 4, 6, city

Back

6

4.

FLASHCARD QUESTION

Front

An example of Python code that creates a variable and assigns it to the string "Hello!"

Back

welcome = "Hello!"

5.

FLASHCARD QUESTION

Front

Which statements about strings are true? A: Strings can be changed during execution B. Strings can be enclosed within single, double or even triple quotes C. Strings are immutable

Back

B, C are True but A is False

6.

FLASHCARD QUESTION

Front

For strings, the + operator represents

Back

Concatenation

7.

FLASHCARD QUESTION

Front

What is the output of the following code: print(3*'hi')? Options: 3hi, 3*hi, hihihi, Error

Back

hihihi

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?