Programmers use a variety of special languages, called programming...
You use the selection structure when you want a program to make a...
The binary number system uses only the two digits 0 and 1.
The file containing the source code is called the source file.
You desk-check an algorithm to verify that it is not missing any steps...
If different sections of a program need to perform the same task, it...
You use the selection structure when you want a program to make a...
Functions allow the programmer to avoid duplicating code in different...
You can include as many case clauses as necessary in a switch...
Eliminating errors at the pencil and paper stage makes it much easier...
In a flowchart, the switch diamond contains an expression whose value...
Some algorithms require selection structures that are capable of...
Each variable you declare in a program has both a value and a unique...
High-level languages are a vast improvement over machine and assembly...
A class definition contains two sections: a declaration section and an...
In C++, you use the if statement to code the if and if/else forms of...
When writing a do-while loop in C++, if more than one statement needs...
A local variable can be used only within the statement block in which...
Before you begin the desk-check, you first choose a set of sample data...
Programs written in a high-level language can be used in many...
The objects used in an object-oriented program can take on many...
When you pass a literal constant, a keyword, a named constant, or a...
Programmers refer to the process of verifying that the input data is...
In a repetition structure, when the loop condition evaluates to false,...
A repetition structure can be either a pretest loop or a posttest...
The creation of a good class, which is one whose objects can be used...
Names in C++ are case sensitive.
You should perform several desk-checks, using different data, to make...
The data type and position of each formal parameter in the...
You should test an algorithm with invalid data because users sometimes...
Large and complex programs are typically written by a team of...
The ability to use an object for more than one purpose saves...
When writing a procedure-oriented program, the programmer concentrates...
When the loop condition in a posttest loop evaluates to true, the...
When used in a program, the repetition structure directs the computer...
A data type ranks higher than another data type if it can store larger...
A class encapsulates all of the attributes and behaviors that describe...
Variables declared using the string data type usually are initialized...
Most algorithms begin with an instruction that enters the input items...
It is a good programming practice to use a comment, such as //end...
When coding the while statement, some C++ programmers include the...
The check boxes, list boxes, and buttons included in most Windows...
When generating pseudo-random numbers, a seed is an integer that...
Int sales = 0;int region = 1;int totRegSales = 0;while (region <...
You should use a posttest loop only when you are sure that the loop...
Programmers typically desk-check a program using the same sample data...
A loop condition must result in either a true or false answer only....
Passing an array by reference is more efficient than passing it by...
The C++ compiler treats all numeric literal constants containing a...
A C++ program cannot contain more than one function.
In C++, x++ is equivalent to x = x + 2;
You can find the sequence structure in every program.
Errors in a program are called hacks.
A variable can store only one value at a time.
When creating a computer solution to a problem, the first three steps...
In C++, the switch statement ends with a square bracket ( ] ).
You should never use the equality operator to compare two...
There are no differences between the syntax of a value-returning...
The assembly languages represent the only way to communicate directly...
Comments are statements in C++.
In C++, you can have an else clause without matching the if clause....
Logic errors are easier to find than syntax errors.
The false path of a selection structure cannot include other selection...
Desk-checking is also called pencil-tracing.
The newline character in C++ is '\N'.
Class names in C++ must use the Pascal case.
A string variable is not an object.
In a flowchart, the if/else and switch selection structures are...
If an expression contains more than one operator having the same...
You can use program-defined functions to replace the main() function....
In C++, comparisons with a precedence number of 2 are performed before...
When nesting selection structures, you can interchangeably put the...
Passing a variable's address to a function is referred to as passing...
Objects created from a class are referred to as children of the class....
Sequential access files must use the "txt" filename...
The evaluation of the condition in a pretest loop occurs after the...
In most programming languages, the names of processing items can...
The second argument in the for clause usually contains an expression...
When planning an algorithm, you need to create both a flowchart and...
Pseudocode is standardized among programmers.
You pass a variable by reference when the receiving function needs to...
All objects in C++ are created from a class and are referred to as...
A function header is considered a statement in C++.
The difference between a pretest and posttest loop is that in the...
Unless specified otherwise, scalar variables in C++ are passed by...
You might want to use a value-returning function in a program simply...
A value-returning function can return multiple values after completing...
After creating the program, the programmer desk-checks the program;...
It is easy to detect if you have incorrectly used a logical operator...
An accumulator is always incremented by a constant value, whereas a...
Few C++ programmers enter the function definitions below the main()...
The top-down design divides a problem into one or more objects.
Unless you specify otherwise, variables in C++ are automatically...
Depending on the result of the evaluation, the instructions in a...
In a flowchart, the switch diamond contains a condition requiring a...
And if selection structure contains two sets of instructions: one set...