WGU D278 Scripting and Programming – Foundations
QUESTIONS WITH ANSWERS
1.A b means a is not equal to b.: !=
2._ is called an underscore.: _
3.A b means a is less-than b.: <
4.A b means a is less-than-or-equal to b.: <=
5.A b means a is equal to b.: ==
6.A b means a is greater-than b.: >
7.A b means a is greater-than-or-equal to b.: >=
8. : The knapsack problem with the quantity of each item limited to 1.: 0-
1 knapsack problem
9.An abstract data type (ADT) is a data type whose creation and update are
constrained to specific well-defined operations.: abstract data type / ADT
10.Abstraction means to have a user interact with an item at a high-level,
with lower-level internal details hidden from the user (aka information hiding
or encapsulation).: Abstraction / information hiding / encapsulation
,11.A UML is a flowchart, similar to zyFlowchart, used to describe the
flow of an activity or set of activities.: activity diagram
12.The addition operator is +, as in x + y.: addition / +
13.A program can be built by doing small amounts of each SDLC
phases in sequence, and then repeating, known as the agile approach
(or spiral approach).: agile approach / spiral approach
14.Civilization's earlier lasted many thousands of years.: agricultural age
15.An is a sequence of steps that solves a problem, generating
correct output for any valid input values.: algorithm
16. is typically measured by the algorithm's computational complexity.:
Al- gorithm efficiency
17.Algorithm time efficiency: The number of calculations required to solve
a problem.: algorithm time efficiency
18.The phase determines the goals and requirements for a system.:
analy- sis
19.An is a value provided to a function's parameter during a function
call. Any function input values, or , appear within ( ), and are separated
by commas if more than one.: argument
20.An is a special variable having one name, but storing a list of data
,items, with each item being directly accessible.: array
21. is a popular code for characters.: ASCII
22.An assigns the variable on the left-side of the = with the current
value of the right-side expression.: assignment statement
23.An algorithm's is the space complexity not including the input data.: -
auxiliary space complexity
, 24.A visualizes dynamic behavior of software, such as the flow of
an algorithm.: behavioral diagram
25.An algorithm's is the scenario where the algorithm does the minimum
possible number of operations.: best case
26.Computers can only represent two values (0 or 1), so base two
numbers, known as ("bi" refers to two).: binary numbers
27. is a faster algorithm for searching a list if the list's elements are
sorted and directly accessible (such as an array). Divides an item into two
halves, runs a test to decide in which half something lies, and repeats the
binary search on that half.: Binary search
28.A single 0 or 1 is called a .: bit
29.A is a type that has just two values: true or false.: Boolean
30.{ } are .: braces
31.[ ] are .: brackets
32.In a program, a is a sequence of statements only executed under
a certain condition.: branch
33.In a program, a problem's cause is called a bug, and troubleshooting
is called debugging.: bug / debugging
QUESTIONS WITH ANSWERS
1.A b means a is not equal to b.: !=
2._ is called an underscore.: _
3.A b means a is less-than b.: <
4.A b means a is less-than-or-equal to b.: <=
5.A b means a is equal to b.: ==
6.A b means a is greater-than b.: >
7.A b means a is greater-than-or-equal to b.: >=
8. : The knapsack problem with the quantity of each item limited to 1.: 0-
1 knapsack problem
9.An abstract data type (ADT) is a data type whose creation and update are
constrained to specific well-defined operations.: abstract data type / ADT
10.Abstraction means to have a user interact with an item at a high-level,
with lower-level internal details hidden from the user (aka information hiding
or encapsulation).: Abstraction / information hiding / encapsulation
,11.A UML is a flowchart, similar to zyFlowchart, used to describe the
flow of an activity or set of activities.: activity diagram
12.The addition operator is +, as in x + y.: addition / +
13.A program can be built by doing small amounts of each SDLC
phases in sequence, and then repeating, known as the agile approach
(or spiral approach).: agile approach / spiral approach
14.Civilization's earlier lasted many thousands of years.: agricultural age
15.An is a sequence of steps that solves a problem, generating
correct output for any valid input values.: algorithm
16. is typically measured by the algorithm's computational complexity.:
Al- gorithm efficiency
17.Algorithm time efficiency: The number of calculations required to solve
a problem.: algorithm time efficiency
18.The phase determines the goals and requirements for a system.:
analy- sis
19.An is a value provided to a function's parameter during a function
call. Any function input values, or , appear within ( ), and are separated
by commas if more than one.: argument
20.An is a special variable having one name, but storing a list of data
,items, with each item being directly accessible.: array
21. is a popular code for characters.: ASCII
22.An assigns the variable on the left-side of the = with the current
value of the right-side expression.: assignment statement
23.An algorithm's is the space complexity not including the input data.: -
auxiliary space complexity
, 24.A visualizes dynamic behavior of software, such as the flow of
an algorithm.: behavioral diagram
25.An algorithm's is the scenario where the algorithm does the minimum
possible number of operations.: best case
26.Computers can only represent two values (0 or 1), so base two
numbers, known as ("bi" refers to two).: binary numbers
27. is a faster algorithm for searching a list if the list's elements are
sorted and directly accessible (such as an array). Divides an item into two
halves, runs a test to decide in which half something lies, and repeats the
binary search on that half.: Binary search
28.A single 0 or 1 is called a .: bit
29.A is a type that has just two values: true or false.: Boolean
30.{ } are .: braces
31.[ ] are .: brackets
32.In a program, a is a sequence of statements only executed under
a certain condition.: branch
33.In a program, a problem's cause is called a bug, and troubleshooting
is called debugging.: bug / debugging