Call-by-Reference
Call-by-Value
Call-by-Pointer
None of the above
B. Call-by-Value
True
False
Compare two numeric values
Combine two numeric values
Compare two Boolean values
Combine two Boolean values
True
False
‘has-a’ relationship
‘is-a’ relationship
association relationship
none of the above
Only from the base class itself
Both form the base class and from its derived classes
From the class which is friend of the base class
None of the above are correct
A constant
A variable
A structure
A header file
The for statement itself
The closing brace in a multi-statement loop body
Each statement within the loop body.
The test expression
True
False
From the point of definition onwards in the program
From the point of definition onwards in the function
From the point of definition onwards in the block
Throughout the function
->
dot operator
::
>>
string constants in your program
program statements in string form
variables whose type is of string
none of the above
try block
throw exception
catch function
abort()
True
False
Structure member
Structure tag
Structure variable
The keyword struct.
True
False
if-else statement
wild cards
no meaning in C++
returns the value
references are pointers
array of references can be created
you can not reference a reference variable
all of the above
declaring them private
by default they are private
by declaring them in the beginning of the program immediately after main()
they are always public
The return type
The number and type of arguments
The class of a function
None of the above
-a
-o
-c
none of these
True
False
True
False
True
False
True
False
Automatic assignment of data to object during instantiation
Automatic call of a function
To declare a local variable
It is not a keyword in C++
::
;
<<
->
True
False
The loop in which it occurs
The block in which it occurs
The function in which it occurs
The program in which it occurs
You can define your data types
Program statements are simpler than in procedural languages.
An OO program can be taught to correct its own errors.
It's easier to conceptualize an OO program.
All variables must be declared before they are used
Variables in C++ need not be declared and the type can be assigned dynamically
Variables in C++ can be declared at the end of the program (before the main function terminates)
Variables can not be used explicitly in C++