Logic Final Review Flashcards
Which loop statement does not contain an increment statement but automatically increments the counter at the end of each iteration?
For
Which symbol is used for an assignment statement in a flowchart?
processing
The value of the expression 12 - 4 * 3 / 2 + 9 is
15
What term is used for a string that appears in the actual code of a program?
string literal
The _____ symbol indicates that some condition must be tested in a flowchart.
diamond
The program development cycle is made up of ________ steps that are repeated until no errors can be found in the program.
5
The term used for a set of rules that must be strictly followed when writing a program is _______.
syntax
The function ________ comprises one or more statements that are executed when the function is called.
body
Which function returns a string within a string?
substring
Which structure causes a statement or set of statements to execute repeatedly?
repetition
Which loop is specifically designed to initialize, test, and increment a counter variable
For
the statements that appear between the While and the End While clauses are called the
body of the loop
What is the informal language that programmers use to create models of programs that have no syntax rules?
pseudocode
In many languages the case structure is called a _____ statement
selective
Passing an argument by _________ means that only a copy of the argument’s value is passed into the parameter variable.
switch
What type of loop uses a Boolean expression to control the number of times that it repeats a statement of set of statements?
condition-controlled
Which operator is used to determine that the operands are not exactly of the same value? =, !, =!, ==, none of these
none of these; this is used !=
What function(s) does an interpreter perform w/ the instructions in a high-level programming language?
translates and executes
What type of operator can be used to determine whether a specific relationship exists between two values?
relational
Which of these are posttest loops?
Do-While and Do-Until
Which error produces incorrect results but does not prevent the program from running?
logic
Which of the following is not an example of operating system software? Microsoft Word, Windows Vista, Linux, Mac OS X, none of these
Microsoft Word
Which of the following is not a benefit of using modules? simpler code, faster development, code reuse, better testing, none of these
none of these
_____ was the first high-level programming language designed that could perform complex mathematical calculations.
FORTRAN
The following is an example of what type of statement: set rate = 5.75
assignment
Which operator is best to determine whether x contains a value in the range of 10 through 57?
AND
Data is not recorded magnetically on a(n) ______, but is encoded as a series of pits on the disk surface.
optical disk
A ________ is a module that returns a value back to the part of the program that called it.
function
Which type of variable is visible to every module and the entire program?
global
The function ______ specifies the return data type, name of function, and the parameter variable(s).
header
If the expression is false, the ______ operator will return true.
NOT
The smallest storage location in a computer’s memory is known as a _______.
bit
Modules are commonly called what?
Subprograms, all of these, procedures, subroutines, methods
all
What is the term used for the variable that receives an argument that passed into a module?
parameter
Function is another name for ________.
module, variable, reference, sub class, none of these
module
Which of the following is not a variable data type?
number