WGU D278 Scripting & Programming EXAM 2024
SUMMER-WINTER EXAM WITH ANSWERS
A loop consisting of a loop variable initialization, a loop expression, and a loop
variable update that typically describes iterating for a specific number of times. -
ANSWER: for Loop
First step in the waterfall approach. Defines a program's goals. - ANSWER: Analyst to
Design
The progress of writing, compiling, and testing a small amount of code, then writing,
compiling, and testing a small amount more (an incremental amount), and so on. -
ANSWER: Incremental development
A function input specified in a function definition. - ANSWER: parameter
A number with a fractional part, even if that fraction is 0. - ANSWER: Floating-point
literal
used to run a program's statements - ANSWER: interpreter
The second step in the waterfall approach of SDLC. Defines specifics of a program. -
ANSWER: Analysis- Design-Implement
Text (characters) within double quotes. - ANSWER: String Literal
A program performs computations on that data, such as adding two values like x + y.
- ANSWER: Process
Modeling language for software design that uses different types of diagrams to
visualize the structure and behavior of programs. - ANSWER: Universal Modeling
Language
A graphical language for creating computer programs. - ANSWER: flowchart
A program can be built by doing small amounts of each SDLC phases in sequence,
then repeating. - ANSWER: Agile or spiral approach
A function may return one value and does so by assigning a return variable with the
return value. - ANSWER: Return variable
Supports decomposing a program into objects. - ANSWER: object-oriented language
Each element's location number of an array. - ANSWER: Index
, A loop that repeatedly executes the loop body while the loop's expression evaluates
to true. - ANSWER: while loop
Any function input values that appear within ( ), and are separated by commas if
more than one. - ANSWER: Arguments
Engineers have reduced switch sizes by half about every 2 years. - ANSWER: Moore's
Law
Can be a number, a variable name (numApples), or a simple calculation like
(numApples + 1). - ANSWER: Expression
Dividing a nonzero floating-point number by zero. - ANSWER: Infinity or -Infinity
American Standard Code for Information Interchange. Code that is the numerical
representation of a character. Ex. Z would be stored in a computer as 1011010. -
ANSWER: ASCII
A list of statements, each statement carrying out some action and executing one at a
time. - ANSWER: Program
Statement that returns the specified value and immediately exits the function. -
ANSWER: return statement
An invocation of a function's name, causing the function's statements to execute. -
ANSWER: function call
Any letter (a-z, A-Z), digit (0-9), or symbol (~, !, @, etc.). - ANSWER: Characters
A single 0 or 1. - ANSWER: bit
A decision and its two branches. IF the decision's expression is true then the first
branch executes, ELSE the second branch executes. - ANSWER: If-else
A program construct that repeatedly executes the loop's statements (known as loop
body). - ANSWER: Loop
interaction between software components and order of events - ANSWER: sequence
diagram
Type that has just two values: true or false. - ANSWER: Boolean
Used by programs to refer to data. It is a named item, used to hold a value. -
ANSWER: variable
A conversion of one data type to another, such as an integer to a float. - ANSWER:
Type conversion
SUMMER-WINTER EXAM WITH ANSWERS
A loop consisting of a loop variable initialization, a loop expression, and a loop
variable update that typically describes iterating for a specific number of times. -
ANSWER: for Loop
First step in the waterfall approach. Defines a program's goals. - ANSWER: Analyst to
Design
The progress of writing, compiling, and testing a small amount of code, then writing,
compiling, and testing a small amount more (an incremental amount), and so on. -
ANSWER: Incremental development
A function input specified in a function definition. - ANSWER: parameter
A number with a fractional part, even if that fraction is 0. - ANSWER: Floating-point
literal
used to run a program's statements - ANSWER: interpreter
The second step in the waterfall approach of SDLC. Defines specifics of a program. -
ANSWER: Analysis- Design-Implement
Text (characters) within double quotes. - ANSWER: String Literal
A program performs computations on that data, such as adding two values like x + y.
- ANSWER: Process
Modeling language for software design that uses different types of diagrams to
visualize the structure and behavior of programs. - ANSWER: Universal Modeling
Language
A graphical language for creating computer programs. - ANSWER: flowchart
A program can be built by doing small amounts of each SDLC phases in sequence,
then repeating. - ANSWER: Agile or spiral approach
A function may return one value and does so by assigning a return variable with the
return value. - ANSWER: Return variable
Supports decomposing a program into objects. - ANSWER: object-oriented language
Each element's location number of an array. - ANSWER: Index
, A loop that repeatedly executes the loop body while the loop's expression evaluates
to true. - ANSWER: while loop
Any function input values that appear within ( ), and are separated by commas if
more than one. - ANSWER: Arguments
Engineers have reduced switch sizes by half about every 2 years. - ANSWER: Moore's
Law
Can be a number, a variable name (numApples), or a simple calculation like
(numApples + 1). - ANSWER: Expression
Dividing a nonzero floating-point number by zero. - ANSWER: Infinity or -Infinity
American Standard Code for Information Interchange. Code that is the numerical
representation of a character. Ex. Z would be stored in a computer as 1011010. -
ANSWER: ASCII
A list of statements, each statement carrying out some action and executing one at a
time. - ANSWER: Program
Statement that returns the specified value and immediately exits the function. -
ANSWER: return statement
An invocation of a function's name, causing the function's statements to execute. -
ANSWER: function call
Any letter (a-z, A-Z), digit (0-9), or symbol (~, !, @, etc.). - ANSWER: Characters
A single 0 or 1. - ANSWER: bit
A decision and its two branches. IF the decision's expression is true then the first
branch executes, ELSE the second branch executes. - ANSWER: If-else
A program construct that repeatedly executes the loop's statements (known as loop
body). - ANSWER: Loop
interaction between software components and order of events - ANSWER: sequence
diagram
Type that has just two values: true or false. - ANSWER: Boolean
Used by programs to refer to data. It is a named item, used to hold a value. -
ANSWER: variable
A conversion of one data type to another, such as an integer to a float. - ANSWER:
Type conversion