stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Python 1 Review Flashcards | StudBud
Explore
/
Python 1 Review
Python 1 Review
18 terms
·
StudBud Administration
·
195 plays
Review of Python programming concepts
Flashcards
18 cards
F
Practice quiz
P
Host live
L
Questions
18
Answers
1
Which is NOT a proper name for a variable?
dixie_cup
#love it
thisisgreat
feb42017
2
What is an example of a Boolean?
7 + 8 = 15
input = ("Pick a color")
Input
True/False
3
What if anything is returned in this command? name = input("Name?")
Nothing
Input
Name
Print Cue
4
Which expression would return a float?
16
9/8
4 * 2
4.2/3
5
Inline comments are comments used to describe functions.
True
False
6
Which is an example of a float?
6**6
8/9
4.5
-50
7
What is a string?
A sequence of characters
A long piece of thread
A list of numbers
Anything with ( )s around it
8
What will print based on code? (1) jelly=grape (2) print(jelly)
Nothing
Grape
Jelly
Print
9
Items in a list are separated with what in Python?
,
-
?
:
10
What is an example of an integer?
[4, 5.2, 7]
6
"word up"
17.1
11
What demonstrates concatenation?
print(a + str(b))
print("honda")
print(a + b)
print(a + b/c)
12
What is the variable in this line of code? Gus = 1
=
None
Gus
1
13
What function would you use to convert an integer to a string?
STR
CONV
CHANGE
INPUT
14
Different data types can be combined with a " + " sign in Python.
True
False
15
What is used by Python to indicate an exponent?
**
#
^
:)
16
What is an example of a string?
#4
"word up"
8**2
.02
17
What symbol is used for inline comments?
'''
@
&
#
18
When creating a print command what is not proper syntax?
Typing the word print in lower case
Using " "s
Using ( )s
Using [ ]s