Logic Final Review Flashcards
(90 cards)
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