Chapter 2
What is the first step in the program development cycle.
1. Design the program 2. Write the code 3. correct syntax 4. debug 5. test
The value of the expression 12-4 * 3/2+9 is _____. 15 2.18 none -6 21
15
The expression (a+b)/c and a+b/c will always yield identical results. t/f
False
What is another term for "desk checking"
Hand tracing
Which symbol is used for an assignment statement in a flowchart?
Processing
Which of the following is not a programming language. Python Java Pseudocode VisualBasic C++
Pseudococde
What is the informal language that programmers use to create models.
Pseudocode
What symbol is used to mark the beginning and end of a string?
Quotation
A _______ structure is a set of statements that execute in the order they appear.
Sequence
What term is used for a string that appears in the actual code of the program.
String Literal
A sequence of characters that is used as data is called a string in programming. t/f
True
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. t/f
True
If you mistakenly write pseudocode into an editor for an actual programming language, such as Python or Visual Basic, errors will result. t/f
True
Most programming languages do not automatically print spaces between multiple items that are displayed on the screen. t/f
True
The structure of the camelCase convention is to write the first word of the variable in lowercase letters and then to capitalize the first character of the second and subsequent words. t/f
True
Which mathematical operator is used to raise five to the second power / ^ MOD * ~
^
It has been proven that all programs can be written only using 3 structures. t/f
true
Programmers use pseudocode to make mock ups without needing to worry about syntax. t/f
true
Ovals are used as terminal symbols marking the starting and end of the pseudocode.
False that is for flowcharts
The program development cycle is made up of ____ steps that are repeated until no errors can be found in the program.
Five
The _____ is a diagram that graphically depicts the steps that take place in a program.
Flowchart
The process where the programmer steps through each of the programs statements one by one is called______.
Hand Tracing
Programmers start writing code as the first step when they begin a new project t/f
False
The following is an example of what type of statement. Set rate= 5.75
Assignment statement
Programmers start writing code as the first step when they begin a new project. t/f
False
_______ documentation is a reference guide that describes the features of the program.
External
A named constant can be assigned a value using a set statement. t/f
False
An uninitialized variable is a variable that has been declared and automatically initialized to zero. t/f
False
Which error produces incorrect results but does not prevent the program from running?
Logic
A _____ is a name that represents a value that cannot be changed during the programs execution.
Named Constant
Which of the following is not a variable data type. Number Integer Real String None
Number
