Q.1.

Reference variables and const class member

Q.2.

_____ variables remain in memory until the statement block ends

Q.3.

Which of the following statements is false?

Q.4.

A function that is prototyped as double calculate(int num); may______

Q.5.

If a base class member is private, then

Q.6.

Assume you want to compare the character stored in the initial variable to the letter a. Which of the following conditions should you use in the if statement? (Be sure the condition will handle a or A.)

Q.7.

Passing a variable pointer as a constant _____

Q.8.

Which of the following instructions tells C++ to merge the source code from the iostream.h file into the current file?

Q.9.

You can override a class's inherited access to make an individual member's access more ______

Q.10.

To hide a data member from the program, you must declare the data member in the _____ section of the class

Q.11.

Library header files usually contain

Q.12.

The C++ operator used to allocate memory is _________

Q.13.

Which of the following stream manipulators advances the cursor to the next line on the computer screen?

Q.14.

With communicational cohesion

Q.15.

The delete operator returns ______ to the operating system

Q.16.

If an exception is thrown and no catch block matches the type of the thrown parameter, then _____

Q.17.

External documentation includes

Q.18.

A C++ term meaning "generic" is

Q.19.

Assume that your version of C++ can recognize only the first 8 characters of an identifier name, through identifier names may be arbitrarily long. Which of the following identifier names is not distinct:

Q.20.

6.5 is a _____ constant

Q.21.

The function printDataMembers() is mot likely a(n) ________

Q.22.

The major advantage of data hiding is that _____

Q.23.

The comma operator (,) is used to

Q.24.

The instruction "If it's raining outside, then take an umbrella to work" is an example of the _____ structure

Q.25.

A function that is called automatically each time an object is created is a(n)

Q.26.

Before object-oriented exception handling was practiced, _____

Q.27.

The String data type is an extension of the _____ data type

Q.28.

When you define an object that is a member of a class, such as Student Abby; _____

Q.29.

The break statement is

Q.30.

You may override the class access specifier for_____

Q.31.

The comma operator (,) is primarily used in conjunction with

Q.32.

Object is to class as _____

Q.33.

The time and memory involved in calling a function represent the function's _____

Q.34.

The data type listed at the beginning of a value-returning function's header indicates the type of data the function will _____

Q.35.

The letter V is a _____

Q.36.

A function that is called automatically each time an object is created is a(n)

Q.37.

The functions go in the _____ section of a class definition

Q.38.

Which of the following statements will assign the address of the age variable to the agePtr pointer?

Q.39.

A variable's _____ indicates how long the variable remains in the computer's memory

Q.40.

The preprocessor directive always ends with

Q.41.

An advantage of using local variables is that _____

Q.42.

A program can directly access the _____ members of a class

Q.43.

A variable w with a valuemay be defined with _______

Q.44.

The null character needs a space of

Q.45.

To execute a C++ program, you first need to translate the source code into object code. This process is called

Q.46.

A derived class may also be called a

Q.47.

Which function is most likely to have procedural cohesion?

Q.48.

The code class Descendant : virtual public Ancestor indicates that

Q.49.

When all of the operations in a function contribute to the performance of only one task, a function has

Q.50.

Separating parts of a program into units that remain unaffected by other parts of a program is the concept known as _____