Professional Documents
Culture Documents
When defining a Python function that has no parameters, the parentheses that follow
the function’s name are optional.
Select one:
True
False
A
statement that creates a new variable and gives it a value. Choose...
To
join two operands end-to-end. Choose...
What
the Python interpreter does to an expression to find its
Choose...
value.
A combination of variables, operators, and values that represents
Choose...
a single result value.
A
unit of code that the Python interpreter can execute. Choose...
A
number or letter that can be stored in a variable or evaluated
Choose...
in an
expression.
Select one:
a. a syntax error
b. an exception
c. a compilation error
d. a semantic error
e. a late error
A property of a program that can run on more than one kind of computer is called
portability.
Select one:
True
False
Select one:
True
False
pi = int(3.14159)
print (pi)
Select one:
a. 3
b. 3.0
c. 3.14159
d. 0
1. What is the output of the code below assuming that global variable x has value 2
and global y has value 3?
def f1():
def f2():
def f3():
print(f3())
Select one:
a. ababababababababab
b. abababababab
c. abababab
d. ababab
e. ababababab
Select one:
a. runtime error
b. compile error
c. syntax error
d. semantic error
Select one:
a. 6
b. 5
c. 4
d. 3
Select one:
a. 1,000
b. 1,000,000
c. (1, 0, 0)
Jump to...