1 |
UNIX has been developed in ________ language |
JAVA
B
C
FORTRAN
|
2 |
The return type of a function that do not return any value must be ________. |
float
int
void
double
|
3 |
If there is more than one statement in the block of a for loop, which of the following must be placed at the beginning and the ending of the loop block? |
parentheses ( )
braces { }
brackets [ ]
arrows < >
|
4 |
If it is required to copy an array to another array then. |
Both arrays must be of the same size and data type
Both arrays may be of different size
Both arrays may be of different data type
Both arrays may be of different size and type
|
5 |
New and Delete are also used with ___________ and data types as well. |
Class, Objects
Structures, Pointers
Both Class and structures
None of above
|
6 |
When an object of a class is defined inside another class then, |
Destructor of enclosing class will be called first
Destructor of inner object will be called first
Constructor and Destructor will be called simultaneously
None of the given options
|
7 |
New operator is used to allocate memory from the free store during |
Compile Time
Run Time
Link Time
None of the given options
|
8 |
What purpose do classes serve? |
Data encapsulation
Providing a convenient way of modeling real-world objects
Simplifying code reuse
All of the given options
|
9 |
The default value of a parameter can be provided inside the ________________ |
function prototype
function definition
both function prototype or function definition
none of the given options
|
10 |
If there is a symbol (& sign) used with the variable name followed by data type then it refers to _____ and if & is being used with variable name then it refers to _____. |
Address of variable, reference variable
Reference variable, value of variable
Reference variable, address of variable
Address of variable, value of variable
|