1. | Which of the following statements is correct about the C#.NET code snippet given below? int i, j, id = 0; switch (id) |
|||||||||
Answer: Option A Explanation: No answer description available for this question. Let us discuss.
|
2. | Which of the following loop correctly prints the elements of the array? char[ ] arr = new char[ ] {'k', 'i','C', 'i','t'} ; |
|||||||||
Answer: Option B Explanation: No answer description available for this question. Let us discuss.
|
3. | What will be the output of the code snippet given below? int i; |
|||||||||
Answer: Option C Explanation: No answer description available for this question. Let us discuss.
|
4. | Which of the following statements are correct about the C#.NET code snippet given below? if (age > 18 || no < 11) 1 The condition no < 11 will get evaluated only if age > 18 evaluates to False. 2 The condition no < 11 will get evaluated if age > 18 evaluates to True. 3 The statement a = 25 will get evaluated if any one one of the two conditions is True. 4 || is known as a short circuiting logical operator. 5 The statement a = 25 will get evaluated only if both the conditions are True. |
|||||||||
Answer: Option C Explanation: No answer description available for this question. Let us discuss.
|
5. | Which of the following statements are correct? 1 The switch statement is a control statement that handles multiple selections and enumerations by passing control to one of the case statements within its body. 2 The goto statement passes control to the next iteration of the enclosing iteration statement in which it appears. 3 Branching is performed using jump statements which cause an immediate transfer of the program control. 4 A common use of continue is to transfer control to a specific switch-case label or the default label in a switch statement. 5 The do statement executes a statement or a block of statements enclosed in {} repeatedly until a specified expression evaluates to false. |
|||||||||
Answer: Option B Explanation: No answer description available for this question. Let us discuss.
|
6. | Which of the following is another way to rewrite the code snippet given below? int a = 1, b = 2, c = 0; |
|||||||||
Answer: Option A Explanation: No answer description available for this question. Let us discuss.
|
7. | Which of the following statements is correct about the C#.NET code snippet given below? switch (id) |
|||||||||
Answer: Option A Explanation: No answer description available for this question. Let us discuss.
|
8. | What will be the output of the C#.NET code snippet given below? int i = 2, j = i; |
|||||||
Answer: Option A Explanation: No answer description available for this question. Let us discuss.
|