1/34
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
A function that accomplishes multiple processes is functionally cohesive.
False
One benefit of pass by address is that it allows multiple changes to be made in a function and to have those changes available in the calling function.
True
It is not possible to access a variable in the calling function by its identifier when inside the called function.
True
It is possible to determine if any parameters are passed to a function by address based on the first line of the definition of the function (also known as the function header).
True
Not every function that utilizes pass by address are necessarily void functions.
True
Objects with a global scope are visible (defined) everywhere in the program.
True
It is a good design practice to repeat the logic of one function in other functions of the program.
False
In downward communication it is only a copy of the data that is sent to the function.
True
No code is contained in a structure chart and only demonstrates the function flow through the program.
True
The asterisk has two different uses, declaring an address variable (pointer) and indirectly accessing the data (in the memory location to which the variable points).
True
Evaluate the following expression: 8 + 3 && 0 - 7
True
(a != 0) and !!(a != 0) are complementary logical expressions (the variable a is an integer).
False
Given x = -5 and y = 3 the following expressions generate the same result: (x > 0 && x < 10 || y != 0) (x <= 0 || x >= 10 && y == 0)
True
The complement of x >= 3 is x < 3
True
Evaluate the following expression: 0 && 3 || 6
True
The short-circuit method of evaluating logical expressions is only relevant to those expressions that make use of at least one logical operator.
True
It is a course standard to make use of { and } with all if-else constructs.
True
(a != 0) and (a) are equivalent logical expressions (the variable a is an integer).
True
The complement of x > 3 is x <= 3
True
There is a required semi-colon that follows the logical expression of an if...else construct.
False
The conditional expression has three operands and two operators.
True
When the selection is based on a range of values, or the condition is not integral, we use the else-if for our multiway selection needs.
True
It is a logical error to associate two switch case labels with a common set of actions.
False
The course standards limit the use of the break statement to only switch statements.
True
When the statements associated with one case have been executed the program flow continues with next statement following the end of the switch construct.
False
The control expression that follows the keyword switch may be an integer or character expression.
True
The case label represents an integral type that is a possible result of the control expression.
True
The maximum number of actions that can be associated with a switch case label is one.
False
An iteration is one evaluation of the loop control expression.
False
Control structures are not to be found in the main function.
False
In a post-test loop the minimum number of times that the statements found inside of the loop are executed is one.
True
The initialization of the loop control variable must take place outside the body of a post-test loop.
False
The variable that receives the initialization action is not a part of the loop control expression.
False
A nested loop is a repetitive process contained inside of another repetitive process.
True
Input validation is an example of a counter-controlled problem.
False