Home > C# Programming > Quizzes > C# Programming Practice Test
C# Programming Practice Test
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 17% Most missed: “In Microsoft Visual Studio, ______ technology and a programming language such as…”
C# Programming Practice Test
Time left 00:00
25 Questions

1. Which of the following will be the correct output for the C#.NET code snippet given below?
String s1 = 'ALL MEN ARE CREATED EQUAL';
String s2; s2 = s1.Substring(12, 3);
Console.WriteLine(s2);
2. Which of the following statements is correct about Interfaces used in C#.NET?
3. When is the dataset connected to the database?
4. Struct’s data members are ____________ by default.
5. Which of the following statements is correct?
6. A unique field which distinguishs a record is known as a
7. Choose the advantages of using generics?
8. In XML, a document is a hierarchy of
9. Select the namespace which should be included while making use of LINQ operations:
10. The point at which an exception is thrown is called the _______.
11. Are generics in C# are same as the generics in java and templates in C++?
12. Which of the following is the correct way to create an object of the class Sample?
1. Sample s = new Sample();
2. Sample s;
3. Sample s; s = new Sample();
4. s = new Sample();
13. What is meant by the term generics?
14. 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.
15. The formal-parameter-list is always enclosed in _______.
16. Which of the following is the correct size of a Decimal datatype?
17. Which of the following should be used to implement a 'Like a' or a 'Kind of' relationship between two entities?
18. In which of the following collections is the Input/Output index-based? 1. Stack 2. Queue 3. BitArray 4. ArrayList 5. HashTable
19. The field in the child table that links information to the parent table is known as the
20. A _______ creates an object by copying variables from another object.
21. Choose the namespace in which the interface IEnumerable is declared?
22. The following namespaces (System.Data.OleDB, System.Data.SqlClient, System.Data.Odbc, System.Data.OracleClient) include classes for different:
23. 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.
24. 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.
25. In a database, a parent-child relationship is also known as a