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?
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 ::
STEP-BY-STEP
As the marks =565 and the if case is starting from marks >80
This satisfy the condition so I think ans should be option A i.e A grade
Read Full Answer
Report Error
Please Login First Click Here