McqMate
These multiple-choice questions (MCQs) are designed to enhance your knowledge and understanding in the following areas: Computer Science Engineering (CSE) , Information Technology Engineering (IT) , Programming Languages .
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 Studing? Take A Test.
Great job completing your study session! Now it's time to put your knowledge to the test. Challenge yourself, see how much you've learned, and identify areas for improvement. Don’t worry, this is all part of the journey to mastery. Ready for the next step? Take a quiz to solidify what you've just studied.