Python Sem. Review P1

Python Sem. Review P1

Assessment

Flashcard

Computers

11th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

20 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What input will cause only line #12 to be executed? Options: food_id('potato'), food_id('apple'), food_id('orange'), food_id('banana')

Media Image

Back

food_id('potato')

2.

FLASHCARD QUESTION

Front

What input will cause only line #14 to be executed? Options: food_id('potato'), food_id('apple'), food_id('orange'), food_id('banana')

Media Image

Back

food_id('apple')

3.

FLASHCARD QUESTION

Front

A string that contains no characters is called a _____.

Back

Empty String

4.

FLASHCARD QUESTION

Front

Which of the following two inputs will produce an error? Options: type('tr' + “y this”), type('tr' + 5)

Back

type('tr' + 5)

5.

FLASHCARD QUESTION

Front

_____ involves pasting together two strings, one after another.

Back

Concatenation

6.

FLASHCARD QUESTION

Front

_____ are sequences that can be counted in order, one at a time, during iteration.

Back

Iterables

7.

FLASHCARD QUESTION

Front

The _____ function returns the number of elements in an iterable.

Back

len

Create a free account and access millions of resources

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?