![]() Related Questions Write one statement equivalent to the following two statementsx=sqr(a);return(x);Choose from one of the alternativesa.return(sqr(a));b.printf("sqr(a)");c.return(a*a*a);d.printf("%d",sqr(a)); D Cond 1?cond 2?cond 3?:exp 1:exp 2:exp 3:exp 4;is equivalent to which of the following?a.if cond 1exp Cond 1?cond 2?cond 3?:exp 1:exp 2:exp 3:exp 4;is equivalent to which of the following?a.if cond 1exp 1;else if cond 2exp 2;else if cond 3exp 3;elseexp 4;b.if cond 1if cond 2if cond 3exp 1;else exp 2;else exp 3;else exp 4;c.if cond 1 && cond 2 && cond 3exp 1 |exp 2|exp 3|exp 4; d.if cond 3exp 1;else if cond 2exp 2;else if cond 3exp 3;elseexp 4; D What is incorrect among teh followingA recursive functiiona.calls itselfb.is equivalent to a loopc.has a termination condd.does not have a return value at all B Write one statement equivalent to the following two statements: x=sqrA.; return(x);Choose from one of the alternativesA. return(sqrA)B. printf("sqrA.")C. return(a*a*a)D. printf("%d",sqrA.) Read the function conv() given belowconv(int t){int u;u=5/9 * (t-32);return(u); }What is returnedA. 15B. 0C. 16.1D. 29 Which of the following is not an infinite loop?A. while(1){ ....}B. for(;;){...}C. x=0; do{ /*x unaltered within the loop*/ .....}while(x = = 0);D. # define TRUE 0 ... while(TRUE){ ....} Latest Answer : '9' is a charecter constant ... Read the following code# define MAX 100# define MIN 100 .... ....if(x>MAX)x=1;else if(x Cond 1?cond 2?cond 3? exp 1:exp 2:exp 3:exp 4; is equivalent to which of the following?A. if cond 1 exp 1; else if cond 2 exp 2; else if cond 3 exp 3; else exp 4;B. if cond 1 if cond 2 if cond 3 exp 1; else exp 2; else exp 3; What does the following code do?fn(int n, int p, int r){static int a=p;switch(n) { case 4:a+=a*r; case 3:a+=a*r; case 2:a+=a*r; case 1:a+=a*r; }}A. computes simple interest for one yearB. computes amount on compound interest for 1 to 4 yearsC. computes simple interest for four yearD. computes compound interest for 1 year
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||