MCQs
Total Questions : 11
| Page 1 of 2 pages
Answer: Option C. -> 2 15
We have passed three values and it will manipulate according to the given condition and yield the
result as 2 15.
Output:
$ g++ arg.cpp
$ a.out
2 15
Answer: Option A. -> It will not return value to its caller
As void is not having any return value, it will not return the value to the caller.
Answer: Option C. -> 13
The value of a has been changed to 7, So it returns as 13.
Output:
$ g++ arg1.cpp
$ a.out
13
Answer: Option D. -> 110
We have increased the x value in operand as x + 1, so it will return as 110.
Output:
$ g++ arg2.cpp
$ a.out
110
Answer: Option C. -> segmentation fault
As we have given in the function as a+1, it will exceed the size and so it arises the segmentation fault.
Output:
$ g++ arg3.cpp
$ a.out
segmentation fault
Answer: Option A. -> distinguishes between comments and code
None.
Answer: Option A. -> /* ---- */
The /* is used to write the multi line comment.
Answer: Option C. -> compile time error
Because the slash should need to be forward not backward.
Answer: Option A. -> comments are parts of the source code disregarded by the compiler
Comments are used to add meaning to the program.
Answer: Option C. -> single line and multi line
None.