Choose a topic to test your knowledge and improve your C skills
Which of these can be overloaded?
Number of constructors a class can define of ?
Correct statement about constructors in C#.NET is ?
Constructors are used to
To overload a method which of the following statement is false?
What is return type of constructors?
Which method have same name as that of its class?
Which of following statement are correct about functions?
Which of the following statements are correct about an ArrayList collection thatimplements 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.
How many enumerators will exist if four threads are simultaneously working on an ArrayList object?
In which of the following collections is the Input/Output index-based? 1. Stack 2. Queue 3. BitArray 4. ArrayList 5. HashTable
Which of the following statements are correct about the Stack collection? 1. It can be used for evaluation of expressions. 2. All elements in the Stack collection can be accessed using an enumerator. 3. It is used to maintain a FIFO list. 4. All elements stored in a Stack collection must be of similar type. 5. Top-most element of the Stack collection can be accessed using the Peek() method.
Which of the following is the correct way to access all elements of the Queue collection created using the C#.NET code snippet given below? Queue q = new Queue(); q.Enqueue("Sachin"); q.Enqueue('A'); q.Enqueue(false); q.Enqueue(38); q.Enqueue(5.4)
Which of the following statements are correct about the delegate declaration given below? delegate void del(int i); 1. On declaring the delegate a class called del will get created. 2. The signature of del need not be same as the signature of the method that we intend to call using it. 3. The del class will be derived from the MulticastDelegate class. 4. The method that can be called using del should not be a static method. 5. The del class will contain a one-argument constructor and an lnvoke() method
Suppose a Generic class called SortObjects is to be made capable of sorting objects of any type (Integer, Single, Byte etc.). Which of the following programming constructs should be used to implement the comparison function?
What is a delegate?
Which of the following is included in Visual Studio IDE?
Which of the following is true about dispose() method?
Button class derives from
Which namespace includes most of the Control classes for developing Windows applications?
Which of the Control objects is viewed as a container that can hold other objects when you design a Windows application?
When an instance method declaration includes the abstract modifier, the method is said tobe an ______.
The theory of _____ implies that user can control the access to a class, method, orvariable.
Inheritance is ______ in nature.
The point at which an exception is thrown is called the _______
In C#, having unreachable code is always an _____.
C# treats the multiple catch statements like cases in a _____________ statement.
C# supports a technique known as________, which allows a method to specify explicitlythe name of the interface it is implementing.
The reason that C# does not support multiple inheritances is because of ______.
_______ is a set of devices through which a user communicates with a system using interactive set of commands.
Exponential formatting character (‘E’ or ‘e’) converts a given value to string in the form of _______.
The ______ are the Graphical User Interface (GUI) components created for web basedinteractions..
In Microsoft Visual Studio, ______ technology and a programming language such as C#is used to create a Web based application.
The controls available in the tool box of the ______ are used to create the user interface of a web based application.
Web Forms consists of a _______ and a _________ .
The ______ parentheses that follow _____ indicate that no information is passed to Main().
The scope of a variable depends on the ____________ and _________.
Which of the following statements is correct about the C#.NET code snippet given below?class Student s1, s2; // Here 'Student' is a user-defined class. s1 = new Student(); s2 = new Student();
Which of the following can be facilitated by the Inheritance mechanism? 1 Use the existing functionality of base class. 2 Overrride the existing functionality of base class. 3 Implement new functionality in the derived class. 4 Implement polymorphic behaviour. 5 Implement containership.
Which of the following should be used to implement a 'Has a' relationship between twoentities?
Which of the following should be used to implement a 'Like a' or a 'Kind of' relationshipbetween two entities?
How can you prevent inheritance from a class in C#.NET ?
A class implements two interfaces each containing three methods. The class contains no instance data. Which of the following correctly indicate the size of the object created from this class?
Which of the following statements is correct about Interfaces used in C#.NET?
Which of the following statements is correct about an interface used in C#.NET?
Which of the following statements is correct about an interface?
Databases store information in records, fields and:
Each data provider class is grouped and accessible through its:
In Visual Studio, the tool that enables you to connect to a database and automatically populate a dataset object using a TableAdapter object is the ___________wizard:
In XML, a document is a hierarchy of
Which of the following namespace contains the LINQ to XML?
LINQ to SQL works with
A connection string contains
To avoid writing additional SQL statements to update a live database, you instantiate an object of which class?
The following namespaces (System.Data.OleDB, System.Data.SqlClient, System.Data.Odbc, System.Data.OracleClient) include classes for different:
Which of the following is a definition of a database?
A computer application for managing databases and pulling together data to generate reports and make decisions is known as a(n)
Which of the following characterizes the relational model for databases?
A field is a
Forms and reports, used for entering and editing records, and for generating useful information in reports are