NEW
Font size
WorksheetsPrelim Exam - Comp Vision
Total questions: 25
Worksheet time: 13mins
Python is a _____ language, so you don't have to explicitly define the variable type.
type-inferred
dynamic
flexible
pre-defined
Python is a _____ language, so you don't have to explicitly define the variable type.
type-inferred
dynamic
flexible
pre-defined
A ____ is a type of variable whose value cannot be changed. It is helpful to think of constants as containers that hold information which cannot be changed later.
constant
fixed
constant variable
pre-defined
___ is a raw data given in a variable or constant.
Literal
Variable
Constant
Numerical
tuple
list
set
dict
set
dict
tuple
list
____ is an unordered collection of key-value pairs.
It is generally used when we have a huge amount of data
dict
set
list
tuple
In ___ type conversion, Python automatically converts one data type to another data type.
implicit
explicit
dynamic
flexible
In ____ Type Conversion, users convert the data type of an object to required data type. We use the predefined functions like int(), float(), str(), etc to perform type conversion.
explicit
implicit
dynamic
flexible
In Python, the body of the ___ statement is indicated by the indentation.
IF
ELSE
ELIF
ELSE IF
The ___ statement evaluates test expression and will execute the body of if only when the test condition is True
IF ELSE
ELSE IF
ELIF
ELSE
The ___ is short for else if. It allows us to check for multiple expressions.
ELIF
ELSE IF
ELSIF
ELIFS
Loop continues until we reach the last item in the ___. The body of for loop is separated from the rest of the code using indentation.
SEQUENCE
RANGE
LIST
LIST RANGE
The ___ object is "lazy" in a sense because it doesn't generate every number that it "contains" when we create it.
RANGE
LIST
SEQUENCE
LIST RANGE
The ___ part is executed if the items in the sequence used in for loop exhausts.
ELSE
FOR ELSE
WHILE ELSE
FOR IF ELSE
The ___ loop in Python is used to iterate over a block of code as long as the test expression (condition) is true.
WHILE
FOR
DO WHILE
WHILE DO
In Python, the body of the while loop is determined through ___.
INDENTION
SPACE
TAB
INDENT SPACE
Same as with for loops, while loops can also have an optional ___ block.
ELSE
BREAK
PASS
END
We use the ___ function to output data to the standard output device (screen)
PRINTF
COUT
PRINTC
The ___ separator is used between the values. It defaults into a space character.
SEP
END
SPACE
SET
To allow flexibility, we might want to take the input from the user. using ___ command
INPUT
CIN
INPUTF
GET
Definitions inside a module can be imported to another module or the interactive interpreter in Python.
IMPORT
GET
DEF
SET
In Python programming, the ___ statement is a null statement.
PASS
CONTINUE
BREAK
NULL
