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