GkSeries.com

Q.

Consider the following code snippet

marks = 80;
switch (marks)
{
	case 60:
	grade = ‘C’;
	break;
	case 70: 
	grade = ‘B’;
	break;
	case 80:
	grade = ‘A’;
	break;
	default:
	grade = ‘E’;
}

What is the value of ‘grade’ after the switch statement is executed?

[A] A
[B] B
[C] C
[D] E
Answer & Explanation
Option: [A]

DOWNLOAD CURRENT AFFAIRS PDF FROM APP

Please share this page

Click Here to Read more questions

Teacher Eligibility Test