[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

C Programming :: Control Instructions - Discussion

Home > C Programming > Control Instructions > MCQs Questions Discussion

14 / 33

Consider the following C program fragment.

if (marks > 80)
grad = 'A';
else if ((marks > 70) && (attendance > 75 ))
grade= 'B';
else if (attendanc < 75)
grade = 'R';
if ((marks > 60) && (attendance > 50))
grade= 'F';
else 
grade = 'E'

What is the value of grade if marks = 565 and attendance = 80?

AA

BB

CF

DE

Answer: Option (Login/Signup)

Show Explanation

This satisfy the condition so I think ans should be option A i.e A grade

Asked In ::

Post Your Answer Here:     

Reply    
Rate This: +1 -0 +
    Report


Report Error

Please Login First Click Here