Which of the following statements are correct about the C#.NET code snippet given below?if (age > 18 || no < 11) a = 25; The condition no < 11 will get evaluated only if age > 18 evaluates to False. The condition no < 11 will get evaluated if age > 18 evaluates to True. The statement a = 25 will get evaluated if any one one of the two conditions is True. || is known as a short circuiting logical operator. The statement a = 25 will get evaluated only if both the conditions are True. A. B. 2, 4 C. 1, 3, 4 D. 2, 3, 5

- Online Exam Test Papers | - MCQs[multiple choice questions and answers ] | - Mock Test Papers | - Practice Papers | - Sample Test Papers |

Question:
Which of the following statements are correct about the C#.NET code snippet given below?if (age > 18 || no < 11)
    a = 25;
The condition no < 11 will get evaluated only if age > 18 evaluates to False.
The condition no < 11 will get evaluated if age > 18 evaluates to True.
The statement a = 25 will get evaluated if any one one of the two conditions is True.
|| is known as a short circuiting logical operator.
The statement a = 25 will get evaluated only if both the conditions are True.
A. 
B. 2, 4
C. 1, 3, 4
D. 2, 3, 5

1.1, 4, 5

2.2,4

3.1,3,4

4.2,3,5


More MCQS Questions and answers

R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!