WGU C173 STUDY GUIDE QUESTIONS
WITH DETAILED VERIFIED ANSWERS
-
subtraction operator, outputs the difference between the two input numbers
!=
a comparison operator used to compare if one operator is not equal to another
%
modulo operator, outputs the remainder of dividing the first number by the second
*
multiplication operator, outputs the product of the two input numbers
**
exponentiation operator, outputs the result of multiplying <base> by itself <power> number of
times
/
division operator, outputs the result of dividing the first number by the second
+
addition operator, outputs the sum of the two input numbers OR concatenation operator, joins
two values together
<
a comparison operator used to compare if one operator is less than another
<
a comparison operator used to compare if one operator is less than another
<=
,a comparison operator used to compare if one operator is less than or equal to another
=
assignment operator, assigns a value
==
a comparison operator used to compare if one operator is equal to another
>
a comparison operator used to compare if one operator is greater than another
>=
a comparison operator used to compare if one operator is greater than or equal to another
abstraction
Focus on the essential qualities of something rather than one specific example.
actors
An Actor in a use case is anything with behavior who lives outside of your system, outside of
your application, but has a goal they want to accomplish within.
algorithm
A set of commands that returns a value. This differs from a procedure, which is a set of
commands that doesn't necessarily have to return a value.
append()
Mutates <List> by adding <Element> to the end of the list.
argument
The inputs to a procedure. Also called operands.
attributes
, Characteristics of an object which may be used to reference other objects or save object state
information.
<name> = <expression>
This is an assignment statement. A variable is named and also assigned a value or expression. If
multiple values are assigned to the same named variable, the last assignment is the one used.
base case
An expression that has a value and is not defined in terms of some other thing we are defining.
This breaks the chain of recursion.
Boolean
A value that is either True or False
circular definition
A definition that doesn't give us answers because it never finishes. It is stuck in a loop with each
reference pointing to another reference. It has no base case.
class
Describes what an object will be, but it isn't the object itself. This is a blueprint for that object.
class <ClassName> (<BaseClass>):
<Block>
How to define a class in Python
class diagram (UML)
The most common diagram in Object-Oriented Design. Shows the system classes and
relationships between them. Diagrams the primary attributes and primary operations for each
class.
code modularity
Dividing software or an application into smaller modules. This provides prewritten code which
saves resources and provides greater manageability.
WITH DETAILED VERIFIED ANSWERS
-
subtraction operator, outputs the difference between the two input numbers
!=
a comparison operator used to compare if one operator is not equal to another
%
modulo operator, outputs the remainder of dividing the first number by the second
*
multiplication operator, outputs the product of the two input numbers
**
exponentiation operator, outputs the result of multiplying <base> by itself <power> number of
times
/
division operator, outputs the result of dividing the first number by the second
+
addition operator, outputs the sum of the two input numbers OR concatenation operator, joins
two values together
<
a comparison operator used to compare if one operator is less than another
<
a comparison operator used to compare if one operator is less than another
<=
,a comparison operator used to compare if one operator is less than or equal to another
=
assignment operator, assigns a value
==
a comparison operator used to compare if one operator is equal to another
>
a comparison operator used to compare if one operator is greater than another
>=
a comparison operator used to compare if one operator is greater than or equal to another
abstraction
Focus on the essential qualities of something rather than one specific example.
actors
An Actor in a use case is anything with behavior who lives outside of your system, outside of
your application, but has a goal they want to accomplish within.
algorithm
A set of commands that returns a value. This differs from a procedure, which is a set of
commands that doesn't necessarily have to return a value.
append()
Mutates <List> by adding <Element> to the end of the list.
argument
The inputs to a procedure. Also called operands.
attributes
, Characteristics of an object which may be used to reference other objects or save object state
information.
<name> = <expression>
This is an assignment statement. A variable is named and also assigned a value or expression. If
multiple values are assigned to the same named variable, the last assignment is the one used.
base case
An expression that has a value and is not defined in terms of some other thing we are defining.
This breaks the chain of recursion.
Boolean
A value that is either True or False
circular definition
A definition that doesn't give us answers because it never finishes. It is stuck in a loop with each
reference pointing to another reference. It has no base case.
class
Describes what an object will be, but it isn't the object itself. This is a blueprint for that object.
class <ClassName> (<BaseClass>):
<Block>
How to define a class in Python
class diagram (UML)
The most common diagram in Object-Oriented Design. Shows the system classes and
relationships between them. Diagrams the primary attributes and primary operations for each
class.
code modularity
Dividing software or an application into smaller modules. This provides prewritten code which
saves resources and provides greater manageability.