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