CPSC 103 (Actual) Exam Graded A+
Arbitrary Sized - ANSWER-Arbitrary Sized data is data for which the size is not known
at the time the program is designed; this data is usually represented by lists in CPSC
103
Argument - ANSWER-The value that is given to a function when it is called. A function
may Jane more than one parameter and therefore require more than one argument
when it is called.
Atomic Distinct Data - ANSWER-Atomic distinct data represents specific values such as
7, "hi", None, or the values in an enumeration
Atomic Non-Distinct Data - ANSWER-Atomic data is a form of data that cannot be
broken down into smaller pieces. Some examples are strings, float, int, etc.
Calling a function - ANSWER-Executes a function that has already been designed. To
call a function, write the name of the function with parentheses next to it containing the
value(s) you want to assign to its parameter(s)
Code Fragment - ANSWER-A code fragment, sometimes called code snippet, is a small
piece of code, perhaps one to a few lines
Compound - ANSWER-Compound data is composed of two or more pieces of
information that belong together or are related, for example, a book has a title, author,
genre, and price.
Data definition - ANSWER-A data representation for a new kind of information that we
can use in our program. The data definition includes information about how to form the
new data type, how the data represents information in the program's domain, examples,
and a template function.
Enumeration - ANSWER-An enumeration is one kind of data definition where the
information to be represented consists of a fixed number of distinct values
Expression - ANSWER-An element of a program that is evaluated to produce a single
value
Function - ANSWER-A block of organized, reusable code that is used to perform an
action. A function has a particular structure, the most recognition being that it starts with
def and contains a function body which is lines of codes indented underneath
Helper Function - ANSWER-A helper function is often created to handle sub tasks of a
main function, in this way the main function is kept well organized and focused on one
Arbitrary Sized - ANSWER-Arbitrary Sized data is data for which the size is not known
at the time the program is designed; this data is usually represented by lists in CPSC
103
Argument - ANSWER-The value that is given to a function when it is called. A function
may Jane more than one parameter and therefore require more than one argument
when it is called.
Atomic Distinct Data - ANSWER-Atomic distinct data represents specific values such as
7, "hi", None, or the values in an enumeration
Atomic Non-Distinct Data - ANSWER-Atomic data is a form of data that cannot be
broken down into smaller pieces. Some examples are strings, float, int, etc.
Calling a function - ANSWER-Executes a function that has already been designed. To
call a function, write the name of the function with parentheses next to it containing the
value(s) you want to assign to its parameter(s)
Code Fragment - ANSWER-A code fragment, sometimes called code snippet, is a small
piece of code, perhaps one to a few lines
Compound - ANSWER-Compound data is composed of two or more pieces of
information that belong together or are related, for example, a book has a title, author,
genre, and price.
Data definition - ANSWER-A data representation for a new kind of information that we
can use in our program. The data definition includes information about how to form the
new data type, how the data represents information in the program's domain, examples,
and a template function.
Enumeration - ANSWER-An enumeration is one kind of data definition where the
information to be represented consists of a fixed number of distinct values
Expression - ANSWER-An element of a program that is evaluated to produce a single
value
Function - ANSWER-A block of organized, reusable code that is used to perform an
action. A function has a particular structure, the most recognition being that it starts with
def and contains a function body which is lines of codes indented underneath
Helper Function - ANSWER-A helper function is often created to handle sub tasks of a
main function, in this way the main function is kept well organized and focused on one