Programming Logic And Design: Chapter 2

25 August 2022
4.7 (114 reviews)
25 test answers

Unlock all answers in this set

Unlock answers (21)
question
Which error produces incorrect results but does not prevent the program from running? A) Syntax B) Logic C) Grammatical D) Human E) None of these
answer
Logic
question
What is the informal language that programmers use to create models of programs that have no syntax rules and are not meant to be compiled or executed? A) Program B) Flowchart C) Algorithm D) Code E) Pseudocode
answer
Pseudocode
question
The ____ is a diagram that graphically depicts the steps that take place in a program. A) Program B) Flowchart C) Algorithm D) Code E) Pseudocode
answer
Flowchart
question
A ____ structure is a set of statements that execute in the order they appear. A) Control B) Repetition C) Decision D) Sequence E) None of these
answer
Sequence
question
Which symbol is used for an assignment statement in a flowchart? A) Rectangle B) Output C) Terminal D) Parallelogram E) None of these
answer
Rectangle
question
Which mathematical operator is used to raise five to the second power? A) MOD B) * C) ^ D) / E) ~
answer
^
question
The value of the expression 12 - 4 * 3 / 2 + 9 is _____. A) 21 B) 15 C) -6 D) 2.18 E) None of these
answer
15
question
Which of the following is not a variable data type? A) Number B) Integer C) Real D) String E) None of these
answer
Number
question
A(n) _____ is a name that represents a value that cannot be changed during the program's execution. A) Uninitialized variable B) Named variable C) Named constant D) Input variable E) None of these
answer
Named Constant
question
_____ documentation is a reference guide that describes the features of the program, designed for the user. A) Internal B) External C) Program D) Block E) Line
answer
External
question
The process where the programmer steps through each of the program's statements one by one is called _____. A) Hand tracing B) Debug C) Execute D) Run E) Checking
answer
Hand Tracing
question
The following is an example of what type of statement: Set rate = 5.75 A) Declaration B) Assignment C) Input D) Output E) None of these
answer
Assignment
question
Which of the following is not an actual programming language? A) C++ B) Visual Basic C) Java D) Pseudocode E) Python
answer
Pseudocode
question
What is the first step of the program development cycle? A) Write the code B) Correct syntax errors C) Debug the code D) Test the executable code E) Design the program
answer
Design the program
question
What term is used for a string that appears in the actual code of a program? A) String literal B) Virtual string C) Hard copy D) Strongly typed E) None of these
answer
String literal
question
True/False: Programmers start writing code as the first step when they begin a new project.
answer
false
question
True/False: The expressions (a + b) / c and a + b / c will always yield identical results.
answer
false
question
True/False: An uninitialized variable is a variable that has been declared and automatically initialized to zero.
answer
false
question
True/False: A named constant can be assigned a value using a Set statement.
answer
false
question
True/False: Ovals are used as terminal symbols marking the starting and end of the pseudocode.
answer
false
question
True/False: It has been proven by a group of mathematicians that all programs can be written using only three structures.
answer
true
question
True/False: A variable is a storage location in memory that is represented by a name and can hold different values during the execution of the program.
answer
true
question
True/False: Most programming languages do not automatically print spaces between multiple items that are displayed on the screen.
answer
true
question
True/False: If you mistakenly write pseudocode into an editor for an actual programming language, such as Python or Visual Basic, errors will result.
answer
true
question
True/False: Programmers use pseudocode to create "mock-ups" of programs because they do not have to worry about syntax rules.
answer
true