Answered step by step
Verified Expert Solution
Question
1 Approved Answer
QUESTION 17 Which of the following statements are correct about the C# code snippet given below? if (age > 18 && no < 11) a
QUESTION 17
Which of the following statements are correct about the C# code snippet given below?
if (age > 18 && no < 11)
a = 25;
1.The condition no < 11 will be evaluated only if age > 18 evaluates to True.
2.The statement a = 25 will get executed if any one condition is True
3.The condition no < 11 will be evaluated only if age > 18 evaluates to False
4.The statement a = 25 will get executed if both the conditions are True
5. && is known as a short circuiting logical operator
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started