WGU D335 EXAM TEST PAPER WITH
DETAILED QUESTIONS AND RELIABLE
ANSWERS
◉ Cost per stock selection
Answer: The cost assigned to each stock in the stocks dictionary.
◉ factorial() method
Answer: A method from the math module used to calculate the
factorial of an integer.
◉ input
Answer: A function used to get text from user.
◉ variable
Answer: A named item used to hold a value.
◉ Algorithm
Answer: Sequence of instructions that solves a problem.
◉ python interpreter or IDE
Answer: Program that executes Python programming.
, ◉ code
Answer: Textual representation of a program.
◉ line
Answer: Row of text.
◉ prompt
Answer: Indicates the interpreter is ready to accept user input.
◉ statement
Answer: Line of executable code.
◉ expression
Answer: Returns a value when evaluated.
◉ print( )
Answer: Displays output to the screen and starts a new line.
◉ # or """
Answer: Denotes a comment.
◉ string literal
Answer: Text enclosed in quotes.
DETAILED QUESTIONS AND RELIABLE
ANSWERS
◉ Cost per stock selection
Answer: The cost assigned to each stock in the stocks dictionary.
◉ factorial() method
Answer: A method from the math module used to calculate the
factorial of an integer.
◉ input
Answer: A function used to get text from user.
◉ variable
Answer: A named item used to hold a value.
◉ Algorithm
Answer: Sequence of instructions that solves a problem.
◉ python interpreter or IDE
Answer: Program that executes Python programming.
, ◉ code
Answer: Textual representation of a program.
◉ line
Answer: Row of text.
◉ prompt
Answer: Indicates the interpreter is ready to accept user input.
◉ statement
Answer: Line of executable code.
◉ expression
Answer: Returns a value when evaluated.
◉ print( )
Answer: Displays output to the screen and starts a new line.
◉ # or """
Answer: Denotes a comment.
◉ string literal
Answer: Text enclosed in quotes.