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