Which of the following statements correctly prints “Passed” if the student’s grade is greater than or equal to 60 and “Failed” if the stu-dent’s grade is less than 60? [The quotes, of course, should not print.]

a) printf("%s\n", grade >= 60 : "Passed" : "Failed");
b) grade >= 60 : puts("Passed ") ? puts("Failed ");
c) printf("%s\n", grade >= 60 ? "Passed" : "Failed");
d) grade >= 60 ? puts("Passed ") ? puts("Failed ");

c) printf("%s\n", grade >= 60 ? "Passed" : "Failed");

Computer Science & Information Technology

You might also like to view...

Animation effects can be removed when they interfere with the flow of the presentation

Indicate whether the statement is true or false

Computer Science & Information Technology

Repeating a set of instructions a specific number of times is called _______ repetition.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology