You are on page 1of 5

1. The _________ interface of the array class allows modification of elements defined in the array. A. IList B. ICollect C.

IClone 2. _________ are used to create data and methods that can be accessed without creating an instance of a class. A. Static classes B. Dynamic classes C. Access modifiers 3. The _________ access modifier specifies that the constructor has its access limited to the current assembly. A. Internal B. Protected C. Private 4. The _________ access modifier specifies that the base class will initialize on its own whenever its derived classes are created. A. Public B. Private C. Protected 5. Using the ________ method, it is possible to programmatically force a garbage collection A. GC.Collect() B. GC.Remove() C. GC.Delete() 6. _________ is a characteristic of an entity that supports a new class from an existing class. A. Inheritance B. Polymorphism C. Encapsulation 7. _________ can be invoked either by creating an instance of the base class or using the base keyword.

A. Base class objects B. Base class methods C. Base class constructors 8. The _________ operator returns null if the two types or classes are incompatible with each other. A. Is B. As C. to 9. Properties cannot be ___________. A. Static B. Derived C. Overloaded 10. The ________ feature of C# resolves ambiguous name references. A. Data binding B. Interface C. Namespace alias qualifier 11. Indexers are ____ members that allow you to access data within objects. A. class B. data C. index D. property 12. Managing memory and verifying code safety are functionalities of _____________. A. Common Language Runtime B. .NET Framework Class Library C. Common Language Specification D. Common Type System 13. The Visual Studio 2005 ___________ edition is a proper choice for students, enthusiasts and hobbyists. A. Team System B. Professional C. Standard D. Express 14. Which one of the following statement about C# variables is incorrect? A. A variable is a computer memory location identified by a unique name. 2

B. A variable's name is used to access and read the value stored in it. C. A variable is allocated or deallocated in memory during runtime. D. A variable can be initialized at the time of its creation or later. 15. An _________ method is an inline nameless block of code that can be passed as a delegate parameter. A. anonymous B. named C. partial D. unnamed 16. The _______ types feature facilitates the definition of classes, structures and interfaces over multiple files. A. anonymous B. partial C. named D. unnamed 17. Restrictions or constraints can be applied to type parameters by using the _________ keyword. A. select B. from C. where D. return 18. The __________ interface defines methods to control the different generic collections. A. ICollection B. IDictionary C. IEnumerator D. IList 19. The SortedList class behaves like an __________ if you access its elements based on their index number otherwise it behaves like a __________. A. array, hash table B. hash table, heap C. heap, queue D. queue, array 20. Can you re-arrange the steps given below to implement delegates in C#?
A. Declare a delegate. B. Call method using the delegate object. C. Create method to be referred by delegate.

D. Instantiate the delegate.

A. A, B, C, D B. A, C, D, B C. A, D, C, B D. A, B, D, C 21. The ___________________________ exception is thrown when the stack runs out of space while the ________________________ exception is thrown when the result of an arithmetic, casting or conversion operation is larger in size than the destination object or variable. A. OverflowException, OutOfMemoryException B. OutOfMemoryException, NullReferenceException C. NullReferenceException, StackOverflowException D. StackOverflowException, OverflowException 22. Which of the following statements about Visual Studio 2005 IDE key elements are correct? A. The Code Editor facilitates writing, display and editing of form, event, and method code. B. The Dynamic Help window provides a list of topics depending on the active IDE area or task. C. The Properties window displays compile-time properties and events of objects at all times. D. The Solution Explorer provides an organized view of projects and access to their commands. 23. Which of the following statements about expressions and statements are correct? A. Statements may or may not return values, but expressions always return values. B. Statements end with semicolons but expressions do not end with semicolons. C. Statements specify where to store computation results but expressions do not. D. Compilers execute statements and since expressions are part of statements, they are executed with them. 24. Which of the following statements about the different operators are correct? A. The Addition operator performs concatenation of strings if the operands are strings. B. The Boolean Inclusive OR operator returns true if at least one of the expressions is true. C. The Conditional OR operator evaluates the second expression only if the first is true. D. The Relational operators return a boolean value depending on the comparison being made. 25. What is the output of the following code?
int num = 5;

while (num > 0) { if (num > 4) { Console.Write(num + ""); } -- num; if (num-- == 4) { Console.Write("{0}", num); } if (num == 3) { Console.WriteLine("{0}", num); } num--; }

A. 532 B. 533 C. 542 D. 544

You might also like