Python Course Flashcard

Python Course Flashcard

Assessment

Flashcard

Instructional Technology

10th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

46 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Which of the following variable names are valid in Python? Testing123, testing_123, TESTING

Back

All of these are valid

2.

FLASHCARD QUESTION

Front

What is wrong with the following code?
ageInYears = input("How old are you? ") ageInDays = ageInYears * 365

Back

ageInYears is a string and can't be used in a mathematical expression

3.

FLASHCARD QUESTION

Front

Which operator produces a True result only if both joined expressions are True? Options: and, or, not, !=

Back

and

4.

FLASHCARD QUESTION

Front

What type of value is held in the "answer" variable after the following code runs? answer = (1 + 5) >= (6 - 1)

Back

Boolean

5.

FLASHCARD QUESTION

Front

Which of the following best describes a program trace?

Back

A temporary print() statement that gives you clues as to how the program is running

6.

FLASHCARD QUESTION

Front

Which of the following is NOT a common Python debugger command? fix (f), step (s), continue (c), All of these are common debugger commands

Back

fix (f)

7.

FLASHCARD QUESTION

Front

Which of the following best describes the difference between a list and a tuple? List contents can be changed, while tuple contents cannot be changed after the tuple is initialized, Lists can store any data type, while tuples are restricted to a single data type, Lists can store small numbers of elements, while tuples are better at storing larger data sets, Nothing is different; lists and tuples are just two names for the same thing in Python

Back

List contents can be changed, while tuple contents cannot be changed after the tuple is initialized.

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?