1.Which of the following statement about C# varialble is incorrect ? A. variable is a computer memory location identified by a unique name 2.

The.……types feature facilitates the definition of classes ,structures and interfaces over multiple files? B. partial 3. The....…class is a variable-length array that can dynamically increase or decrease in size? A. ArrayList D. SortedList 4. The.………interface defines methods to control the different generic collections? A. ICollection 5. The default capacity of an ArrayList class is.....? C.24 6. in C# ...………are created using delegates B. events 7. Which of the following code declare the delegate Calculation with the return type and the parameter types as integer ? A. public delegate int Calculation(int numOne,int numTwo); 8. The.......constructor initialises an object of the ArrayList class with the specified initial capacity as the parameter . D. ArrayList(int) 9. Which of the following statements about the different data types in C# are correct? B. Reference type variables store memory address of other variables in a stack . D. int and class are examples of value and reference type variables respectively. 10. Which piece of code display a float value as string ? B. float flotNum = 500.25F; string stNum = flotNum.ToString(); Console.WriteLine(stNum); C. float flotNum = 500.25F; String stNum = flotNum.ToString(); Console.WriteLine(stNum);

. 15. } num--... StackOverflowException.…..method is created when you instantiate or reference a delegate with a block of ..where .. NullReferenceException.. code.WriteLine("{0}".exception is thrown when the stack runs out of space while the. Delegates can be associated with methods provided they have the same return type and parameter type.. The.WriteLine("(0)". Restriction or constraints can be applied to type parameters by using the.. unnamed D. Common Language Runtime 16..keyword .. An .…... Delegates are objects that contains references to methods that need to be invoked . OverflowException 13... } --num. if(num--= =4) { Console. 503 14..unnamed.……………. while(num>0) { if(num>4) { Console..num). What is the output of the following code ? int num =5.. C.casting or conversion operation is larger in size than the destination object or variable. C... StackOverFlowException D.. anonymous.num). C.. } B. D.anonymous 12.…….... A.. Which of the following statements about delegates are correct ? A.exception is thrown when the result of an arithmetic.. Managing memory and verifying code safety are functionalities of. } if(num==3) { Console.WriteLine(num+"").11....

Partial classes can be defined over multiple locations to store different members D. The Relational operators return a boolean value depending on the comparison being made 18.class es.. CopyTo.. B. 24.. The Dictionary<K.method also copies elements of a list to an array of type Object..and.Generic namespace classes are correct ? A. The List<T> class provides a generic collection of items that can be dynamically resized C. The T:<base class name> specifies that the type parameter must be a parent class or its successor..………. The Queue<T> provides a generic collection that follows the First-In-First-Out principle D... The . SortedList. Exception handling statements manage situation that hinder the normal execution of the program. Which of the following statements about the different operator are correct ? A. D. The Boolean inclusive OR operator returns true if at least one the expression is true D. Which of the following statements about the partial class are correct ? A..………. D..method of the ArrayList class copies the elements of a list to an array while the. Partial classes are the only types in C# that support partial definitions B. D...Collections.. 25.. Generic methods process values whose data types are known only when they are accessed C. Can you re-arrange the steps given below to implement delegates in C# ? Declare a delegate Call method using the delegate object Create method to be referenced by delegate Instantiate the delegate . The.. Partial classes allow multiple developers to work on separate sections simultaneously 19. Which of the following statements about the defferent types of C# statements are correct ? B.class is a combination of the.Hashtable.V> provide a generic collection of sorted key and value pairs 20....ArrayList 21..... 22... Which of the following statements about generic methods are correct ? A...ToArray 23. Which of the following statements about constraints on type parameters are correct ? C. Iteration statements help you to repeatedly execute a block of code within program .. The T:<interface name> specifies that the type parameter must be an interface or should inherit an interface.. Generic methods can be declared within generic or non generic class declaration. The Addition operator performs concatenation of strings if the operands are strings B. Which of the following statements about System.…………….17......

28... Enumerator 31. D.. D. public.. Exceptions thrown due to failure in database connection or network connection are examples of.if you access its elements based on their index number otherwise it behaves like a.. The. Generics always accept a type parameter......hash table 27.simple standalone and distributed application..…... D. Generic allow you to reuse the code in a safe manner without casting or boxing....……. The SortedList class behaves like an .NET languages.. C. Message 33. array............. C.Exception class returns the Exception instance that caused the current exception.are a kind of parameterized data structure that can work with value types as well as reference types. ..B...exceptions. system-level 35. collection 32. application-level 36. Which of the following statements about C# are correct ? A..... C# applications are easy to deploy because of its support for XML and SOAP.. A. C# can be used to develop both... A.. The... A. A C D B 26...is a set of items of same or different data types......property of the System..which is a placeholder for the required date type.fields are accessible by other classes but. 30.fields are accessible only by the class in which they are declared....private . A. Which of the following keywords are associated with iteration statements? B. Exception thrown due to arithmetic operations or null object reference are. Which of the following statements about generics are correct ? B.. C......……. C# applications can easily use or integrate code written in other ..exceptions A.………. foreach 29.

. delegate is declared using the delegate keyword 40. D. Statements may or may not return values. Which of the following statements about exceptions are correct ? A.. but expressions always return values..……. display and aditing of form. named C.. they are executed with them. The code Editor facilitates writing. 44: Which of the following statements about expressions and statements are correct? A.. The Solution Explorer provides an organized view of projects and access to their commands.. and method code.. unnamed 43. B. An. Standard 46: The … class is a combination of the Hashtable class and the ArrayList class? A. 42... C.... D.. event.method is an inline nameless block of code that can be passed as a delegate parameter ? A. Which of the following statements about delegates in C# are correct? B. The Dynamic help window provides a list of topics depending on the active IDE area or task. NullReferenceException 39..exception is thrown when a value is assigned null object . anonymous B... SortedList . partial D.Exception class contains properties that are common to all exceptions. The System.. IEnumerator 38. Which of the following statements about Visual Studio 2005 IDE key elements are correct? (chon 1 dap an!) A. Generics 41... delegate can encapsulate static methods. delegate can invoke one method at a time..Exception class is the base class that allows you to handle all exception. The.. D. The System.. The.allow you to reuse a code for different data types. Compilers execute statements and since expressions are part of statements. 45: The Visual Studio 2005 … edition is a proper choice for students enthusiasts and hobbyists? (chon 1 dap an!) C..37. . D. C...interface supports simple iteration over elements a generics ? C. D.

Sign up to vote on this title
UsefulNot useful