WGU D278 Scripting & Programming
Foundations Questions and Answers
activity diagram sdlc - ANSWER-implementation
agile/spiral approach - ANSWER-program built by doing small amounts of SDLC phase,
repeating until complete
algorithm - ANSWER-sequence of instructions that solves a problem
algorithm efficeny - ANSWER-measured by algorithm's computational complexity
array - ANSWER-collection of particular data type (names=string, quantity=integer,
price=float, etc.),
each entry known as an element
Array characteristics - ANSWER-always starts at 0, static data structure, must be
declared before use
assigned statement - ANSWER-assigns a variable with a value, value can change
ex: x = 5, "=" means assigned not equal to
assignment operators - ANSWER-=, +=, -=, *=, /=, %=
behavioral diagram - ANSWER-visualizes dynamic behavior of software
ex: flow of an algorithm
binary search - ANSWER-a search algorithm that starts at the middle of a sorted set of
numbers and removes half of the data; this process repeats until the desired value is
found or all elements have been eliminated.
boolean - ANSWER-true or false
branches - ANSWER-sequence of statements only executed under a certain condition
class - ANSWER-a code blueprint for creating an object
class diagram sdlc - ANSWER-design
comments - ANSWER-used by a programmer to explains sections of code
ignored by the compiler
compiled language - ANSWER-first converted by a tool (compiler) into machine code,
which can run on a particular machine. run fast
, ex: C, C++, Java
computational complexity - ANSWER-the amount of resources used by the algorithm
coral - ANSWER-super simple programming language
cursor - ANSWER-indicates where the next output item will be placed in the output
do-while loop - ANSWER-Iterate while the condition is true, tells you to something first,
action before evaluation
EX: do {
... this thing
} while(condition);
dynamically typed - ANSWER-a variable's type may change while a program executes,
based on what is assigned to the variable.
easy to use, python
equality operators - ANSWER-Operators == (is equal to) and != (is not equal to) that
compare two values.
floating point literal - ANSWER-a number with a fractional part, even if that fraction is 0,
as in 1.0, 0.0, or 99.573
floating-point number - ANSWER-any number with a decimal point showing one or more
digits behind the decimal point.
e. "4.0" or "0.087"
flowchart - ANSWER-graphical language for creating/ viewing computer programs
for loop - ANSWER-Loops that have a predetermined beginning, end, and increment
(step interval). used when you already know how many times to repeat.
function - ANSWER-list of statements executed by invoking function's name
function - ANSWER-named list of statements
heuristic - ANSWER-technique that accepts less accurate solution to improve execution
speed
identifier - ANSWER-name created by a programmer for an item like a variable or
function
sequence of letters(must be first, no spaces, case sensitive), underscores(cannot be
first), & digits
Foundations Questions and Answers
activity diagram sdlc - ANSWER-implementation
agile/spiral approach - ANSWER-program built by doing small amounts of SDLC phase,
repeating until complete
algorithm - ANSWER-sequence of instructions that solves a problem
algorithm efficeny - ANSWER-measured by algorithm's computational complexity
array - ANSWER-collection of particular data type (names=string, quantity=integer,
price=float, etc.),
each entry known as an element
Array characteristics - ANSWER-always starts at 0, static data structure, must be
declared before use
assigned statement - ANSWER-assigns a variable with a value, value can change
ex: x = 5, "=" means assigned not equal to
assignment operators - ANSWER-=, +=, -=, *=, /=, %=
behavioral diagram - ANSWER-visualizes dynamic behavior of software
ex: flow of an algorithm
binary search - ANSWER-a search algorithm that starts at the middle of a sorted set of
numbers and removes half of the data; this process repeats until the desired value is
found or all elements have been eliminated.
boolean - ANSWER-true or false
branches - ANSWER-sequence of statements only executed under a certain condition
class - ANSWER-a code blueprint for creating an object
class diagram sdlc - ANSWER-design
comments - ANSWER-used by a programmer to explains sections of code
ignored by the compiler
compiled language - ANSWER-first converted by a tool (compiler) into machine code,
which can run on a particular machine. run fast
, ex: C, C++, Java
computational complexity - ANSWER-the amount of resources used by the algorithm
coral - ANSWER-super simple programming language
cursor - ANSWER-indicates where the next output item will be placed in the output
do-while loop - ANSWER-Iterate while the condition is true, tells you to something first,
action before evaluation
EX: do {
... this thing
} while(condition);
dynamically typed - ANSWER-a variable's type may change while a program executes,
based on what is assigned to the variable.
easy to use, python
equality operators - ANSWER-Operators == (is equal to) and != (is not equal to) that
compare two values.
floating point literal - ANSWER-a number with a fractional part, even if that fraction is 0,
as in 1.0, 0.0, or 99.573
floating-point number - ANSWER-any number with a decimal point showing one or more
digits behind the decimal point.
e. "4.0" or "0.087"
flowchart - ANSWER-graphical language for creating/ viewing computer programs
for loop - ANSWER-Loops that have a predetermined beginning, end, and increment
(step interval). used when you already know how many times to repeat.
function - ANSWER-list of statements executed by invoking function's name
function - ANSWER-named list of statements
heuristic - ANSWER-technique that accepts less accurate solution to improve execution
speed
identifier - ANSWER-name created by a programmer for an item like a variable or
function
sequence of letters(must be first, no spaces, case sensitive), underscores(cannot be
first), & digits