(T F) Another way to created a running total other...
A library is a collection of program code that can be used by other...
(T F) The following symbols represent OR: ...
C++ programs should contain comments to explain the code.
What is the value of x after the following statements? ...
C++ is not case-sensitive.
Which of the following is not a phase of the program-design process?
Str1 = "abc";...
An "if" structure inside another "if" structure is called a:
(T F) A function is invoked by a function call.
A variable assigned int can produce a number with decimals.
Which of the following data types may be used in a switch statement?
What is the output of the following code? ...
When you type int main( ), it means that an integer will be returned.
What is the output of the following program fragment? ...
What is the output produced by the following segment of code?...
The following code: ...
What is the value of x after the following code fragment executes? ...
The identifiers in the system-provided header files such as iostream,...
An algorithm is
Call-by-reference should be used
Assume you have the following declaration char nameList[100];. Which...
The statement num is less than 10 or num is greater than 50 in C++ is...
If you need to write a function that will compute the cost of some...
The expression static_cast(3) is called a
If the user types in the characters 10, and your program reads them...
Testing your program should be done
It is possible when using a while loop that the body of the loop will...
In C++, you declare a pointer variable by using the ____ symbol.
A cin statement sends output to the computer screen.
Which boolean operation is described by the following table?...
If an & is attached after the data type of a formal parameter,...
Which boolean operation is described by the following table?
...
Which of the following would allow you to move to the next line:
The break statement:
Consider the following statement: double alpha[10][5];. The number of...
What is wrong with the following for loop? ...
When a void function is called, it is known as
When a void function is called, it is known as
If x is a char variable, which of the following are legal assignment...
What is the value of the following?
sqrt(pow(2,4));
(T F) A program can still run if it has a warning...
Which of the following is not part of the Software Life Cycle?
// will allow you to make a multiple line comment.
Information Hiding is analogous to using
Cin >> num;...
(T F) A semicolon is always placed after the...
What is the value returned by the following function? ...
A simplified version of a function which is used to test the main...
Libraries are included after the main function.
Which of the following is not a valid identifier?
A function that is associated with an object is called a _________...
The set of instructions that a computer will follow is known as:
Cout << fixed << showpoint;...
By using a \", you can create a quotation mark inside of a string.
Which of the following statements is NOT legal?
Cout << fixed << showpoint;...
Suppose that alpha is a double variable. Choose the value of alpha...
When parameters are passed between the calling code and the called...
If a function needs to modify more than one variable, it must
X = 10;...
A variable listed in a function call is known as a(n) _____...
Before using the data type string, the program must include the header...
X = 6...
Which of the following is not an example of a program bug?
A simplified main program used to test functions is called
X = 10;...
An array created during the execution of a program is called a(n) ____...
What is the value of x after the following statements? ...
The length of the string "Hello There. " is _____.
When a variable is local to a function, we say that it has ___ of the...
What is the output of the following function call? ...
What is the value of x after the following statement? ...
After a stream is opened, before it is used for input and output, it...
Int j,...
The body of the main program is enclosed in parentheses.
Given the following statements: ...
What is wrong with the following code? ...
What is the output of the following code? ...
When overloading a function, what must be true?
In C++, the dot is an operator called the _____ operator.
What is the output produced by the following segment of code?...
Given the following code, what is the final value of i? ...
Where S is a String, the difference between cin>>S; and getline...
Double sales [50];...
What is the output produced by the following segment of code?
...
Which of the following are equivalent to (!(x<15 &&...
What is the output of the following function and function call? ...
Count = 1;...
What is the value of x after the following statements?
...