1. A variable which is declared inside a method is called?
Correct : B. Local
2. Feature of a local variable?
Correct : C. It must be declared within a metho
3. Two methods with the same name but with different parameters?
Correct : A. Overloading
4. What is the output of the code public class B: A { }?
Correct : C. It defines a class that inherits all the methods of A but the private members cannot be accesse
5. Which of the following statements is correct about Managed Code?
Correct : D. Managed code is the code that is written to target the services of the CLR.
6. Which of the following components of the .NET framework provide an extensible set of classes that can be used by any .NET compliant programming language?
Correct : A. .NET class libraries
7. Which of the following .NET components can be used to remove unused references from
the managed heap?
Correct : C. Garbage Collector
8. Which of the following assemblies can be stored in Global Assembly Cache?
Correct : C. Shared Assemblies
9. Code that targets the Common Language Runtime is known as
Correct : D. Managed Code
10. Which of the following is the root of the .NET type hierarchy?
Correct : A. System.Object
11. Which of the following are parts of the .NET Framework?
Correct : A. CLR & Framework Class Libraries (FCL)
12. int keyword targets to which .Net type?
Correct : C. System.Int32
13. How many web.config files that can be there an ASP.NET application?
Correct : A. Only One
14. The RangeValidator control supports the following data types?
Correct : B. Date, Integer and String
15. How to kill a user session explicitly?
Correct : D. Session.Abandon()
16. Different ways a method can be overloaded in C#.NET?
Correct : D. All of the Above
17. Can you store multiple data types in System.Array?
Correct : A. No
18. Can you inherit multiple interfaces?
Correct : A. Yes
19. What are the basic techniques for creating a control?
Correct : D. All of above
20. All control inherits either directly or indirectly from the base class control?
Correct : A. Yes
21. Which of the following can`t be used in our .NET application?
Correct : D. All of the above can be used
22. Which access modifiers are used in the concept of a property?
Correct : A. Get / set
23. Choose the form in which Postback occurs?
Correct : B. Webforms
24. Web.config file is used?
Correct : C. To configure the web server
25. The first event triggers in an aspx page is?
Correct : A. Page_Init()
26. What is used to validate complex string patterns like an e-mail address?
Correct : C. Regular Expression Validator
27. Which of the following statements is correct about constructors?
Correct : D. If we do not provide a constructor, then the compiler provides a zeroargument constructor.
28. How many times can a constructor be called during lifetime of the object?
Correct : B. Only once.
29. A property can be declared inside a class, struct, Interface.
Correct : A. True
30. A property can be declared inside a namespace or a procedure.
Correct : B. False
31. Which of the following statements is correct about properties used in C#.NET?
Correct : C. Properties of a class are actually methods that work like data members.
32. Which of the following is NOT a .NET Exception class?
Correct : B. StatckMemoryException
33. Which of the following statements is correct about an Exception?
Correct : C. It occurs at run-time.
34. In C#.NET if we do not catch the exception thrown at runtime then which of the
following will catch it?
Correct : B. CLR
35. Which of the following is the Object Oriented way of handling run-time errors?
Correct : C. Exceptions
36. Exceptions can be thrown even from a constructor, whereas error codes cannot be
returned from a constructor.
Correct : A. True
37. All code inside finally block is guaranteed to execute irrespective of whether an
exception occurs in the protected block or not.
Correct : A. True
38. It is compulsory for all classes whose objects can be thrown with throw statement to be
derived from System.Exception class.
Correct : B. False
39. Which of the following is NOT an Exception?
Correct : D. Incorrect Arithmetic Expression
40. Which of the following is NOT a namespace in the .NET Framework Class Library?
Correct : A. System.Process
41. Which of the following statements is correct about a namespace in C#.NET?
Correct : A. Namespaces help us to control the visibility of the elements present in it.
42. Which of the following CANNOT belong to a C#.NET Namespace?
Correct : D. Data
43. Which of the following statements is correct about a namespace used in C#.NET?
Correct : C. Nested namespaces are allowed.
44. Which of the following denote the web control associated with Table control function
of ASP.NET?
Correct : C. TableRow
45. ASP.NET separates the HTML output from program logic using a feature named as
Correct : B. Code-behind
46. If a developer of ASP.NET defines style information in a common location. Then that location is called as
Correct : B. Theme
47. The feature in ASP.NET 2.0 that is used to fire a normal postback to a different page in the application is called
Correct : B. Cross page posting
48. The GridView control in ASP.NET has which of the following features
Correct : C. Both A and B
49. Which of the following denote page code model in ASP.NET?
Correct : C. Both A and B
50. Which of the following denote New Data-bound Controls used with ASP.NET?
Correct : D. All of the above
51. A developer wanted to achieve graphics in his display using ASP.NET. Which of the following web controls are available in ASP.NET to achieve the above?
Correct : B. AdRotator
52. In ASP.NET if one wants to maintain session then which of the following is used?
Correct : D. All of the above
53. I have an ASP.NET application. I have a page loaded from server memory. At this
instance which of the following methods gets fired
Correct : B. Load()
54. Give one word: What model does ASP.NET request processing is based on
Correct : D. Pipeline
55. What is the significance of Server.MapPath
Correct : A. Returns the physical file path that corresponds to virtual specified path
56. Which method displays the custom control?
Correct : B. Render
57. When is the user controls code is executed
Correct : A. After the webform loads
58. What section of the Web.config file is used for storing a list of authorized users?
Correct : A. Authorization
59. The .NET Framework provides a runtime environment called
Correct : B. CLR
60. The .NET framework which provides automatic memory management using a technique
called
Correct : B. Garbage Collection
61. Which of the following can be used to add alternating color scheme in a Repeater
control?
Correct : A. AlternatingItemTemplate
62. Which of the following method is used to obtain details about information types of
assembly?
Correct : C. Both A and B
63. In ASP.NET the sessions can be dumped by using
Correct : B. Session.Abandon
64. Which method do you invoke on the DataAdapter control to load your generated dataset
with data?
Correct : B. Fill()
65. How many classes can a single .NET DLL contain?
Correct : D. Many
66. Which of the following denote the property in every validation control?
Correct : C. Both A and B
67. The type of code found in Code-Behind class is
Correct : A. Server-side code
68. Common type system is built into which of the following:
Correct : A. CLR
69. What is Diffgram?
Correct : A. The one which renders the dataset object contents to XML
70. What is the lifespan for items stored in ViewState?
Correct : A. Exists for the Life of the current page
71. What data types do a RangeValidator Support?
Correct : D. All of the above
72. To set page title dynamically in ASP.NET which of the following is used?
Correct : D. <head> section
73. In ASP.NET application the Global.asax file lie in which directory
Correct : C. Root
74. The control used in ASP.NET to display information from data set but with better
formatting and editing behavior is
Correct : C. DataList
75. How do we Delete, Update, Select data in a Dataset?
Correct : A. Using SQLDataAdapter
76. What is the size of the session ID?
Correct : D. 32 bit long integer
77. Which of the following extension does a WebService file will have?
Correct : A. .asmx
78. Which of the following extension does a WebForm file will have?
Correct : B. .aspx
79. What is default timeout of session?
Correct : C. 20
80. Which concept is used to provide consistent layout in webform?
Correct : A. Master Page
81. An alternative way of displaying text on web page using
Correct : A. Asp:label
82. Why is Global.asax is used?
Correct : B. Implement application and session level events
83. Which of the following is not a member of ADO DBCommand object?
Correct : C. Open
84. Default Session data is stored in ASP.Net.
Correct : C. InProcess
85. Which of the following control is used to validate that two fields are equal?
Correct : B. CompareValidator
86. Mode of storing ASP.NET session
Correct : D. All of the above
87. Which of the following denote ways to manage state in an ASP.Net Application?
Correct : D. All of the above
88. In .NET the operation of reading metadata and using its contents is known as ______?
Correct : A. Reflection
89. When an .aspx page is requested from the web server, the output will be rendered to
browser in following format?
Correct : A. HTML
90. Select the control which does not have any visible interface.
Correct : C. Repeater
91. Which of the following languages are used to write server side scripting in ASP.NET?
Correct : C. Both C-Sharp and VB
92. By default, ASP.NET store SessionIDs in _________.
Correct : A. Cookies
93. Which of the following is not an ASP.NET page event?
Correct : C. Import
94. What class does the ASP.NET web form class inherit from by default?
Correct : A. System.Web.UI.Page
95. Master pages are used to provide the code and appearance that are the same for a series
of __________.
Correct : A. Content Pages
96. Menus, TreeView and SiteMapPath controls cannot be styled with CSS
Correct : B. False
97. Every Server control must have an Id
Correct : A. True
98. Application_Start event is available in ___________.
Correct : C. Global.asax
99. Properties and Indexer are used to access which type of data members?