(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.
Str1 = "abc";...
Which of the following is not a phase of the program-design process?
An "if" structure inside another "if" structure is called a:
(T F) A function is invoked by a function call.
Which of the following data types may be used in a switch statement?
A variable assigned int can produce a number with decimals.
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 of the following code? ...
The identifiers in the system-provided header files such as iostream,...
Call-by-reference should be used
An algorithm is
What is the value of x after the following code fragment executes? ...
The following code: ...
Assume you have the following declaration char nameList[100];. Which...
What is the output produced by the following segment of code?...
It is possible when using a while loop that the body of the loop will...
The expression static_cast(3) is called a
If you need to write a function that will compute the cost of some...
The statement num is less than 10 or num is greater than 50 in C++ is...
If the user types in the characters 10, and your program reads them...
Which boolean operation is described by the following table?...
A cin statement sends output to the computer screen.
Testing your program should be done
If an & is attached after the data type of a formal parameter,...
In C++, you declare a pointer variable by using the ____ symbol.
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...
// will allow you to make a multiple line comment.
Information Hiding is analogous to using
Which of the following is not part of the Software Life Cycle?
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?
The set of instructions that a computer will follow is known as:
A function that is associated with an object is called a _________...
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...
X = 10;...
Before using the data type string, the program must include the header...
A variable listed in a function call is known as a(n) _____...
X = 6...
Which of the following is not an example of a program bug?
If a function needs to modify more than one variable, it must
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? ...
The body of the main program is enclosed in parentheses.
After a stream is opened, before it is used for input and output, it...
Given the following statements: ...
Int j,...
What is the output of the following code? ...
What is wrong with 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?
...