Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

9. Consider the following functions: What is the output of each of the following

ID: 3802256 • Letter: 9

Question

9. Consider the following functions:

What is the output of each of the following program segments?

10. What is the output of the following code fragment?

int alpha = 5;
int beta = 10;

if (beta >= alpha)
{
     int alpha;
     int temp;

     alpha = 20;
     temp = beta - alpha;
     beta = beta * temp;
     cout << alpha << ' ' << beta << endl;
}
cout << alpha << ' ' << beta << endl;

11. Consider the following function prototype:

void funcDefaultParam(double x = 7.3, int y = 4, string z = "*");

Which of the following function calls is correct?

funcDefaultParam();

funcDefaultParam(2.8);

funcDefaultParam(3.2, 0, "h");

funcDefaultParam(9.2, "*");

funcDefaultParam(7, 3);

Explanation / Answer

Return secret 20160 <---------ANS

cout<<find(10,10)<<""<<discover(10,find(10,10))<<endl;

Will print : 20     213837312

cout << discover(x, y) << endl;

Will print: 1

Dear friend ,

as per chegg policy we are allowed to answer single question and maximum 4 subquestion of one part. For other question also I believe above explnation will help you.