stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Python - Selection Flashcards | StudBud
Explore
/
Python - Selection
Python - Selection
12 terms
·
StudBud Administration
·
5,888 plays
A quiz to test knowledge of selection in Python.
Flashcards
12 cards
F
Practice quiz
P
Host live
L
Questions
12
Answers
1
What would be the output of this statement?
hello
hello: 4
hello
(nothing would be printed to the command line)
2
What would be the output of this statement?
7+2+3+4*3=(7+2+3+4*3)
7+2+3+4*3=48
7+2+3+4*3=24
24
3
What would be the most appropriate data type to store the value 9674.27?
float
Boolean
int
Byte
4
What would be the output of this statement?
nothing would be printed to the command line
More than 4 More than 6
More than 6
More than 4
5
What would be the output of this statement?
3
3.454
3.4
newNumber
6
What would be the output of this statement?
81
76
75
73
7
What would be the output of this statement?
0
12
19
27
8
What would be the most appropriate data type to store the value of 23?
byte
string
float
int
9
What would be the output of this statement?
answer = 24
ANSWER = 24
answer = 19
ANSWER = 19
10
What would be the output of this statement?
Green
Red
Blue
Pink
11
What would be the output of this question?
Cucumber
nothing would be printed to the command line
Tomato
Onion
12
What would be the output of this statement?
Pepper
nothing would be printed to the command line
Salt & Pepper
Salt