1 |
For which array, the size of the array should be one more than the number of elements in an array? |
int
double
float
char
|
2 |
Skill(s) that is/are needed by programmer’s _______________________. |
Paying attention to detail
Think about the reusability
Think about user interface
All of the given options
|
3 |
What does STL stand for? |
Source template library
Standard template library
Stream template library
Standard temporary library
|
4 |
Default mechanism of function calling in case of array is _____ and in case of variable is ___. |
Call by value, call by reference
Call by referene, call by reference
Call by reference, call by value
Call by value, call by value
|
5 |
What is the sequence of event(s) when allocating memory using new operator? |
Only block of memory is allocated for objects
Only constructor is called for objects
Memory is allocated first before calling constructor
Constructor is called first before allocating memory
|
6 |
When we define an array of objects then |
Destructor will call once for whole array
Destructor will call for each object of the array
Destructor will never call
Depends on the size of array
|
7 |
Array is a data structure which store |
Memory addresses
Variables
Data Type
Data
|
8 |
When an array is passed to a function then default way of passing this array is |
By data
By reference
By value
By data type
|
9 |
In C/C++ if we define an array of size eight (8) i.e. int Arr [8]; then the last element of this array will be stored at |
Arr[0]
Arr[8]
Arr[7]
Arr[-1]
|
10 |
Which of the following option will be true, if we overload "-=" operator? |
only - operator needs to be overloaded
Minus (-) and = operators need to be overloaded
the -= operator need to be overloaded explicitly
the - and = operators need to be overloaded implicitly
|