M

Mr. Dubey • 52.49K Points
Coach

Q. Which of the following statements are correct about the C#.NET
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.

  • (A) 1,3
  • (B) 2,5
  • (C) 1,4,5,
  • (D) 3,4,5
  • Correct Answer - Option(C)
  • Views: 79
  • Filed under category C#

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.

Related MCQs on C#

Q. The character pair?: is an________________available in C#.

Q. Which of the following are NOT true about .NET Framework? 1. It provides a consistent object-oriented programming environment whether object code is stored and executed locally, executed locally but Internet-distributed, or executed remotely. 2. It provides a code-execution environment that minimizes software deployment and versioning conflicts. 3. It provides a code-execution environment that promotes safe execution of code, including code created by an unknown or semi-trusted third party. 4. It provides different programming models for Windows-based applications and Web-based applications. 5. It provides an event driven programming model for building Windows Device Drivers.

Q. Which of the following are valid .NET CLR JIT performance counters? 1. Total memory used for JIT compilation 2. Average memory used for JIT compilation 3. Number of methods that failed to compile with the standard JIT 4. Percentage of processor time spent performing JIT compilation 5. Percentage of memory currently dedicated for JIT compilation

Q. DIFFERENCE BETWEEN KEYWORDS ‘VAR’ AND ‘DYNAMIC’?

Q. Which one of the following statements is correct?

Q. Which array method is used to sort an array alphabetically or in an ascending order in C#?

Q. Which one of the following statements is correct?

Q. Which of the following statements correctly define .NET Framework?

Q. How many types of access modifiers in C#?

Q. Valid Size of float data type is?

Learn All C# MCQs


Question analytics