WGU D335 INTRODUCTION TO
PROGRAMMING IN PYTHON OBJECTIVE
ASSESSMENT COMPLETE QUESTIONS AND
VERIFIED SOLUTIONS
●● token
Answer: basic elements of a language(letters, numbers, symbols)
●● high-level language
Answer: A programming language like Python that is designed to be
easy for humans to read and write.
●● low-level langauge
Answer: A programming language that is designed to be easy for a
computer to execute; also called machine language or assembly
language
●● keyword
Answer: define the language's syntax rules and structure, and they
cannot be used as variable names
●● statement
Answer: instruction that the Python interpreter can execute
,●● operators
Answer: special tokens that represent computations like addition,
multiplication and division
●● modulus operator
Answer: %, works on integers (and integer expressions) and gives the
remainder when the first number is divided by the second
●● evaluate
Answer: To simplify an expression by performing the operations in order
to yield a single value.
●● int
Answer: A Python data type that holds positive and negative whole
numbers
●● float
Answer: A Python data type which stores floating-point numbers.
Floating-point numbers are stored internally in two parts: a base and an
exponent. When printed in the standard format, they look like decimal
numbers
●● flow of execution
,Answer: The order in which statements are executed during a program
run.
●● function
Answer: A named sequence of statements that performs some useful
operation. Functions may or may not take parameters and may or may
not produce a result
●● fruitful function
Answer: A function that returns a value when it is called.
●● local variable
Answer: A variable defined inside a function. A local variable can only
be used inside its function. Parameters of a function are also a special
kind of local variable.
●● parameter
Answer: A name used inside a function to refer to the value which was
passed to it as an argument.
●● boolean function
Answer: A function that returns a Boolean value. The only possible
values of the bool type are False and True.
, ●● None
Answer: A special Python value. One use in Python is that it is returned
by functions that do not execute a return statement with a return
argument.
●● block
Answer: A group of consecutive statements with the same indentation.
●● boolean expression
Answer: An expression that is either true or false.
●● conditional statement
Answer: A statement that controls the flow of execution depending on
some condition. In Python the keywords if, elif, and else are used for
conditional statements.
●● conditional statement
Answer: One program structure within another, such as a conditional
statement inside a branch of another conditional statement
●● type conversion
Answer: An explicit function call that takes a value of one type and
computes a corresponding value of another type.
PROGRAMMING IN PYTHON OBJECTIVE
ASSESSMENT COMPLETE QUESTIONS AND
VERIFIED SOLUTIONS
●● token
Answer: basic elements of a language(letters, numbers, symbols)
●● high-level language
Answer: A programming language like Python that is designed to be
easy for humans to read and write.
●● low-level langauge
Answer: A programming language that is designed to be easy for a
computer to execute; also called machine language or assembly
language
●● keyword
Answer: define the language's syntax rules and structure, and they
cannot be used as variable names
●● statement
Answer: instruction that the Python interpreter can execute
,●● operators
Answer: special tokens that represent computations like addition,
multiplication and division
●● modulus operator
Answer: %, works on integers (and integer expressions) and gives the
remainder when the first number is divided by the second
●● evaluate
Answer: To simplify an expression by performing the operations in order
to yield a single value.
●● int
Answer: A Python data type that holds positive and negative whole
numbers
●● float
Answer: A Python data type which stores floating-point numbers.
Floating-point numbers are stored internally in two parts: a base and an
exponent. When printed in the standard format, they look like decimal
numbers
●● flow of execution
,Answer: The order in which statements are executed during a program
run.
●● function
Answer: A named sequence of statements that performs some useful
operation. Functions may or may not take parameters and may or may
not produce a result
●● fruitful function
Answer: A function that returns a value when it is called.
●● local variable
Answer: A variable defined inside a function. A local variable can only
be used inside its function. Parameters of a function are also a special
kind of local variable.
●● parameter
Answer: A name used inside a function to refer to the value which was
passed to it as an argument.
●● boolean function
Answer: A function that returns a Boolean value. The only possible
values of the bool type are False and True.
, ●● None
Answer: A special Python value. One use in Python is that it is returned
by functions that do not execute a return statement with a return
argument.
●● block
Answer: A group of consecutive statements with the same indentation.
●● boolean expression
Answer: An expression that is either true or false.
●● conditional statement
Answer: A statement that controls the flow of execution depending on
some condition. In Python the keywords if, elif, and else are used for
conditional statements.
●● conditional statement
Answer: One program structure within another, such as a conditional
statement inside a branch of another conditional statement
●● type conversion
Answer: An explicit function call that takes a value of one type and
computes a corresponding value of another type.