C++ Programming
COMMENTS AND INDENTATION MCQs
Total Questions : 11
Page 1 of 2 pages Answer is 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 is 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 is 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 is 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 is 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 is Option A. -> distinguishes between comments and code
None.
Answer is Option A. -> /* ---- */
The /* is used to write the multi line comment.
Answer is Option C. -> compile time error
Because the slash should need to be forward not backward.
Answer is Option A. -> comments are parts of the source code disregarded by the compiler
Comments are used to add meaning to the program.
Answer is Option C. -> single line and multi line
None.
Recent Questions
Q. In Each Question, The First And The Last Sentences Of The Pa....
Q. His Death Is A Great Blow, Most Terrible To . . . . . . . .
Q. Azure Blob Storage Offers How Many Storage Tiers?
Q. Find Out Whether There Is Any Grammatical Error In Below Sen....
Q. In Power Point, This Is A Container For Text Or Graphics.
Q. Symmetric Multiprocessing (SMP) Architectures Are Useful For....
Q. It Is An Instrument That Entitles The Holder To A Proportio....
Q. In Each Question Below A Sentence Broken Into Four Or Five P....
Q. The Playground Of Lawn Tennis Is Called
Q. How Many Numbers (N) Can We Have, Such That 100<N<1000....
Q. a Button That Makes Characters Either Upper Or Lower Case ....
Q. the Area Of A Rectangle Is 45 Cm². If Its Length Is 9 Cm,....
Q. Which Of The Following Presentation Elements Can You Modify ....
Q. Di....
Q. Adversity
Q. 1 U = _______ Nanokatals.
Q. The Manner In Which Bombs Exploded In Five Trains With In A ....
Q. Spiny Seeds With Hooks are Dispersed By Animals.
Q. The Process Of Improving The Cutting Action Of The Grinding ....
Q. To Meet The Educational Needs Of The People, The Madarasa-I ....