Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

6. Which of the following code should be included in every C program? (a) main (b) #include (C) /* (d) 7. Which of the following

image text in transcribed

6. Which of the following code should be included in every C program? (a) main (b) #include (C) /* (d) 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" : "Falled"); (d) grade >= 60 ? puts("Passed") ? puts("Failed"); LG

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Joline Morrison, Mike Morrison

2nd Edition

? 061906448X, 978-0619064488

More Books

Students also viewed these Databases questions

Question

3. Write a policy statement to address these issues.

Answered: 1 week ago