C Programming What will be the value of sum after the following program is executed?void main(){ int sum=1, index = 9; do{ index = index – 1; sum *= 2; }while( index > 9 );} 0.5 9 2 1 0.25 0.5 9 2 1 0.25 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the output of the following statements?int i = 0;printf("%d %d", i, i++); 1 0 1 1 0 1 None of these 0 0 1 0 1 1 0 1 None of these 0 0 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which operator from the following has the lowest priority? Conditional operator Division operator Comma operator Assignment operator Unary-operator Conditional operator Division operator Comma operator Assignment operator Unary-operator ANSWER DOWNLOAD EXAMIANS APP
C Programming Size of the array need not be specified, when It is a declaratrion It is a formal parameter Initialization is a part of definition All of these It is a declaratrion It is a formal parameter Initialization is a part of definition All of these ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the following code's output if choice = 'R'?switch(choice){ case 'R' : printf("RED"); case 'W' : printf("WHITE"); case 'B' : printf("BLUE"); default : printf("ERROR");break;} ERROR RED WHITE BLUE ERROR RED RED WHITE BLUE RED ERROR ERROR RED WHITE BLUE ERROR RED RED WHITE BLUE RED ERROR ANSWER DOWNLOAD EXAMIANS APP
C Programming Pick the correct statements.I. The body of a function should have only one return statement.II. The body of a function may have many return statements.III. A function can return only one value to the calling environment.IV. If return statement is omitted, then the function does its job but returns no value to the calling environment. III and IV I and II II and III I and III II and IV III and IV I and II II and III I and III II and IV ANSWER DOWNLOAD EXAMIANS APP