stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Game Design Unit 3 Review Flashcards | StudBud
Explore
/
Game Design Unit 3 Review
Game Design Unit 3 Review
17 terms
·
StudBud Administration
·
136 plays
A computer programming Quiz: Python Basics
Flashcards
17 cards
F
Practice quiz
P
Host live
L
Questions
17
Answers
1
A keyword used to join test conditions in if-statements
and
Booleans
syntax
truth values
2
What will calculate the remainder in Python?
\^
%
#
**
3
Parameters are...
The information sent to a function
A unit of measurement in computer programming
A string in the Input command
A block of code that must be imported
4
What is "equal to" in Python?
=
%
= =
\=
5
>= , < , == , != are all examples of
Parameters
Relational Operators
Booleans
Syntax
6
What code will print the max of a data set?
print ( max ( ) )
int ( input ( max ( dataSet ) ) )
if ( dataSet > 0 ): print ( max )
printMax ( )
7
elif statements are used when
There are less than five options
The ELSE part of the if statement fails
There are more than two options
The If statement fails
8
What is output by: print ( min ( 3 , 4 , 2 , 5 , 9 , 10 ))
10
3
2
4
9
What does != mean in Python?
Truth Value
Equals to
Not Equal to
Syntax Error
10
The main objective of this code is to test a truth value
An if statement
Loops
FABS function
random.random( )
11
The "else" in an If Else statement happens when
The IF part is false
The Boolean fails
Both conditions are met
The program has an error
12
This Boolean requires both statements to be true
or
and
either
not
13
A set of commands which can be run by calling it by name is a...
Module
Function
Parameter
Program
14
In Python, >= means:
greater than
less than or equal to
greater than or equal to
if equal to
15
An if statement inside of an if statement is called what?
An imported module
A Boolean
A block of code
A nested if statement
16
All of the following make a good algorithm except...
Ease of Coding
Reliability
Low parameters
Speed
17
What is needed after an if statement for it to run properly?
\:
))
:
;