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