C++ Programming
FUNCTION DECLARATIONS MCQs
Total Questions : 9
Answer is Option B. -> 1
The main function is the mandatory part, it is needed for the execution of the program to start.
Answer is Option B. -> only inside the {} block
The variable is valid only in the function block as in other.
Answer is Option A. -> 10
In this program, we called by value so the value will not be changed, So the output is 10
Output:
$ g++ fun.cpp
$ a.out
10
Answer is Option C. -> compile time error
We have to use the semicolon to declare the function in line 3. If we did means, the program
will execute.
Answer is Option B. -> call by reference
In the call by reference, it will just copy the address of the variable to access it, so it will reduce
the memory in accessing it.
Answer is Option D. -> 127
None.
Answer is Option B. -> main function
Normally the execution of the program in c++ starts from main only.
Answer is Option C. -> ;
None.
Answer is Option A. -> return type,function name
In a function, return type and function name are mandatory all else are just used as a choice.
Recent Questions
Q. According To The Affordable Care Act, Children Can Be On The....
Q. A Truncated Polypeptide Is Synthesized Due To A Nonsense Mut....
Q. How Do The British Economists And Political Scientists React....
Q. Which Of The Following Is Not A Product Of Anaerobic Digesti....
Q. The Ratio For The Rate Of Washing To The Final Rate Of Filtr....
Q. To Turn On UJT, The Forward Bias On The Emitter Diode Should....
Q. Which Of The Following IR Radiation Is Used In Measuring Rel....
Q. The Hottest Part Of The Gas Flame Is Known As
Q. Ethyl Alcohol Cannot Be Produced
Q. Which Of The Following Can Be Correct Conclusion Drawn From ....
Q. ISS Is Less Sensitive Than Which Of The Following?
Q. Which Of The Following Is The Most Effective Inhibitor Of Gr....
Q. A Metallic Alloy In Which One Of The Constituent Metal Is __....
Q. Defense Department Analysts Worry That The Ability Of The Un....
Q. S1: If You Want To Do Well In Your Examinations You Need To ....
Q. Which One Of The Following Is Also Known As Solution ?
Q. (0.1667)(0.8333)(0.3333) Is Approximately Equal To: ....
Q. IR Is The Study Of
Q. if The Radius Of A Sphere Is Increased By 2 Cm, Then Its S....
Q. Statement I: When Water Is Heated, We See bubbles In It....