a) 0 b) 1 c) 2 d) 3 Answer: b Explanation: The execution of a C++ program starts from ...
View QuestionWhat is the scope of the variable declared in the user defined function?
a) whole program b) only inside the {} block c) the main function d) header section Answer: ...
View Question
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
void fun(int x, int y)
{
x = 20;
y = 10;
}
int main()
{
int x = 10;
fun(x, x);
cout << x;
return 0;
}
What will be the output of the following C++ code? #include <iostream> ...
View Question
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
void mani()
void mani()
{
cout<<“hai”;
}
int main()
{
mani();
return 0;
}
What will be the output of the following C++ code? #include <iostream> ...
View QuestionWhich is more effective while calling the functions?
a) call by value b) call by reference c) call by pointer d) call by object Answer: b Explanation: ...
View QuestionHow many can max number of arguments present in function in the c99 compiler?
a) 99 b) 90 c) 102 d) 127 Answer: d Explanation: C99 allows to pass a maximum of ...
View Questionwhich of the following is used to terminate the function declaration?
a) : b) ) c) ; d) ] Answer: c Explanation: ; semicolon is used to terminate ...
View QuestionWhat are mandatory parts in the function declaration?
a) return type, function name b) return type, function name, parameters c) parameters, function name
View QuestionWhere does the execution of the program starts?
a) user-defined function b) main function c) void function d) else function Answer: b Explanation: ...
View QuestionWhich looping process is best used when the number of iterations is known?
a) for b) while c) do-while d) all looping processes require that the iterations ...
View Question