C# Quiz-2 |
1.Which class cannot be further derived from? Sealed class Abstract class Base class Internal class 2. Which members are accessible to all within assembly but not to classes outside assembly? public private virtual internal 3.What is an array called if it can have rows of different sizes? Jagged array Multi dimension array Single dimension array Mixed array 4.What keyword is to be used in base class function which is supposed to be overridden in derived classes? public private virtual internal 5. Which keyword allows to split class definition in more than one .cs files? virtual attribute sealed partial 6.What conversion takes place with the concept of 'boxing'? value type to reference type reference type to value type struct to enum int to char 7.How a static function can be accessed? Through class' object Through class name Only from another static function Only from another non-static function 8.What is true about static class? static class can be instantiated static class can only have public members static class can have only static members static class cannot have members declared as 'internal' 9.In context of collections from which interface a class should be derived to have iteration facility where items can be iterated using foreach loop? ICollection IDictionary IEnumerable IComparer 10.Which collection class would be best suitable to manage a range of boolean values? HashTable BitArray ArrayList Queue |
Online Quizzes,MCQs and Articles on .NET Technologies,SQL Server and Computer Awareness Section...
Tuesday, 9 April 2013
C# Quiz-2
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment