Chapter 1
The programming process consists of several steps, which include:
design, creation, testing, and debugging
A variable declaration announces the name of a variable that will be used in a program, as well as:
the type of data it will be used to hold
In programming, the terms "line" and "statement" always mean the same thing.
False
Syntax is:
Rules that must be followed when writing a program
Which of the following is a preprocessor directive? // This program calculates the user's pay. pay = hours * rate; cin >> rate; #include <iostream> int main( )
#include <iostream>
What statement best describes a variable and its primary purpose?
A variable is a named storage location in the computer's memory used for holding a piece of information.
This is a software entity that contains data and procedures.
An object
The purpose of validating the results of the program is:
To determine whether the program solves the original problem
These are collections of programming statements that perform a task.
procedures or functions
Programmer-defined names of memory locations that may hold data are:
variables