M
Q. Which one of the following statements is correct?
No solution found for this question. Add Solution and get +2 points.
You must be Logged in to update hint/solution
Login to discuss.
Be the first to start discuss.
Q. Which of the following statements are correct about an ArrayList collection that implements the IEnumerable interface? 1. The ArrayList class contains an inner class that implements the IEnumerator interface. 2. An ArrayList Collection cannot be accessed simultaneously by different threads. 3. The inner class of ArrayList can access ArrayList class's members. 4. To access members of ArrayList from the inner class, it is necessary to pass ArrayList class's reference to it. 5. Enumerator's of ArrayList Collection can manipulate the array.
Q. The concept of composition specifies that you can.
Q. The code public class B : A { }
Q. Which Conversion function of ‘Convert.TOInt32()’ and ‘Int32.Parse()’ is efficient? i) Int32.Parse() is only used for strings and throws argument exception for null string ii) Convert.Int32() used for data types and returns directly '0' for null string
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 < 11will 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.
Q. What will be the output of the following C# code?
Q. Which of the following benefits do we get on running managed code under CLR? 1. Type safety of the code running under CLR is assured. 2. It is ensured that an application would not access the memory that it is not authorized to access. 3. It launches separate process for every application running under it. 4. The resources are Garbage collected.
Q. Which of the following statements are correct about exception handling in C#.NET? 1 If an exception occurs then the program terminates abruptly without getting any chance to recover from the exception. 2 No matter whether an exception occurs or not, the statements in the finally clause (if present) will get executed. 3 A program can contain multiple finally clauses. 4 A finally clause is written outside the try block. 5 Finally clause is used to perform cleanup operations like closing the network/database connections.
Q. Which of the following statements is correct about an Exception?
Embed
WhatsApp
Facebook
Telegram
Share in MCQ Buddy Groups
Discusssion
Login to discuss.