Python Course Flashcard

Python Course Flashcard

Assessment

Flashcard

Instructional Technology

10th Grade

Hard

Created by

Quizizz 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.

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?