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.
You desk-check an algorithm to verify that it is not missing any steps...
The file containing the source code is called the source file.
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...
Eliminating errors at the pencil and paper stage makes it much easier...
In a flowchart, the switch diamond contains an expression whose value...
You can include as many case clauses as necessary in a switch...
High-level languages are a vast improvement over machine and assembly...
Some algorithms require selection structures that are capable of...
Each variable you declare in a program has both a value and a unique...
In C++, you use the if statement to code the if and if/else forms of...
A class definition contains two sections: a declaration section and an...
Programs written in a high-level language can be used in many...
Before you begin the desk-check, you first choose a set of sample data...
A local variable can be used only within the statement block in which...
When writing a do-while loop in C++, if more than one statement needs...
Programmers refer to the process of verifying that the input data is...
In a repetition structure, when the loop condition evaluates to false,...
When you pass a literal constant, a keyword, a named constant, or a...
The objects used in an object-oriented program can take on many...
You should perform several desk-checks, using different data, to make...
Names in C++ are case sensitive.
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...
You should test an algorithm with invalid data because users sometimes...
The data type and position of each formal parameter in the...
Large and complex programs are typically written by a team of...
When writing a procedure-oriented program, the programmer concentrates...
The ability to use an object for more than one purpose saves...
When used in a program, the repetition structure directs the computer...
Variables declared using the string data type usually are initialized...
When the loop condition in a posttest loop evaluates to true, the...
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...
Most algorithms begin with an instruction that enters the input items...
When coding the while statement, some C++ programmers include the...
It is a good programming practice to use a comment, such as //end...
The check boxes, list boxes, and buttons included in most Windows...
You should use a posttest loop only when you are sure that the loop...
Int sales = 0;int region = 1;int totRegSales = 0;while (region <...
When generating pseudo-random numbers, a seed is an integer that...
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...
In C++, x++ is equivalent to x = x + 2;
A C++ program cannot contain more than one function.
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.
If an expression contains more than one operator having the same...
In a flowchart, the if/else and switch selection structures are...
A string variable is not an object.
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...
Sequential access files must use the "txt" filename...
Objects created from a class are referred to as children of the class....
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...
The difference between a pretest and posttest loop is that in the...
A function header is considered a statement in C++.
After creating the program, the programmer desk-checks the program;...
A value-returning function can return multiple values after completing...
You might want to use a value-returning function in a program simply...
Unless specified otherwise, scalar variables in C++ are passed by...
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...
And if selection structure contains two sets of instructions: one set...
In a flowchart, the switch diamond contains a condition requiring a...
Depending on the result of the evaluation, the instructions in a...