Question # 1 of 10 ( Start time: 02:17:54 PM )
Total Marks: 1
By default, the starting index of an array in C++ is
_______.
Select correct option:
2
-1
0
1
Question # 2 of 10 ( Start time: 02:19:01 PM )
Total Marks: 1
We can define a matrix as__________ array.
Select correct option:
Sorted
Unsorted
Single dimensional
Multi dimensional
Question # 3 of 10 ( Start time: 02:19:52 PM )
Total Marks: 1
We can access a global variable ___________
Select correct option:
From the functions only
From the loops only
From the main() function only
From anywhere in the program
Question # 4 of 10 ( Start time: 02:21:00 PM )
Total Marks: 1
A function’s prototype is written __________the function
call.
Select correct option:
After
Before
With
At the end of
Question # 5 of 10 ( Start time: 02:22:23 PM )
Total Marks: 1
Which of the function call is call by value for the
following function prototype? float add(int);
Select correct option:
add(&x);
add(x);
add(int x);
add(*x);
Question # 6 of 10 ( Start time: 02:23:22 PM )
Total Marks: 1
+= , *= , /= , etc are called,
Select correct option:
Assignment operators
Logical operator
Compound assignment operator
Unary operator
Question # 7 of 10 ( Start time: 02:24:02 PM )
Total Marks: 1
What is the output of the following code if the 2nd case
is true switch (var) { case ‘a’: cout”apple”endl; case ‘b’: cout”banana”endl;
case ‘m’: cout”mango”endl; default: cout”any fruit”endl; }
Select correct option:
banana
banana any fruit
banana mango anyfruit
none of the above
Question # 8 of 10 ( Start time: 02:25:00 PM )
Total Marks: 1
In C/C++, by default arguments are passed by _______ to a
function.
Select correct option:
Reference
Value
Size
Data
Question # 9 of 10 ( Start time: 02:25:19 PM )
Total Marks: 1
What will be the value of ‘a’ and ‘b’ after executing the
following statements? int a = 9; int b = a++; cout/p>
Select correct option:
10,9
9,10
9,9
10,10
Question # 10 of 10 ( Start time: 02:26:43 PM )
Total Marks: 1
What is the output of the following code if the 3rd case
is true switch (var) { case ‘a’: cout”apple”endl; case ‘b’: cout”banana”endl;
case ‘m’: cout”mango”endl; default: cout”any fruit”endl; }
Select correct option:
mango
mango any fruit
apple
none of the above
Comments
Post a Comment
Please give us your feedback & help us to improve this site.