You define a structure type globally because
A. you save many lines of code by not rewriting an identical structure definition in each function that uses it
B. you will never change its definition
C. it is required in C++
D. all of the above
Select an option to see the answer and solution.
The standard output stream, which refers to the computer screen, is called
A. cin
B. cout
C. stin
D. stout
E. None of the above
Select an option to see the answer and solution.
Which of the following operators is the equality operator?
Select an option to see the answer and solution.
In C++, you use _____ to perform standard input and output operations
A. characters
B. sequences
C. streams
D. tests
Select an option to see the answer and solution.
Values that are used to end loops are referred to as _____ values
A. end
B. finish
C. sentinel
D. stop
Select an option to see the answer and solution.
Which of the following flowchart symbols represents the if selection structure?
A. diamond
B. hexagon
C. oval
D. parallelogram
E. rectangle
Select an option to see the answer and solution.
Two or more arrays whose elements are related by their position (subscript) in the arrays are called _____ arrays
A. horizontal
B. paired
C. parallel
D. related
E. vertical
Select an option to see the answer and solution.
Assume that a program creates and initializes a Short Integer variable named age and a pointer named agePtr, to which it assigns the address of the age variable. Which of the following statements will assign the number 21 to the age variable?
A. age = 21;
B. *age = 21;
C. agePtr = 21;
D. *agePtr = 21;
E. both (a) and (d)
Select an option to see the answer and solution.
The statement fwrite ( (char*)&objl, sizeof(objl) );
A. writes the member functions of objl to fl
B. writes the data in objl to fl
C. writes the member functions and me data of objl to fl
D. writes the address of objl to fl
Select an option to see the answer and solution.
The body of a C++ function is surrounded by _____
A. parentheses
B. angle brackets
C. curly brackets
D. square brackets
Select an option to see the answer and solution.
Which of the following type casts will convert an Integer variable named amount to a Double type?
A. (double) amount
B. (int to double) amount
C. int to double(amount)
D. int (amount) to double
Select an option to see the answer and solution.
The loosest type of coupling is
A. data coupling
B. control coupling
C. external coupling
D. pathological coupling
Select an option to see the answer and solution.
Which of the following is a string literal constant?
A. "Visual C++"
B. "137.45"
C. "A"
D. "2,365"
E. All of the above
Select an option to see the answer and solution.
Which of the following, if any, are valid names for variables?
A. class
B. friend
C. #OnHand
D. void
E. None of the above are valid names for variables
Select an option to see the answer and solution.
A child class _____ exist if there is no parent class
Select an option to see the answer and solution.