Join our Telegram Channel

1000 POLITICAL SCIENCE MCQS | EBook
Get 22 nos. GK EBooks | Combo Pack
Current Affairs Monthly Magazine -Subscribe Now!
1000 BIOLOGY MCQS AND ANSWERS | EBook
1000 ECONOMICS MCQS FOR EXAMS | EBook
Mughal Empire MCQs | EBook
ECONOMIC GEOGRAPHY MCQs | EBook
350 MCQs ON INDIAN CONSTITUTION | EBook
GENERAL AWARENESS COMBO (6 EBOOKS)

Question

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]
Advertisement

Month-wise Current Affairs 2022

Category-wise Current Affairs

Jobs by Qualification

Free Mock Test