C++ Programming
REFERENCES MCQs
Total Questions : 37
Page 1 of 4 pages Answer is Option B. -> 4 4 7
Answer is Option D. -> It will result in a compile time error.
Answer is Option D. -> It will result in a compile time error.
Answer is Option E. -> It will result in a compile time error.
Answer is Option C. -> The program will print output 4 8.
Answer is Option A. -> we can not create the array of reference.
None.
Answer is Option A. -> Hello world
In this program we used the concept of constant casting to cast the variable and printing it.
Output:
$ g++ ref2.cpp
$ a.out
Hello world
Answer is Option B. -> 10
The value is declared and it is post incremented, so it's value is 10.
$ g++ ref1.cpp
$ a.out
10
Answer is Option B. -> Alternate name for the variable
Because we are pointing memory address using temp variable
Answer is Option A. -> In swap 105 In main 105
As we are calling by reference the values in the address also changed. So the main and swap
values also changed.
Output:
$ g++ ref.cpp
$ a.out
In swap 105 In main 105
Recent Questions
Q. Which State/UT Launched The 'Tourist Village Network' To Pro....
Q. Which Of The Following Transaction Can Be Used To Create T-c....
Q. Organizing Taxonomic Information In Logical Classification I....
Q. Rolling Friction Is Caused By ________
Q. A Stone Is Whirled In A Vertical Circle, The Tension In The ....
Q. In A Tropical Year, The Number Of Sidereal Days, Are
Q. Synonym Of UNIFORMITY
Q. Statement: It Is Estimated That About Twenty Lakh People Wi....
Q. Which Logic Gates Output A 1 If Their Inputs Are 0 And 1?
Q. An Action Potential Is Caused By An Influx Of _____ Ions Int....
Q. Force Exerted By Magnetic Field In Hall Effect Transducers I....
Q. The Factors Which Are To Be Considered While Developing A Go....
Q. Blood Group Which Have No Antigen
Q. Threshold Limit Value Of Copper In The Atmospheric Air Is
Q. When Libya Gave Up Its Nuclear Program?
Q. How Much Amount Has Been Extended By The EXIM Bank As The Li....
Q. A Second Order System Exhibits 100% Overshoot. The Damping R....
Q. Which Are The Special Tags Used For Image Mapping?
Q. Indict
Q. Two Perfectly Elastic Spheres Of Equal Mass Moving In The ....