Q.1.

Assume that a program contains a programmer-defined void function. When C++ encounters the function's closing brace (}), C++ returns to the statement _____

Q.2.

Which of the following is not a programming control structure?

Q.3.

A _____ is a single item of information about a person, place, or thing

Q.4.

A major advantage of inheritance is

Q.5.

The last statement in a function is often a(n) _____

Q.6.

To create and execute a C++ program, you need to have access to

Q.7.

If you omit any constructor argument when you instantiate an object, you must use default values______

Q.8.

The loop condition in a flowchart is represented by a(n) _____

Q.9.

Which of the following, if any, are invalid names for a variable?

Q.10.

To use a template class member function, use the ________ with the instantiation

Q.11.

When a class is derived from another derived class, the newly derived class

Q.12.

Which of the following are valid characters constants?

Q.13.

The most common operation used in constructors is

Q.14.

Inheritance occurs when a class adopts all the traits of _________

Q.15.

The bitwise OR operator is a

Q.16.

Which (if any) of the following is NOT a programmer-defined type

Q.17.

When a variable exists or is accessible, it is said to be _____

Q.18.

The feature that allows the same operations to be carried out differently depending on the object is _____

Q.19.

When the function int someFunction(char c) throw( ) is executed, _____

Q.20.

The two statements that can be used to change the flow of control are

Q.21.

Many programmers separate a class into two files: _____

Q.22.

Inheritance is the principle that

Q.23.

If you assign a default value to any variable in a function prototype's parameter list, then _____

Q.24.

The dot operator (or class member access operator) connects the following two entities (reading from left to right):

Q.25.

With a template class, _____ type is generic

Q.26.

If you want to use a class to define objects in many different programs, you should define the class in a C++ _____ file

Q.27.

In a simple 'if' statement with no 'else'. What happens if the condition following the 'if is false?

Q.28.

If two types of errors may be thrown, you should write _______

Q.29.

Template classes that have already been written to perform common class tasks are called _____

Q.30.

A class Stockltems has four data members and three function members. You defineobjects as members of the class. Which is true?

Q.31.

The continue statement should be written only

Q.32.

Assume a program contains a void function named displayName, which requires no formal parameters. Which of the following is a correct function prototype for this function?

Q.33.

Which of the following is a C++ class?

Q.34.

If p and q are assigned the values 2 and 3 respectively then the statement p = q++

Q.35.

A file pointer always contains the address of the file

Q.36.

You declare a function with a function _____, which is typically entered at the beginning of the program, below the #include directives

Q.37.

Precedence determines which operator

Q.38.

Which of the following is the insertion operator?

Q.39.

If no constructors can specified for a derived class, objects of the derived class will use the constructors in the base class

Q.40.

The get() function returns _____

Q.41.

The most efficient data type for a variable that the numberis the _____ data type

Q.42.

The number 5.5e3 is a _____ constant

Q.43.

The compiler determines the type used in a template function via ___________

Q.44.

Simple routines that programmers use as place holders while a system is being tested are called _____

Q.45.

The variables declared in a statement block or listed in a function header's parameterlist are considered _____ variables

Q.46.

In C++, the address operator is the following symbol _____

Q.47.

Within a program, you can instantiate ________that have a class template type

Q.48.

Assume that a variable will need to store only integers in the range of 1 throughThe most efficient data type for the variable is _____

Q.49.

You construct a class in two sections, known as the _____

Q.50.

You can place function templates