C Programming What will be the output of the given program?#includevoid main(){int value1, value2=100, num=100;if(value1=value2%5) num=5;printf("%d %d %d", num, value1, value2);} 100 0 100 100 5 100 100 100 100 5 0 100 5 0 20 100 0 100 100 5 100 100 100 100 5 0 100 5 0 20 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the right choice, if the following loop is implemented?void main(){ int num = 0; do{ --num; printf("%d", num); }while( ++num >= 0 );} A run time error will be generated. Prints the value of 0 one time only. There will be a compilation error reported. The loop will run infinitely many times. The program will not enter into the loop. A run time error will be generated. Prints the value of 0 one time only. There will be a compilation error reported. The loop will run infinitely many times. The program will not enter into the loop. ANSWER DOWNLOAD EXAMIANS APP
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 );} 1 0.25 2 0.5 9 1 0.25 2 0.5 9 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the final value of the digit?void main(){ int digit = 0; for( ; digit <= 9; ) digit++; digit *= 2; --digit;} -1 16 19 20 17 -1 16 19 20 17 ANSWER DOWNLOAD EXAMIANS APP
C Programming An array elements are always stored in ________ memory locations. None of these Random Sequential and Random Sequential None of these Random Sequential and Random Sequential ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following is a complete function? None of these void funct(int) { printf(“Hello"); } void funct(x) { printf(“Hello"); } int funct(); int funct(int x) { return x=x+1; } None of these void funct(int) { printf(“Hello"); } void funct(x) { printf(“Hello"); } int funct(); int funct(int x) { return x=x+1; } ANSWER DOWNLOAD EXAMIANS APP