stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Python I math random etc Flashcards | StudBud
Explore
/
Python I math random etc
Python I math random etc
12 terms
·
StudBud Administration
·
95 plays
A quiz on Python programming concepts taught in NC BP14 Python Programming I
Flashcards
12 cards
F
Practice quiz
P
Host live
L
Questions
12
Answers
1
Which of the following is the output of the following code:
0
either 0 or 1
1
x
2
What is printed when this code is executed
10.0
x
10
-10
3
What is the possible output from this code:
No way this works. An error will occur.
A random number from 0 up to and including 10
A random number from0 up to and including 11
True
4
What is the possible output from this code:
A random number from 1 up to and including 10
A random number from 1 up to and including 11
No way this works. An error will occur.
True
5
What is printed when the following code is executed?
10
11.0
11
10.0
6
What is printed when this code is executed
4
3
3.33333...
3.0
7
Which of the following is a possible output from this code:
0 only
1 only
0 , 1 or 2
0 or 1
8
What is printed when the following code is executed
11
10
10.0
Nothing. An error occurs
9
what is printed when this code is executed?
Nothing. An error occurs.
3.3333333...
3.0
3
10
What is printed when this code is executed?
5.0
Nothing, a syntax error occurs
5
25.0
11
What is printed when the following code is executed?
11
10.0
Nothing. A syntax error occurs.
X
12
What is the possible output from this code:
1 only
error (always a good guess :- )
0 or 1
0 only