McqMate
1. |
A variable which is declared inside a method is called? |
A. | Serial |
B. | Local |
C. | Private |
D. | Static |
Answer» B. Local |
2. |
Feature of a local variable? |
A. | It can be used anywhere in the program |
B. | It must accept a class |
C. | It must be declared within a metho |
D. | D It represent a class object |
Answer» C. It must be declared within a metho |
3. |
Two methods with the same name but with different parameters? |
A. | Overloading |
B. | Loading |
C. | Multiplexing |
D. | Duplexing |
Answer» A. Overloading |
4. |
What is the output of the code public class B: A { }? |
A. | Errors |
B. | It defines a class that inherits the public methods of A only |
C. | It defines a class that inherits all the methods of A but the private members cannot be accesse |
D. | D Both b and c |
Answer» 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? |
A. | Managed code is the code that is compiled by the JIT compilers. |
B. | Managed code is the code where resources are Garbage Collected. |
C. | Managed code is the code that runs on top of Windows. |
D. | Managed code is the code that is written to target the services of the CLR. |
Answer» 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? |
A. | .NET class libraries |
B. | Common Language Runtime |
C. | Common Language Infrastructure |
D. | Common Type System |
Answer» A. .NET class libraries |
7. |
Which of the following .NET components can be used to remove unused references from the managed heap? |
A. | Common Language Infrastructure |
B. | CLR |
C. | Garbage Collector |
D. | CTS |
Answer» C. Garbage Collector |
8. |
Which of the following assemblies can be stored in Global Assembly Cache? |
A. | Private Assemblies |
B. | Public Assemblies |
C. | Shared Assemblies |
D. | Protected Assemblies |
Answer» C. Shared Assemblies |
9. |
Code that targets the Common Language Runtime is known as |
A. | Unmanaged |
B. | Distributed |
C. | Native Code |
D. | Managed Code |
Answer» D. Managed Code |
10. |
Which of the following is the root of the .NET type hierarchy? |
A. | System.Object |
B. | System.Type |
C. | System.Base |
D. | System.Root |
Answer» A. System.Object |
11. |
Which of the following are parts of the .NET Framework? |
A. | CLR & Framework Class Libraries (FCL) |
B. | Mobile Applications |
C. | Microsoft Published Web Services |
D. | Applications deployed on IIS |
Answer» A. CLR & Framework Class Libraries (FCL) |
12. |
int keyword targets to which .Net type? |
A. | System.Int8 |
B. | System.Int16 |
C. | System.Int32 |
D. | System.Int64 |
Answer» C. System.Int32 |
13. |
How many web.config files that can be there an ASP.NET application? |
A. | Only One |
B. | Only Two |
C. | Upto 10 |
D. | More than one |
Answer» A. Only One |
14. |
The RangeValidator control supports the following data types? |
A. | Integer only |
B. | Date, Integer and String |
C. | Only String |
D. | Date and Interger |
Answer» B. Date, Integer and String |
15. |
How to kill a user session explicitly? |
A. | Session.Close() |
B. | Session.Discard() |
C. | Session.kill() |
D. | Session.Abandon() |
Answer» D. Session.Abandon() |
16. |
Different ways a method can be overloaded in C#.NET? |
A. | Different parameter data types |
B. | Different number of parameters |
C. | Different order of parameters |
D. | All of the Above |
Answer» D. All of the Above |
17. |
Can you store multiple data types in System.Array? |
A. | No |
B. | Yes |
C. | Both |
D. | None |
Answer» A. No |
18. |
Can you inherit multiple interfaces? |
A. | Yes |
B. | No |
C. | Both |
D. | None |
Answer» A. Yes |
19. |
What are the basic techniques for creating a control? |
A. | Inheriting from an existing control |
B. | Inherit from User Control |
C. | Inherit from Control |
D. | All of above |
Answer» D. All of above |
20. |
All control inherits either directly or indirectly from the base class control? |
A. | Yes |
B. | No |
C. | Both |
D. | None |
Answer» A. Yes |
21. |
Which of the following can`t be used in our .NET application? |
A. | .Net Assemblies |
B. | ActiveX Control |
C. | COM type libraries |
D. | All of the above can be used |
Answer» D. All of the above can be used |
22. |
Which access modifiers are used in the concept of a property? |
A. | Get / set |
B. | Try / catch |
C. | Finally/throw |
D. | None of the above |
Answer» A. Get / set |
23. |
Choose the form in which Postback occurs? |
A. | Html |
B. | Webforms |
C. | Windows |
D. | All of above |
Answer» B. Webforms |
24. |
Web.config file is used? |
A. | Configures the time that the server-side code behind module is called |
B. | To store the global information and variable definitions for the application |
C. | To configure the web server |
D. | To configure the web browser |
Answer» C. To configure the web server |
25. |
The first event triggers in an aspx page is? |
A. | Page_Init() |
B. | Page_Load() |
C. | Page_Click() |
D. | All of the above |
Answer» A. Page_Init() |
26. |
What is used to validate complex string patterns like an e-mail address? |
A. | Required Field Validator |
B. | Range Validator |
C. | Regular Expression Validator |
D. | Custom Validator |
Answer» C. Regular Expression Validator |
27. |
Which of the following statements is correct about constructors? |
A. | If we provide a one-argument constructor then the compiler still provides a zero-argument constructor. |
B. | Static constructors can use optional arguments. |
C. | Overloaded constructors cannot use optional arguments. |
D. | If we do not provide a constructor, then the compiler provides a zeroargument constructor. |
Answer» 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? |
A. | As many times as we call it. |
B. | Only once. |
C. | Any number of times before the object gets garbage collected. |
D. | Any number of times before the object is deleted. |
Answer» B. Only once. |
29. |
A property can be declared inside a class, struct, Interface. |
A. | True |
B. | False |
C. | none |
D. | all |
Answer» A. True |
30. |
A property can be declared inside a namespace or a procedure. |
A. | True |
B. | False |
C. | none |
D. | all |
Answer» B. False |
31. |
Which of the following statements is correct about properties used in C#.NET? |
A. | Every property must have a set accessor and a get accessor. |
B. | Properties cannot be overloaded. |
C. | Properties of a class are actually methods that work like data members. |
D. | A property has to be either read only or a write only. |
Answer» C. Properties of a class are actually methods that work like data members. |
32. |
Which of the following is NOT a .NET Exception class? |
A. | Exception |
B. | StatckMemoryException |
C. | DivideByZeroException |
D. | OutofMemoryException |
Answer» B. StatckMemoryException |
33. |
Which of the following statements is correct about an Exception? |
A. | It occurs during compilation. |
B. | It occurs during linking. |
C. | It occurs at run-time. |
D. | It occurs during loading of the program. |
Answer» 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? |
A. | Compiler |
B. | CLR |
C. | Linker |
D. | Loader |
Answer» B. CLR |
35. |
Which of the following is the Object Oriented way of handling run-time errors? |
A. | OnError |
B. | HERESULT |
C. | Exceptions |
D. | Error Codes |
Answer» C. Exceptions |
36. |
Exceptions can be thrown even from a constructor, whereas error codes cannot be returned from a constructor. |
A. | True |
B. | False |
C. | none |
D. | all |
Answer» A. True |
37. |
All code inside finally block is guaranteed to execute irrespective of whether an exception occurs in the protected block or not. |
A. | True |
B. | False |
C. | none |
D. | all |
Answer» A. True |
38. |
It is compulsory for all classes whose objects can be thrown with throw statement to be derived from System.Exception class. |
A. | True |
B. | False |
C. | none |
D. | all |
Answer» B. False |
39. |
Which of the following is NOT an Exception? |
A. | Stack Overflow |
B. | Division By Zero |
C. | Insufficient Memory |
D. | Incorrect Arithmetic Expression |
Answer» D. Incorrect Arithmetic Expression |
40. |
Which of the following is NOT a namespace in the .NET Framework Class Library? |
A. | System.Process |
B. | System.Security |
C. | System.Threading |
D. | System.Drawing |
Answer» A. System.Process |
41. |
Which of the following statements is correct about a namespace in C#.NET? |
A. | Namespaces help us to control the visibility of the elements present in it. |
B. | A namespace can contain a class but not another namespace. |
C. | If not mentioned, then the name 'root' gets assigned to the namespace. |
D. | It is necessary to use the using statement to be able to use an element of a namespace. |
Answer» 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? |
A. | Class |
B. | Struct |
C. | Enum |
D. | Data |
Answer» D. Data |
43. |
Which of the following statements is correct about a namespace used in C#.NET? |
A. | Nested namespaces are not allowed. |
B. | Importing outer namespace imports inner namespace. |
C. | Nested namespaces are allowed. |
D. | If nested, the namespaces cannot be split across files. |
Answer» C. Nested namespaces are allowed. |
44. |
Which of the following denote the web control associated with Table control function of ASP.NET? |
A. | DataList |
B. | ListBox |
C. | TableRow |
D. | All the above |
Answer» C. TableRow |
45. |
ASP.NET separates the HTML output from program logic using a feature named as |
A. | Exception |
B. | Code-behind |
C. | Code-front |
D. | None of the above |
Answer» B. Code-behind |
46. |
If a developer of ASP.NET defines style information in a common location. Then that location is called as |
A. | Master Page |
B. | Theme |
C. | Customization |
D. | None of the above |
Answer» 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 |
A. | Theme |
B. | Cross page posting |
C. | Code-front |
D. | None of the above |
Answer» B. Cross page posting |
48. |
The GridView control in ASP.NET has which of the following features |
A. | Automatic data binding |
B. | Automatic paging |
C. | Both A and B |
D. | None of the above |
Answer» C. Both A and B |
49. |
Which of the following denote page code model in ASP.NET? |
A. | Single File |
B. | Code Behind |
C. | Both A and B |
D. | None of the above |
Answer» C. Both A and B |
50. |
Which of the following denote New Data-bound Controls used with ASP.NET? |
A. | GridView |
B. | SqlDataSource |
C. | FormView |
D. | All of the above |
Answer» 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? |
A. | LinkButton |
B. | AdRotator |
C. | Both A and B |
D. | None of the above |
Answer» B. AdRotator |
52. |
In ASP.NET if one wants to maintain session then which of the following is used? |
A. | In-Process Storage |
B. | Microsoft SQL Server |
C. | Session State Service |
D. | All of the above |
Answer» 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 |
A. | Unload() |
B. | Load() |
C. | PreRender() |
D. | None of the Above |
Answer» B. Load() |
54. |
Give one word: What model does ASP.NET request processing is based on |
A. | Buttom-up |
B. | Top-down |
C. | Waterfall |
D. | Pipeline |
Answer» D. Pipeline |
55. |
What is the significance of Server.MapPath |
A. | Returns the physical file path that corresponds to virtual specified path |
B. | Returns the Virtual Path of the web folder |
C. | Maps the specified virtual path to Physical path |
D. | None |
Answer» A. Returns the physical file path that corresponds to virtual specified path |
56. |
Which method displays the custom control? |
A. | The PreRender |
B. | Render |
C. | Page_Loa |
D. | D Display |
Answer» B. Render |
57. |
When is the user controls code is executed |
A. | After the webform loads |
B. | After the page_init event of webform |
C. | Before Page_init event of web form |
D. | None of the above |
Answer» A. After the webform loads |
58. |
What section of the Web.config file is used for storing a list of authorized users? |
A. | Authorization |
B. | Authentication |
C. | SecurityPolicy |
D. | None |
Answer» A. Authorization |
59. |
The .NET Framework provides a runtime environment called |
A. | RMT |
B. | CLR |
C. | CTS |
D. | RCT |
Answer» B. CLR |
60. |
The .NET framework which provides automatic memory management using a technique called |
A. | Serialization |
B. | Garbage Collection |
C. | Assemblies |
D. | Overriding |
Answer» B. Garbage Collection |
61. |
Which of the following can be used to add alternating color scheme in a Repeater control? |
A. | AlternatingItemTemplate |
B. | DataSource |
C. | ColorValidator |
D. | None of the above |
Answer» A. AlternatingItemTemplate |
62. |
Which of the following method is used to obtain details about information types of assembly? |
A. | GetTypes |
B. | GetType |
C. | Both A and B |
D. | None of the Above |
Answer» C. Both A and B |
63. |
In ASP.NET the sessions can be dumped by using |
A. | Session.Dump |
B. | Session.Abandon |
C. | Session.Exit |
D. | None of the above |
Answer» B. Session.Abandon |
64. |
Which method do you invoke on the DataAdapter control to load your generated dataset with data? |
A. | Load() |
B. | Fill() |
C. | DataList |
D. | DataBind |
Answer» B. Fill() |
65. |
How many classes can a single .NET DLL contain? |
A. | One |
B. | Two |
C. | None |
D. | Many |
Answer» D. Many |
66. |
Which of the following denote the property in every validation control? |
A. | ControlToValidate |
B. | Text |
C. | Both A and B |
D. | None of the above |
Answer» C. Both A and B |
67. |
The type of code found in Code-Behind class is |
A. | Server-side code |
B. | Client-side code |
C. | Both A and B |
D. | None of the above |
Answer» A. Server-side code |
68. |
Common type system is built into which of the following: |
A. | CLR |
B. | RCT |
C. | RCW |
D. | GAC |
Answer» A. CLR |
69. |
What is Diffgram? |
A. | The one which renders the dataset object contents to XML |
B. | Finds the difference in two objects |
C. | Finds the difference in two files |
D. | None of the above |
Answer» A. The one which renders the dataset object contents to XML |
70. |
What is the lifespan for items stored in ViewState? |
A. | Exists for the Life of the current page |
B. | 20 mins |
C. | 2 mins |
D. | 2 sec |
Answer» A. Exists for the Life of the current page |
71. |
What data types do a RangeValidator Support? |
A. | Integer |
B. | String |
C. | Date |
D. | All of the above |
Answer» D. All of the above |
72. |
To set page title dynamically in ASP.NET which of the following is used? |
A. | None of the above |
B. | <sheet> section |
C. | <tail> section |
D. | <head> section |
Answer» D. <head> section |
73. |
In ASP.NET application the Global.asax file lie in which directory |
A. | Application |
B. | System |
C. | Root |
D. | None of the above |
Answer» C. Root |
74. |
The control used in ASP.NET to display information from data set but with better formatting and editing behavior is |
A. | Panel |
B. | Button |
C. | DataList |
D. | None of the above |
Answer» C. DataList |
75. |
How do we Delete, Update, Select data in a Dataset? |
A. | Using SQLDataAdapter |
B. | Using SQLDataReader |
C. | Using SQLComman |
D. | D None |
Answer» A. Using SQLDataAdapter |
76. |
What is the size of the session ID? |
A. | 32 bit long string |
B. | 32 bit long double |
C. | 32 bit long character |
D. | 32 bit long integer |
Answer» D. 32 bit long integer |
77. |
Which of the following extension does a WebService file will have? |
A. | .asmx |
B. | .aspx |
C. | .ascx |
D. | .resx |
Answer» A. .asmx |
78. |
Which of the following extension does a WebForm file will have? |
A. | .asmx |
B. | .aspx |
C. | .ascx |
D. | .resx |
Answer» B. .aspx |
79. |
What is default timeout of session? |
A. | 5 |
B. | 10 |
C. | 20 |
D. | 30 |
Answer» C. 20 |
80. |
Which concept is used to provide consistent layout in webform? |
A. | Master Page |
B. | Themes |
C. | GridView |
D. | None of the above |
Answer» A. Master Page |
81. |
An alternative way of displaying text on web page using |
A. | Asp:label |
B. | Asp:listitem |
C. | Asp:button |
D. | None of the above |
Answer» A. Asp:label |
82. |
Why is Global.asax is used? |
A. | Declare Global variables |
B. | Implement application and session level events |
C. | No use |
D. | None of the above |
Answer» B. Implement application and session level events |
83. |
Which of the following is not a member of ADO DBCommand object? |
A. | ExecuteScalar |
B. | ExecuteStream |
C. | Open |
D. | ExecuteReader |
Answer» C. Open |
84. |
Default Session data is stored in ASP.Net. |
A. | StateServer |
B. | Session Object |
C. | InProcess |
D. | all of the above |
Answer» C. InProcess |
85. |
Which of the following control is used to validate that two fields are equal? |
A. | RegularExpressionValidator |
B. | CompareValidator |
C. | Equals() metho |
D. | D RequiredFieldValidator |
Answer» B. CompareValidator |
86. |
Mode of storing ASP.NET session |
A. | InProc |
B. | StateServer |
C. | SQL Server |
D. | All of the above |
Answer» D. All of the above |
87. |
Which of the following denote ways to manage state in an ASP.Net Application? |
A. | Session objects |
B. | Application objects |
C. | ViewState |
D. | All of the above |
Answer» D. All of the above |
88. |
In .NET the operation of reading metadata and using its contents is known as ______? |
A. | Reflection |
B. | Enumeration |
C. | Binding |
D. | Serialization |
Answer» A. Reflection |
89. |
When an .aspx page is requested from the web server, the output will be rendered to browser in following format? |
A. | HTML |
B. | XML |
C. | WML |
D. | JSP |
Answer» A. HTML |
90. |
Select the control which does not have any visible interface. |
A. | Datalist |
B. | DropdownList |
C. | Repeater |
D. | DataGrid |
Answer» C. Repeater |
91. |
Which of the following languages are used to write server side scripting in ASP.NET? |
A. | C-Sharp |
B. | VB |
C. | Both C-Sharp and VB |
D. | C++ |
Answer» C. Both C-Sharp and VB |
92. |
By default, ASP.NET store SessionIDs in _________. |
A. | Cookies |
B. | Cache |
C. | Database |
D. | Global Variable |
Answer» A. Cookies |
93. |
Which of the following is not an ASP.NET page event? |
A. | Init |
B. | Load |
C. | Import |
D. | Disposed |
Answer» C. Import |
94. |
What class does the ASP.NET web form class inherit from by default? |
A. | System.Web.UI.Page |
B. | System.Web.UI.Form |
C. | System.Web.GUI.Page |
D. | System.Web.Form |
Answer» A. System.Web.UI.Page |
95. |
Master pages are used to provide the code and appearance that are the same for a series of __________. |
A. | Content Pages |
B. | Base pages |
C. | Both A and B |
D. | None of the above |
Answer» A. Content Pages |
96. |
Menus, TreeView and SiteMapPath controls cannot be styled with CSS |
A. | True |
B. | False |
C. | none |
D. | all |
Answer» B. False |
97. |
Every Server control must have an Id |
A. | True |
B. | False |
C. | none |
D. | all |
Answer» A. True |
98. |
Application_Start event is available in ___________. |
A. | Web.config |
B. | Local.asax |
C. | Global.asax |
D. | None of the above |
Answer» C. Global.asax |
99. |
Properties and Indexer are used to access which type of data members? |
A. | Private |
B. | Publi |
C. | C Protecte |
D. | D Internal |
Answer» A. Private |
Done Reading?