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

c programing c programing 7. Which of the following statement will print a number

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!