Tuesday, 13 December 2011

C#.Net Multiple Choice Questions and Answers for freshers pdf

1. Which of the following statements is correct about the C#.NET code snippet given below?
2. Which of the following statements is correct about the C#.NET code snippet given below?
3. Creating empty structures is allowed in C#.NET?
4. Which of the following statements is correct?
5. Which of the following is the correct way to create an object of the class Sample?
6. Which of the following will be the correct output for the C#.NET program given below?
7. The this reference gets created when a member function (non-shared) of a class is called?
8. Which of the following statements are correct?
9. Which of the following statements is correct about the C#.NET code snippet given below?
10. Which of the following statements are correct about the C#.NET code snippet given below?
11. Which of the following statements is correct about the C#.NET code snippet given below?
12. Which of the following statements are correct about the this reference?
13. Which of the following will be the correct output for the C#.NET program given below?
14. Which of the following statements are correct about objects of a user-defined class called Sample?
15. Which of the following statements are correct about the C#.NET code snippet given below?
16. Which of the following statements is correct about classes and objects in C#.NET?
17. Which of the following statements are correct about the C#.NET code snippet given below?
18.Which of the following statements are correct about the C#.NET code snippet given below?
19.Which one of the following statements is correct?
20. If a is an array of 5 integers then which of the following is the correct way to increase its size to 10 elements?
21.How will you complete the foreach loop in the C#.NET code snippet given below such that it correctly prints all elements of the array a?
22.Which of the following is the correct output of the C#.NET code snippet given below?
23.Creating empty structures is allowed in C#.NET?
24.Which of the following statements are correct about arrays used in C#.NET?
25.Which of the following statements are correct about the C#.NET code snippet given below?
26.Which of the following are the correct ways to define an array of 2 rows and 3 columns?
27.Which of the following statements is correct about the array declaration given below?
28.Which of the following statements is correct about the C#.NET code snippet given below?
29.Which of the following is the correct way to define and initialise an array of 4 integers?
30.Which of the following is the correct output of the C#.NET code snippet given below?
31.Which of the following is the correct way to obtain the number of elements present in the array given below?
32.What will be the output of the C#.NET code snippet given below?
33.Which of the following statements are correct about an ArrayList collection that implements the IEnumerable interface?
34.How many enumerators will exist if four threads are simultaneously working on anArrayList object?
35. In which of the following collections is the Input/Output index-based?
36.In which of the following collections is the Input/Output based on a key?
37. In a HashTable Key cannot be null, but Value can be?
38.Which of the following statements are correct about the C#.NET code snippet given below?
39.Which of the following statements are correct about the Stack collection?
40.Which of the following is NOT an interface declared in System.Collectionsnamespace?
41.Which of the following is an ordered collection class?
42.Which of the following is the correct way to find out the number of elements currently present in an ArrayList Collection called arr?
43.Which of the following statements are correct about the Collection Classes available in Framework Class Library?
44.Which of the following statements is correct?
45.Which of the following statements is correct about the C#.NET code snippet given below?
46. Which of the following ways to create an object of the Sample class given below will work correctly?
47.Which of the following statements are correct about static functions?
48.Which of the following statements is correct about constructors?
49.In which of the following should the methods of a class differ if they are to be treated as overloaded methods?
50.Can static procedures access instance data?
51.Which of the following statements are correct about constructors in C#.NET?
52.How many times can a constructor be called during lifetime of the object?
53.Is it possible to invoke Garbage Collector explicitly?
54.Which of the following statements are correct about the C#.NET code snippet given below?
55.Which of the following statements is correct?
56.Is it possible for you to prevent an object from being created by using zero argument constructor?
57.Which of the following statements are correct about static functions?
58.What will be the output of the C#.NET code snippet given below?
59.Which of the following statements is correct about constructors in C#.NET?
60.Which of the following will be the correct output for the C#.NET program given below?
61. What will be the output of the C#.NET code snippet given below?
62. Which of the following statements are correct?
63.A function returns a value, whereas a subroutine cannot return a value.
64.Which of the following statements are correct about functions and subroutines used in C#.NET?
65.Which of the following will be the correct output for the C#.NET program given below?
66.What will be the output of the C#.NET code snippet given below?
67.Which of the following statements are correct?
68.Which of the following statements are correct about functions used in C#.NET?
69.How many values is a function capable of returning?
70.What will be the output of the C#.NET code snippet given below?
71.How many values is a subroutine capable of returning?
72.Which of the following CANNOT occur multiple number of times in a program?
73. What will be the output of the C#.NET code snippet given below?
74.Which of the following statements are correct about subroutines used in C#.NET?
75.A function can be used in an expression, whereas a subroutine cannot be.
76.What will be the output of the C#.NET code snippet given below?
77.A property can be declared inside a class, struct, Interface?
78.Which of the following statements is correct about properties used in C#.NET?
79.Which of the following statements are correct?
80.If Sample class has a Length property with get and set accessors then which of the following statements will work correctly?
81. A property can be declared inside a namespace or a procedure.
82.If Sample class has a Length property with set accessor then which of the following statements will work correctly?
83.If Sample class has a Length property with get accessor then which of the following statements will work correctly?
84.Which of the following statements is correct about properties used in C#.NET?
85.Which of the following is the correct way to implement a read only property Length in aSample class?
86.Which of the folowing does an indexer allow to index in the same way as an array?
87.Which of the following statements are true about the C#.NET code snippet given below?
88.Which of the following will be the correct output for the C#.NET code snippet given below?
89. Which of the following statements will correctly copy the contents of one string into another ?
90.Which of the following will be the correct output for the C#.NET code snippet given below?
91.If s1 and s2 are references to two strings, then which of the following is the correct way to compare the two references?
92.What will be the output of the C#.NET code snippet given below?
93.Which of the following will be the correct output for the C#.NET code snippet given below?
94.Which of the following statements about a String is correct?
95.Which of the following statement is correct about a String in C#.NET?
96.Which of the following will be the correct output for the C#.NET code snippet given below?
97.Which of the following statements are correct about the String Class in C#.NET?
99.The space required for structure variables is allocated on stack.
100. Creating empty structures is allowed in C#.NET.