stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Coding Concepts with Python Flashcards | StudBud
Explore
/
Coding Concepts with Python
Coding Concepts with Python
22 terms
·
StudBud Administration
·
6 plays
Review of Python programming concepts
Flashcards
22 cards
F
Practice quiz
P
Host live
L
Questions
22
Answers
1
What are 2 types of loops?
For and Next
Looper and Flip
For and While
Four and Well
2
What will print based on code? jelly="Grape" print(jelly)
Jelly
Grape
Print
Nothing
3
Which expression would return a float?
16
9/8
4.2/3
4 * 2
4
What symbol is used for in-line comments?
&
#
@
'''
5
Inline comments are comments used to describe functions.
True
False
6
What does the term "Iteration" mean?
A loop that repeats a set of instructions.
When you want to compare a value.
It's when a question is asked.
To put things in a sequence.
7
What is an example of an integer?
17.1
"word up"
[4, 5.2, 7]
6
8
An "if" statement is usually accompanied by
An "after" statement
A "do" statement
An "else" statement
A "when" statement
9
What is an example of a string?
8**2
#4
"word up"
.02
10
What is the variable in this line of code? Gus = 1
Gus
None
=
1
11
Items in a list are separated with what in Python?
,
-
:
?
12
Why is an "if" statement used?
To repeat an instruction
To perform an action if a conditon is TRUE
To plan a step by step instruction to complete a task
To Loop over a value
13
What demonstrates concatenation?
print(a * b)
print(a /b)
print(a + str(b))
print("honda")
14
What is an example of a Boolean?
input = ("Pick a color")
7 + 8 = 15
True/False
Input
15
How do you get a value in an Array?
x = cars[0]
cars = <ford=volvo=bmw>
x = "cars"
x = cars.1
16
How do you create an Array in Python?
cars = {ford, volvo, bmw}
cars = [Ford, "Volvo", "Bmw"]
cars = <ford=volvo=bmw>
cars = ford, volvo, bmw;
17
What Type of Loop is While?
Instructional
Conditional
Functional
None of the Above
18
What is an algorithm?
A type of dance.
An algorithm is a set of instructions that perform a specific task.
A set of instructions such as a flow chart.
A set of rules made by a computer.
19
Which is an example of a float?
8/9
6**6
4.5
-50
20
What function would you use to convert an integer to a string?
INPUT
CHANGE
STR
CONV
21
Define the term "Sequence".
A set of codes within a program
A way to merge to integers together
A set of instructions
A set of instructions that are execude in order
22
What is a string?
A long piece of thread
A list of numbers
A sequence of characters
Anything with ( )s around it