WGU D335 OA /WGU D335 INTRODUCTION TO PYTHON OA FINAL EXAM LATEST
2025 ACTUAL EXAM WITH COMPLETE QUESTIONS AND CORRECT DETAILED
ANSWERS (100% VERIFIED ANSWERS) |ALREADY GRADED A+| ||PROFESSOR
VERIFIED|| ||BRANDNEW!!!||
When a function calls itself this is referred to as ...
A. a nested function call.
B. a recursive function call.
C. an illegal function call.
D. a Boolean function call. - ANSWER-B. a recursive function call
Conditional statements allow which of the following?
A. The ability to convert between data types.
B. Alteration of the program behavior based on data in the
program.
C. The saving of Boolean values.
D. Alternative syntax for manipulating variables. - ANSWER-B.
Alteration of the program behavior based on data in the program.
Which of the following is NOT a mathematical function that
returns a value?
,2|Page
A. math.pi
B. math.log
C. math.isfinite
D. math.degrees - ANSWER-A. math.pi
Which of the following is NOT true of the function isinstance?
A. It can be used to test the type of data a variable currently
stores.
B. It is a built in function.
C. It returns a Boolean value.
D. It can determine if data is a numeric type but cannot
differentiate between decimal and integer types. - ANSWER-D. It
can determine if data is a numeric type but cannot differentiate
between decimal and integer types.
When using functions that have return data, which of the following
is NOT true?
A. A function that returns data can be used in a mathematical
expression.
,3|Page
B. A function that returns data can be used in a conditional
statement.
C. A function that returns data cannot be used within another
function that returns data.
D. A function that returns data can be used in an assignment
statement. - ANSWER-C. A function that returns data cannot be
used within another function that returns data.
When a function encounters a return statement, which of the
following occurs?
A. The function terminates immediately.
B. The function may continue running if a return value is specified.
C. The function will end and always return a Boolean value.
D. The function will continue running until all the code is executed
but will return the value associated with the return statement. -
ANSWER-A. The function terminates immediately.
When a return statement is followed by a mathematical
expression which of the following is true?
, 4|Page
A. The function will run all code contained within it and then
calculate the expression and return the value after all other code
is completed.
B. The expression will be converted to a Boolean value and
returned.
C. The expression will be calculated and the final result will be
returned.
D. The expression will be returned from the function and variables
in the calling code will be used to produce the final calculation. -
ANSWER-C. The expression will be calculated and the final result
will be returned.
When using a function that returns data in your program what is
required to use the data in the calling code?
A. The data can be stored in a variable but not passed to another
function via composition.
B. The data must be passed to another function via composition
but cannot be stored in a variable.
C. The result of the function must be captured in a variable or
passed to another function via composition.