Question: circle the correct answer and show the solution c programing 7. lntx=7,b=2 for (x=5;x>=1;x2) b=xi printf(%d, b): (a) 30 (b) 20 8. int a=5,c=1 do
7. lntx=7,b=2 for (x=5;x>=1;x2) b=xi printf("\%d", b): (a) 30 (b) 20 8. int a=5,c=1 do (c) 210 (d) none of the abov (c++; J while (a>0); printf("\%d", c); (a) 5 (b) 6 (c) 2 9. int x=5; (d) none of the above for (;x>1;x+1) if (x=2) break; printf("\%d", x); (a) 5 (b) 6 (c) 0 (d) none of the above 10. The exponent part of the floating point representation for the number (0.125)10 is: (a) 01111101 (b) 01111100 (c) 10000010 (d) none of the above 7. lntx=7,b=2 for (x=5;x>=1;x2) b=xi printf("\%d", b): (a) 30 (b) 20 8. int a=5,c=1 do (c) 210 (d) none of the abov (c++; J while (a>0); printf("\%d", c); (a) 5 (b) 6 (c) 2 9. int x=5; (d) none of the above for (;x>1;x+1) if (x=2) break; printf("\%d", x); (a) 5 (b) 6 (c) 0 (d) none of the above 10. The exponent part of the floating point representation for the number (0.125)10 is: (a) 01111101 (b) 01111100 (c) 10000010 (d) none of the above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
