Python Flashcard 6 (Working with Strings)

Python Flashcard 6 (Working with Strings)

Assessment

Flashcard

Other

6th - 8th Grade

Practice Problem

Hard

Created by

Wayground 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:

Media Image

Back

t

2.

FLASHCARD QUESTION

Front

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

Media Image

Back

Variable

3.

FLASHCARD QUESTION

Front

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

Media Image

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

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?