1.  How many minimum number of functions are need to be presented in c++ ?


0.
1
2
3


Answer

 Option

The main function is the mandatory part, it is needed for the execution of the program to start.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

2.  How many types of returning values are present in c++ ?


1
2
3
4


Answer

 Option

The three types of returning values are return by value, return by reference and return by address.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

3.  What is the output of this program ?
#include
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;
}


10
20
compile time error
none of the mentioned


Answer

 Option

In this program, we called by value so the value will not be changed, So the output is 10

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

4.  How many max number of arguments can present in function in c99 compiler ?


99
90
102
127


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

5.  which of the following is used to terminate the function declaration ?


:
)
;
none of the mentioned


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report