C173 Ultimate Study Guide Questions
and Answers Graded A+
abstraction - Correct answer-Focus on the essential qualities of something rather
than one specific example.
actors - Correct answer-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 - Correct answer-A set of commands that return a value. This differs
from a procedure, which is a set of commands that doesn't necessarily have to
return a value.
append() - Correct answer-Mutates <List> by adding <Element> to the end of the
list.
argument - Correct answer-The inputs to a procedure. Also called operands.
attributes - Correct answer-Characteristics of an object which may be used to
reference other objects or save object state information.
©COPYRIGHT 2025, ALL RIGHTS RESERVED 1
,<name> = <expression> - Correct answer-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 - Correct answer-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 - Correct answer-A value that is either True or False
circular definition - Correct answer-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 - Correct answer-Describes what an object will be, but it isn't the object itself.
This is a blueprint for that object.
<ClassName> (<BaseClass>):
<Block> - Correct answer-How to define a class in Python
class diagram (UML) - Correct answer-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.
©COPYRIGHT 2025, ALL RIGHTS RESERVED 2
,code modularity - Correct answer-Dividing software or an application into smaller
modules. This provides prewritten code which saves resources and provides greater
manageability.
comparison operator - Correct answer-Used to make a comparison between two
values.
compiler - Correct answer-A program that takes source code and converts it to
machine code by producing a separate file.
concatenate - Correct answer-To connect or link in a series or chain.
constructor - Correct answer-A special type of function used to create a class or
object. The constructor prepares the new object for use.
dictionary - Correct answer-Provides a mapping between keys, which can be
values of any immutable type, and values, which can be any value. Because this is
implemented using a hash table, the time to lookup a value does not increase
(significantly) even when the number of keys increases.
if <condition>:
©COPYRIGHT 2025, ALL RIGHTS RESERVED 3
, else: - Correct answer-Used in to provide a two-way decision. If the initial
condition is true the first block of code will execute. If the initial condition is false,
the second block of code following the else clause will execute.
encapsulation - Correct answer-Surrounding something to both keep the contents
together and also to protect those contents. In Object Orientation this refers to the
idea of taking our attributes and behaviors and bundling them together in the same
unit, or the same class.
expression - Correct answer-Any Python construct that has a value
for <Name> in <Collection>: - Correct answer-Executes a block once for each
element of a collection.
framework - Correct answer-Huge amounts of code already written, already tested,
ready for you to link to and use within your programs. Also called libraries.
grammar - Correct answer-In a programming language like Python, these are the
rules that the code must adhere to. When not followed, the interpreter will return a
Syntax Error message. This means that the structure of the code is inconsistent
with the rules of the programming language. Proper formatting for an expression
would be: Expression -> Expression Operator Expression
immutable - Correct answer-Not able to change in form or nature
©COPYRIGHT 2025, ALL RIGHTS RESERVED 4
and Answers Graded A+
abstraction - Correct answer-Focus on the essential qualities of something rather
than one specific example.
actors - Correct answer-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 - Correct answer-A set of commands that return a value. This differs
from a procedure, which is a set of commands that doesn't necessarily have to
return a value.
append() - Correct answer-Mutates <List> by adding <Element> to the end of the
list.
argument - Correct answer-The inputs to a procedure. Also called operands.
attributes - Correct answer-Characteristics of an object which may be used to
reference other objects or save object state information.
©COPYRIGHT 2025, ALL RIGHTS RESERVED 1
,<name> = <expression> - Correct answer-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 - Correct answer-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 - Correct answer-A value that is either True or False
circular definition - Correct answer-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 - Correct answer-Describes what an object will be, but it isn't the object itself.
This is a blueprint for that object.
<ClassName> (<BaseClass>):
<Block> - Correct answer-How to define a class in Python
class diagram (UML) - Correct answer-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.
©COPYRIGHT 2025, ALL RIGHTS RESERVED 2
,code modularity - Correct answer-Dividing software or an application into smaller
modules. This provides prewritten code which saves resources and provides greater
manageability.
comparison operator - Correct answer-Used to make a comparison between two
values.
compiler - Correct answer-A program that takes source code and converts it to
machine code by producing a separate file.
concatenate - Correct answer-To connect or link in a series or chain.
constructor - Correct answer-A special type of function used to create a class or
object. The constructor prepares the new object for use.
dictionary - Correct answer-Provides a mapping between keys, which can be
values of any immutable type, and values, which can be any value. Because this is
implemented using a hash table, the time to lookup a value does not increase
(significantly) even when the number of keys increases.
if <condition>:
©COPYRIGHT 2025, ALL RIGHTS RESERVED 3
, else: - Correct answer-Used in to provide a two-way decision. If the initial
condition is true the first block of code will execute. If the initial condition is false,
the second block of code following the else clause will execute.
encapsulation - Correct answer-Surrounding something to both keep the contents
together and also to protect those contents. In Object Orientation this refers to the
idea of taking our attributes and behaviors and bundling them together in the same
unit, or the same class.
expression - Correct answer-Any Python construct that has a value
for <Name> in <Collection>: - Correct answer-Executes a block once for each
element of a collection.
framework - Correct answer-Huge amounts of code already written, already tested,
ready for you to link to and use within your programs. Also called libraries.
grammar - Correct answer-In a programming language like Python, these are the
rules that the code must adhere to. When not followed, the interpreter will return a
Syntax Error message. This means that the structure of the code is inconsistent
with the rules of the programming language. Proper formatting for an expression
would be: Expression -> Expression Operator Expression
immutable - Correct answer-Not able to change in form or nature
©COPYRIGHT 2025, ALL RIGHTS RESERVED 4