Question: c programing 7. Which of the following statement will print a number only if it is an even number? (a) if (n%2==1) printf(%d,n); (b) if
7. Which of the following statement will print a number only if it is an even number? (a) if (n%2==1) printf("%d",n); (b) if (n%2==0) printf("%d"n); (c) if (n!= 0 ) printf("%d",n); (d) if (n == 0 ) printf("%d",n); 8. Which of the following statements correctly prints "Passed" if the student's grade is greater than or equal to 60 and "Failed" if the student's grade is less than 60? (a) printf("%s ", grade >= 60: "Passed" : "Failed"); (b) grade >= 60 : puts("Passed") ? puts("Failed"); (c) printf("%s ", grade >= 60 ? "Passed" : "Failed"); (d) grade >= 60 ? puts("Passed") ? puts("Failed"); 9. Evaluate the expression 3 * 4% 6+4 *5. (a) 20 (b) 26 (C) 12 (d) 32
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
