stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
GWC Python Review Flashcards | StudBud
Explore
/
GWC Python Review
GWC Python Review
12 terms
·
StudBud Administration
·
4 plays
Imported from external platform
Flashcards
12 cards
F
Practice quiz
P
Host live
L
Questions
12
Answers
1
In what order does Python usually execute code?
The program starts running at line 5.
Everything happens at the same time.
It doesn't matter which order Python executes the code.
Line by line, sequentially.
2
What is a conditional statement?
a symbol in code that tells a computer to perform
a programming statement that evaluates Boolean expression
a description of a program that can change based on inputs
the language that people use in daily conversation
3
Describe what would happen if we ran the code below.
Score starts at 1 and would increase by 5 each time a sprite is clicked.
Score starts at 5 and would increase by 1 each time a sprite is clicked.
Score starts at 5 and would decrease by 1 each time a sprite is clicked.
Score starts at 1 and would decrease by 5 each time a sprite is clicked.
4
Once you set a variable's value at the start, you can never change the value in the future.
False
True
5
A condition that can be true or false is defined as what?
if/then
Boolean condition
cause and effect
A conditional statement
6
The program will completely end once it reaches a break statement.
True
False
7
Which of the following lines of code will print "I love coding!" in the console?
print(I love coding!)
print("I love coding!"
print("I love coding!")
PRINT("I love coding!")
8
You can use multiple
else
statements in a conditional.
True
False
9
What is a strategy of keeping track of what your code is doing?
Making your code as complex as possible
Writing only code in the IDE.
This isn't necessary.
Commenting on what chunks of code do.
10
Python uses syntax. This is the rules involving the placement and use of words, letters, and punctuation.
False
True
11
What is the best name for a variable holding your favorite ice cream flavor?
my fav flavor
x
icecream
myFavoriteIceCreamFlavor
12
You nest code inside each other in Python by indenting the line of code.
False
True