1. Where are private assemblies stored in ASP.NET?
2. We can manage states in asp.net application using
3. Which form is used in ASP.NET?
4. Extension of a web user control file?
5. Which property all the ASP.NET controls have?
6. What is ASP.Net
7. Which method of the ServiceController class will allow you to send a command to the service?
8. Can you set which type of comparison you want to perform by the CompareValidator control?
9. Which version of ASP .NET MVC has built-in support for mobile targeting?
10. Which ASP.NET directory stores class files (.cs) by default?
11. Which HTML control property should be set to access control from code behind?
12. Which attribute must be set on the validator control for the validator to work?
13. Which is associted with ASP.NET User controls?
14. In Asp.Net Server.MapPath('.') points to which location
15. Which control is used to validate that two fields are equal?
16. In which event are the controls fully loaded?
17. ASP.NET stores membership, role management, and profile information in which database?
18. Which is not a .NET compatible language?
19. Session is maintained using the methods:
20. Default timeout of session in asp.net?
21. How do you enable impersonation in the web.config file?
22. Where is the ViewState information stored?
23. First method executed in the Page life cycle in ASP.NET is:
24. Can Web API be hosted in its own process without IIS?
25. Which contains one or more variables that are accessed through sequential indices?
26. Which describes setting up an async page in .NET 4.5?
27. How to make a controller action async?
28. Can MVC, Web Forms and Web API be mixed in the same project?
29. How can an MVC View be protected from CSRF?
30. Which formats can Web API work with?
31. It is true that lines are reference type?
32. What method(s) must be used with the Application object to ensure that only one process accesses a variable at a time?
33. Property used to access user's locale information is:
34. Without Web.config file application will not compile or Run.
35. ..... is a special subfolder within the windows folder that stores the shared .NET component?
36. In LINQ what is the difference in .Ancestor and .Parent?
37. You are developing ASP.NET templated server control. You need to ensure that a new ID namespace is created within the page control hierarchy when the control is added to the page. Which interface should you implement on the control?
38. Can you run a web application without the web.config file?
39. In the following example, is viewstate being set? (Test.aspx - viewstate enabled) (Test.aspx.cs) protected override void OnLoad(EventArgs args) { this.LabelTest.Text = 'changed'; base.OnLoad(e); }
40. First step in Asp.Net MVC request cycle.
41. Where is the default Session data stored in ASP.Net?
42. Which two new properties are added in ASP.NET 4.0 Page class?
43. Contents of assembly file can be investigated using
44. In which SessionState Modes the Session_End event fires?
45. How to disable client-side validation in ASP.NET?
46. When would WCF be a better solution than Web API?
47. Which is not ASP.NET directives?
48. Maximum number of cookies that can be allowed to a web site?
49. I have a property in my code-behind get { return (Custom)Session['Custom']; } set { Session['Custom'] = value; } and I receive a serialization error What are the possible solutions?
50. Property used to retrieve a username in Windows Authentication?
51. Method introduced in ASP.NET 4.0 to redirect a page permanently?
52. What are the three IIS isolation levels?
53. What is wrong with this code? string email = emailTextbox; string SQL = 'select * from users where username = '+email+' '; SqlCommand myCommand = new SQLCommand(SQL, myConnection) try { myConnection.Open(); SqlDataReader myReader=myCommand.ExecuteReader(); if (myReader.Read()) { ...
54. Events that are correctly ordered according to the Application lifecycle?
55. What is correct Syntax for applying FAViCON ICON to your web page.
56. Which is true about the GridView in .NET 4.5?
57. How can Web API OData support be implemented?
58. Using DateTime.Now is much faster than using the Timestamp property
59. In ASP.NET if you want to allows page developers a way to specify static connections in a content page then the class used is
60. Not a Web Form Event in ASP.NET: Page_Dispose Page_Error Page_AbortTransaction Page_CommitTransaction
61. What can we specify in the web.config to apply Themes to an ASP.NET application?
62. Under what condition(s) should a controller action be made async?
63. Which locking technique is considered speculative?
64. Strategies for partitioning threads in a PLINQ query?
65. How to turn off cookies for a page?
66. How Web API OData support partial updates?
67. Asynchronous behavior is related to
68. Which statements is true?
69. Faster way of resolving paths?
70. Property used to set absolute cache expiration in ASP.NET is:
71. When decorating a function with async, what is the appropriate return type?
72. Method to enforce garbage collection in .NET?
73. What type of links 'http://test.com/test.aspx'?
74. If a developer of ASP.NET defines style information in a common location. Then that location is called as
75. Can we access and change value of a control which is defined in a Master page from the child page?
76. Type used to manage client-side state?
77. First event which gets triggers or fires in an Aspx Page?
78. Which control does not have any event?
79. Method used to explicitly kill a users session?
80. Can we have multiple web.config files in a web application?
81. What is true about System.Security.Cryptography under version 3.5 of the framework?
82. Which differentiates a UserControl from a Custom Server control?
83. In the following web.config directive: Is 'Off' case-sensitive?
84. Which is used to disable client side script in validators?
85. Method name to make upper case to string value?
86. SVC extension used for?
87. Which class does the ASP.NET web form class inherit from by default?
88. How to secure a whole ASP.NET MVC4 website?
89. Which Style property of the GridView Control is used for formatting Gridview Pages?
90. Method to kill explicitly a user's session?
91. Which type is used to manage server-side state?
92. Property to get a client side id for a control at run time?
93. Default scripting language in ASP.NET?
94. Which is used to sign out from forms authentication?
95. Which base class do all Web Forms inherit from?
96. Default timeout for a Cookie?
97. Which threading model is used in ASP.NET?
98. Role of the Web API Media Type Formatter?
99. What is the separation of presentation and content?
100. Which SessionState Mode causes the Session_End event to fire?
101. Which property supports Cross Page Scripting in ASP.NET?
102. Which event is fired at the beginning of each request to the server?
103. Which is used to get info from a form that is submitted using the post method?
104. Which is used to validate complex string patterns (i.e. email)?
105. When an .aspx page is requested from the web server, in which format will the the output be rendered to the browser?
106. In server control, which provides an alternative way of displaying text on web page?
107. In which form does Postback occur?
108. How programmer displays all validation messages in one control?
109. Which property of the Page class is used to determine if the page has posted back?
110. Can a programmer write serverside code inside an aspx page?
111. Which is the common type system built into?
112. Which default file type is used on a web page in ASP.NET?
113. Which syntax to inherit from a class in C#?
114. Difference between machine.config and web.config?
115. Which identifies a postback?
116. Necessary .NET remote server object implement?
117. Which is the method to author pages in ASP.NET?
118. Which stage of page life-cycle occurs last?
119. Difference between int.Parse() and Convert.ToInt32()?
120. How many forms can be added to a aspx page?
121. How to show the entire validation error message in a message box on the client side?
122. Which is the parent class of the Web server control?
123. How to register a custom server control to a Web page?
124. Difference in Application State and View State?
125. Denotes the web control associated with the Table control function of ASP.NET?
126. Which is logical and physical boundary created around every .NET application?
127. Which Microsoft technology preceded ASP.NET?
128. Which feature separates the HTML output from program logic?
129. Which feature in ASP.NET 2.0 is used to fire a normal postback to a different page in the application?
130. How ASP.NET run-time detect the user session id ?
131. Which delimiters surround ASP server scripts?
132. Which low level Request and Response API is used to service incoming Http requests?
133. Not a WCF service behavior?
134. Which method of Global.aspx will handle application's un-handled exceptions?
135. Which of the following is the same as '<%=' ?
136. Where does ASP.NET store SessionIDs by default?
137. Method to load an assembly dynamically?
138. 1st method that is fired during the page load?
139. Which techniques can be used to implement the Client-Based state management?
140. Which is done before consuming a web service?
141. Method used to check for integrity of data in a Request object?
142. Page navigation means moving from one page to another page in your web site and another. Which feature allows for many ways to navigate from one page to another in ASP.NET?
143. Built-in WCF message encoder implementations?
144. Attribute used in the @Page directive to enforce compatibility between ASP.NET and old COM components that do not support MTA model?
145. Which is the correct use of '_' in ASP.NET?
146. View engine(s) does ASP.NET MVC use by default?
147. How to protect the asp:login object from SQL Injection attacks?
148. How can a programer set a Query using Jquery?
149. Which HTTP status code returns by Response.Redirect('...')?
150. Which infrastructure supports these dynamic operations at run time?
151. Which XML format is used to render DataSet object contents to XML?
152. Which is the file extension for ashx files?
153. Which are primary request headers involved in Web API content negotiation?
154. Property used to ensure that the encoded and encrypted viewstate is not tampered with?
155. Statement prevents a browser from caching an .aspx page?
156. Consider the following events: 1. Page_Load 2. Page_Unload 3. Control Event 4. Page_Init What is the order of their execution?
157. You want to send the string 'hello there' as a Querystring parameter called 'greetings' to a web page named 'greetings.asp'. Which of the following statements is correct?
158. You want to perform a batch update using the Batchupdate method. What values would you assign to the CursorType and LockType properties of the Recordset object?
159. ObjectContext object used for?
160. Is it a good practice to explicitly convert the datatypes of session variables, form variables and querystring variables by using conversion functions before performing operations on them?
161. Output will be? <% response.write(application('a'))%> <%= application.value('b') %>
162. What will the following code do? <% newdate = dateadd('mm',4,now) %>
163. Your ASP file generates a lot of content. You do not want the user to see a blank page while the entire ASP file is being processed. You want the ASP file to send content to the user as and when it gets generated. How would you achieve this ?
164. While executing an ASP script, you receive an error message- Object doesn't support this property or method. Which of the following could be the most probable cause of this error?
165. Statements regarding an ASP application are mentioned below. Which is the incorrect one?
166. You want to fill a list box with data from a database. What values would you assign to the CursorType and LockType properties of the Recordset object?
167. Output will be? 1 <% 2 num1=10 3 response.write('Before=' & num1) 4 call dbl(num1) 5 response.write(' After=' & num1) 6 sub dbl(byref num1) 7 num1=num1*2 8 response.write(' During=' & num1) 9 end sub 10 %>
168. Purpose of the global.asa file?
169. Fastest way of connecting to a database?
170. Which function would you not use in an Active Server Page?
171. How to include spaces and other special characters in a query string?
172. A particular web site contains a lot of violence, bad language etc. What property of the response object would you use to define its content?
173. Correct reason for session variables to fail?
174. When you use the Request.BinaryRead method?
175. What is the output of the following code? <%= now %>
176. What Application.Lock method do?
177. When application_onstart event fired?
178. Your ASP application communicates with a server that may not always be available. You need to be able to communicate asynchronously with the server. What technique/technology would you use?
179. You want to give two directives - EnableSessionState and Language in the same statement. What will the correct syntax be?
180. For what purpose is the HTMLEncode method of the server object used?
181. The command Session.Contents.RemoveAll() will:
182. Need to enable/disable sessions on a page to page basis. Which statement will you give on each page to disable the sessions?
183. First field of a Recordset rs is phone. Which statement can be used to display its value?
184. Output will be? for i = 0 to rs.fields.count response.write rs.fields(i).name next where rs is a recordset containing data from a table
185. Not a valid error-handling statement?
186. You want to update the records in a database that match a certain criteria. You run a SQL Update statement through the Execute method of the Connection or Command object. How can you determine the number of rows affected by the Update statement?
187. Option Explicit statement is used for?
188. Which will hamper the efficiency of an ASP application?
189. Character used to break a VBScript statement into multiple lines?
190. When is the Session_OnEnd event fired?
191. The IsClientConnected property can be used to:
192. What is the error in the following code? response.write 'hello' response.charset = 1252 response.write 'there'
193. You want to ensure that the value of a variable does not change and remains constant. How can you do this?
194. Output of the following code? dim i response.buffer = False response.write i
195. Which of the following code examples will write a cookie named 'a' with the value 'hello'?
196. You are working with ASP and Microsoft SQL Server. You want to create new tables in your database through ASP pages. Which of the following is true?
197. Which statements about ASP and XML is true?
198. The site you are programming for is switching from single-valued cookies to a dictionary cookie. The already issued cookies are valid for eight months, and you have to deal with the old and the new cookies. How can you differentiate between the two?
199. In which collection will the 'a' object be placed? Set Application('a') = Server.CreateObject('C1.Object')
200. What does Server.MapPath method do?
201. While creating and testing an ASP page, you receive an error while navigating backwards in a Recordset. What changes would you make to rectify the problem?
202. What does ScriptTimeout property do?
203. When Session_OnStart event fired?
204. Statements not true regarding the use of stored procedures in an ASP script?
205. Which is the most secure method to retain the state of a user?
206. Language to be used for the ASP page can be specified:
207. Which are not ADO optimization techniques?
208. Which is true regarding the End method of the Response object?
209. You want to perform bit level operations through an ASP page. Which will be true?
210. Advantage of creating objects with the tag rather than the Server.CreateObject method? 211. Which is not an optimization technique? 212. Browser is sending an HTTP header with the name Accept. Which statement reveals its value on the server? 213. After how many minutes does the ASP session expire? 214. An ASP file is: 215. Which is false about the below statement? response.expires = 0 216. What data can be accessed through ActiveX Data Objects? 217. Server variable Content_Length return? 218. Which statements regarding the element is false? 219. How to limit the number of rows returned by a database query? 220. How are sessions maintained in ASP? 221. Which holds true regarding database handling in ASP? 222. What does the HTTP_USER_AGENT server variable represent? 223. You are posting values from an HTML form to an ASP page. The HTML form contains a radio button group named mstatus with the following definition: In the ASP page, how will you determine which radio button was selected by the user? 224. Problems with maintaining session state in ASP? 225. Not a drawback of cookies? 226. Which file extension will not be served over HTTP and any direct URL request for it is automatically rejected? 227. Which DLL translate XML to SQL in IIS? 228. Languages used to write server side scripting in ASP.NET? 229. Lifespan for items stored in viewstate? 230. .NET framework which provides automatic memory management using a technique called ...? 231. Which process runs the ASP.NET application on a web server? 232. An ASP.NET page uses a Datagrid displays employee information.The Web application supports a large number of concurrent users, who will be saving data from the grid back to the database. It is important that the Web application doesn't overwhelm the Web Server? 233. Page event most suitable to programmatically change the master page? 234. .NET Framework provides a runtime environment called? 235. In my .NET Framework, I have threads. Which denotes the possible priority level for the threads? 236. Difference between Response.Write() and Response.Output.Write()? 237. Sequence in which Page_Load events are executed? 238. What data types do a Rangevalidator supports? 239. Namespace does the Web page belong in the .NET Framework class hierarchy? 240. ASP.NET uses the multi-language abilities of the .NET Common ...., allowing Web pages to be coded in VB.NET, C#, J#, Delphi.NET? 241. Technologies being used in AJAX? 242. How ASP.Net Different from classic ASP? _____ is a data source control which will not implement Caching. " class="related-a"> 243. _____ is a data source control which will not implement Caching. 244. User configurable arbritrary list filtering in C#? 245. Different controls of ASP.NET AJAX? 246. You are the lead developer on a team that has been working on a large website for months, and several controllers are getting unwieldy. You do not have that problem with views and models because most of your communications are through AJAX to display snippets of information on the UI. What changes can best help you solve your problem? 247. Explain the limitations of AJAX as following statement? 248. Represents the best use of the Table, TableRow, and Table-Cell controls? 249. ASP.NET/URL Rewriting in a development environment? 250. Best way to intercept every request for an image on your site and ensure that a watermark is added to the image? 251. Which is the way to monitor the web application? 252. For an ASP.NET deployment on IIS, the maximum number of worker processes are defined at which level? 253. Defines the collection trigger objects, each corresponding to an event causing the panel to refresh automatically. 254. Which kind of data we can store in ViewState? 255. Custom Controls are derived from which class? 256. Not a valid type of parameter for an SqlDataSource? 257. As you design a session-less state management system, what do you need to ensure that your application manages? 258. Where are routes registered in ASP.NET MVC Application? 259. Layout.cshtml and Site.Master are the two default template pages in ASP.NET MVC. Which scenario would best be solved using a single layout or master template? 260. To prevent a browser from caching a page which of these statements should be written? 261. How to traditionally consume an ASMX web service from your application? 262. If you have View with @Page directive to inherit from ViewPage then your View is .... ? 263. In ASP.NET 2.0 web application you want to display an image that is selected from a collection of images. What approach will you use to implementing this? 264. ... element in the web.config file to run code using the permissions of a specific user? 265. You are modifying an ASP.NET MVC web application and you have created a new master layout page named _Layout.WindowsPhone.cshtml. You want to use that layout in a new view. Which code segment do you use? 266. Predefined TraceListener(s) in ASP.Net? 267. We have defined one page_load event in aspx page and same page_load event in the code behind which will run first? 268. For your ASP.NET web application your graphics designer created elaborate images that show the product lines of your company. Some of graphics of the product line are rectangular, circular, and others are having complex shapes. You need to use these images as a menu on your Website. What is the best way of incorporating these images into your Website? 269. Does not have any visible interface? 270. An extension with both client-side as well as server-side components for writing ASP.NET pages that incorporate AJAX functionality? 271. New features of ASP.NET AJAX 4.0? 272. If I’m developing an application that must accommodate multiple security levels though secure login and my ASP.NET web application is spanned across three web servers (using round-robin load balancing) what would be the best approach to maintain login-in state for the users? 273. Why to create a custom role provider? 274. Components of the ASP.NET AJAX architecture? 275. Default session timeout value for an ASP.NET application or website? 276. To enable single-sign-on across multiple ASP.NET applications. Which statement will be true? 277. How to tell the website administration tool which provider to use following code? 278. Accessing Asp.net controls using jQuery as following? 279. If runat='server' is omitted from a GridView definition, which statement will not be true? 280. For an ASP.NET deployment, .NET framework is configured at which level? 281. Which tags equals Response.Write? 282. Declaring more than one form tags with runat='server' on an ASPX page will result in? 283. Users with which Role(s) will be able to use TestController defined below? [Authorize(Roles = 'Admin')] [Authorize(Roles = 'Group')] public class TestController : Controller { ... } 284. Suppose, on an .ASPX page, we have two separate data entry forms with submit buttons. How can we ensure that submitting the first form does not validate any controls in the second form, and vice versa? 285. ASP.NET Page Unload event is raised when? 286. How to ensure that a validator control displays error message only when the associated control is invalid? 287. Suppose, the web.config has defined a theme for the application, but theming is disabled in the master page file like this: <%@ Master EnableTheming='false' %> Which of the following statements will be true: 288. Which controls can be declared inside a TemplateField of a GridView control? 289. What is middleware in ASP.NET Core/Open Web Interface for .NET (OWIN)? 290. Which session-state mode is not a valid option for the Web Farm deployment to work? 291. Not a valid option in OutputCache directive? 292. Not a column type for a GridView? 293. Let's suppose a SqlDataSource and a GridView are configured with SELECT and UPDATE queries; and GridView has AutoGenerateEditButton=True, how can we ensure data concurrency in an efficient way? 294. Purpose of Page.EnableEventValidation='true' is that? 295. Maximum number of content placeholders in a master page is? 296. If a server control is declared inside an UpdatePanelUpdateMode='Conditional',Which is true? 297. Default file upload size supported by ASP.NET in mega bytes? 298. How do you ensure that a TextBox input is a valid Date value? 299. We should install an SSL certificate on an IIS website so that? 300. Difference between ListView and GridView is? 301. How to determine what version(s) of ASP.NET are running on a system? 302. .... is not a member of ADODBCommand object? 303. Code behind classes are partial classes because? 304. ASP.NET Page class has IsPostBack property. How does ASP.NET recognize a Postback? 305. The following control option will be used when you have 2 different web form controls in an application and you want to know whether the values in the 2 different web form control match: 306. If one has two different web form controls in an application and if one wanted to know whether the values in the two different web form controls match, what control must be used? 307. You are developing an ASP.NET MVC 2 application. A view contains a form that allows users to submit their first name. You need to display the value that is submitted, and you must ensure that your code avoids crosssite scripting. Which code segment should you use? 308. Accessing Asp.net controls using jQuery is demonstrated by 309. Where can we assign value to Static read only member variable of a static class? 310. ... is a property of the session object that is used to set the local identifier. 311. Option to get the text inside the new HTMLEditor in ASP.Net Ajax Control Toolkit? 312. Which statement is True? 313. How to use real-time configurations in an ASP.NET application without restarting it? 314. You are modifying an existing ASP.NET MVC web application to incorporate mobile access. What should you do to ensure that mobile devices view mobile-only pages? (Choose all that apply.) 315. To enable client-side callbacks in an ASP.NET page that do not trigger a postback, you must need to? 316. Defines the collection trigger objects with each corresponding to an event the causes the panel to refresh automatically? 317. If there are threads in a .NET Framework, which option will tell you the priority level for the threads? 318. Which is true about Connecting SqlAzure database in conventional way? 319. Uses multi-language abilities and allows Web pages to be coded in VB.NET, C#, J# and Delphi.NET? 320. Retrieves the dynamically created template container object and is used for adding child controls programmatically? 321. Property affects how the .NET Framework handles formatting issues, sorting issues, currencies and handling dates? 322. ____is the namespace within the Microsoft.NET framework which provides the functionality to implement transaction processing. 323. Declaring more than one page directives on an ASP.NET page will result in? 324. Which is true about AutoPostBack property of a server control? 325. Option ideally suited for managing database connections? 326. Objects required by the Dataset to retrieve data from a database and to save updated data back to the database? 327. Which code should you use to copy the edited rows from dataset Licenselnfo into another dataset LicenseChanges? 328. You are creating an ASP.NET Website for your company. The Website will use both MicrosoftR) .NET Framework server controls and ActiveX controls. You want to use Microsoft Visual Studio(R) .NET to create a Setup and Deployment project to package the Activex controls. Which project type should you create? 329. Not an ASP.NET Input Validation Control? 330. Inheritance is a process by which the objects of parent class acquire the properties of child class. 331. Correct one when starting a form tag? 332. Which is correct If you want to import a Cr: class called myClass that is implemented in the myClass.cs file into a .aspx page? 333. Options available for packaging? 334. XML web services of .NET framework are built on: 335. Core components of .Net framework data provider model? 336. How many classes can a single .NET DLL contain? 337. Which class acts as a base class when you develop your own custom control? 338. You have three classes named A, B, and C. The class B is derived from class A and class C is derived from B. Which relations are correct for the given classes? 339. The global assembly cache: 340. You need to install an online parcel tracking application and its supporting assemblies so that the application and its assemblies can be uninstalled using the Add/remove Programs Control Panel applet. What should you do? 341. Which directive can be used to include libraries in an ASP.NET page? 342. Capable of returning multiple rows and multiple columns from the database? 343. Your company, Storeit inc has stored the text of several journals in a Microsoft SOL Server 7.0 database. Each sentence is stored in a separate record so that the text can be retrieved with the finest granularity. Several of these works are many thousands of printed pages in length. You are building a Web application that will allow registered users to retrieve data from these volumes. When a user of your Web application requests large amounts of text. your application must return it in the most effident manner possible. How should you build the large String object that is required to provide the most efficient response to the user? 344. How to pop-up a window to display text that identifies the author of the book? 345. You are developing an application to take orders over the lnternet. When the user posts back the order form, you first check to see whether he is a registered customer of your company. if not, you must transfer control to the Register html page. Which method should you use to effect this transfer? 346. How to view the results of Trace.Write() statements? 347. What is Encapsulation? 348. You are creating an ASP.NET application. Tire application will be deployed on intranet. Application uses Microsoft Windows authentication. More than 100 users will use the ASP.NET application simultaneously. The project manager wants you to use connection pooling. What should you do? 349. You create an ASP.NET page named ProjectCalendar.aspx that shows scheduling information for projects in your company. The page is accessed from various other ASP and ASP.NET pages hosted throughout the company’s intranet. All employees on the intranet use Internet Explorer. ProjectCalertdar.aspx has a Calendar control at the top of the page. Listed below the Calendar control is detailed information about project schedules on the data selected. When a user selects a date in the calendar. The page is refreshed to show the project schedule details for the newly selected date. Users report that after viewing two or more dates on ProjectCalendar.aspx. they need to click the browser's Back button several times in order to return to the page they were viewing prior to accessing ProjectCalendaraspx. You need to modify ProjectCalentlaraspx so that the users need to click the Back button only once. What to do? 350. .NET framework has data providers for: 351. True or false? There can only be one @control directive in a single file. 352. Valid methods of the SqlTransaction class? 353. How many bits the int datatype use in .NET? 354. You have defined a command named 'comA‘ and an open connection named ‘con'. You created a new transaction: Dim trans As SglClienthlTransaction — Nothing How will you assign the command to the transaction and begin the transaction? 355. You create an ASP.NET page named Customecaspx. Customeizaspx contains a Web user control that displays a drop—down list box of Cities. The Web user control is named CityList, and it is defined in a file named CityList.ascx. The name of the DropDownList control in Cityascx is CuCity. You try to add code to the Page.Load event handler for Customenaspx. but you discover that you cannot access CuCity from code in Customeraspx. You want to ensure that code within Customeraspx can access properties of CuCity. What should you do? 356. You are creating an ASP.NET page for your company's Web site. Customers will use the ASP.NET page to enter payment information. You add a DropDownList control named oPaymentTypeList that enables customers to select a type of credit card and bank accounts. You need to ensure that customers select a credit card type. You want a default value of Select to be displayed in the oPaymentTypeList control. You want the page validation to fail if a customer does not select a payment type from the list. What should you do? 357. You are creating an ASP.NET application for AutoMart Internet Web site. A toolbar is required that will be displayed at the top of each page in the Web site. The toolbar will contain only static HTML code. The toolbar will be used in only AutoMart website. You plan to create the toolbar as a reusable component for your application. You need to create the toolbar in am possible time. Which method will you adopt? 358. Which does not constitute the benefits of CLR? 359. When you make some changes to the configuration file. do you need to stop and start IIS to apply the new settings? 360. When is the viewstate created? 361. Which helped overcome the DLL conflict (faced by the versions prior to .NET). 362. Server based controls can be accessed from: 363. Which help increases the code clarity? 364. You have developed a custom server control and have compiled it into a file named FirstReportdll. The code is displayed below: <%@ Register TagPrefix='CertKing Tag' Namespace='ReportNS' Assembly='CertKing Report’ %> You want to set the PageNumber property of the control to 77. Which of the following lines of code should you include In your Web Form? 365. What happens when boxing occurs? 366. Is it possible to create a class in C# that inherits from a VB class? 367. Which is not true? 368. You are developing a website that has four layers. The layers are user interface (web pages). businessobjects. data objects, and database. You want to pass data from the database to controls on a web form. What should you do? 369. Control's value set during the postback can be accessed in: 370. You are creating an ASP.NET page for Premium Consultants. You create a DataGrid control that displays past purchases made by the user. The DataGrid control is populated from an existing database when the page is created. The page contains TextBox controls that allow users to update their personal information, such as address and telephone number. You need to ensure that the page is refreshed as quickly as possible when users update their contact information. What should you do? 371. You created a stored procedure to retrieve the following details for the given customer:CustomerName, Address, PhoneNumberWhich of the following is an ideal choice to get the best performance? 372. Which is used to add an Unbound Column in a DataGrid? 373. Which benefit derived from using OOPS? 374. Code not 'managed' by default in .NET framework? 375. Correct statement with regard to .NET framework managed web pages? 376. Set the default language for all of your application logic to C#? 377. Default configuration file for each application? 378. What happens if the Server configuration file and the Application configuration file have different values for session state? 379. Which is not an event of the Page class? 380. You want to create a cookie object named CustomerAddress of type Ctlstomerlnfo to maintain address information of customers who buy products online. Which of the following code snippets should you use to create this cookie? 381. You are creating an ASP.net application to enter timesheet data intuitively. Users will enter data using a data grid. You have added a button column to your data grid. The button column uses a custom button to allow users to initiate some calculations on the data in the grid. Which event does the DataGrid control raise when the custom button is clicked? 382. In which namespace the Assembly class is defined? 383. Two users, Monique and James are using ADO.NET MlS system. The data refresh time In the system is set to 15 minutes. James changed the mailing address of a customer named Majda, and updated the database. Before database refresh. Monique also updated the same customer's address as per her pending requests folder. What will happen when Monique saves the changes? 384. Which statement is correct? 385. DLL responsible for processing the page requests running on the server? 386. Which statement is correct with regard to Polymorphism? 387. Which is not a feature of .NET 2.0? 388. You are debugging a Visual Basic application. You add a variable to the watch window. When Visual Basic enters break mode, the Value of the expression variable is '. What is the most likely cause of the problem? 389. John is maintaining an ASP.NET application named HigherProfits. The application is written In Visual Basic .NET. The application includes a page named YearlySale.aspx that resides within the Sales namespace. The page class is named Yearlysale. You discover that another developer accidentally deleted the Page directive for YearlySale.aspx. You want to create a new Page directive to allow YearlySaieaspx to work properly. Which directive should you use? 390. .NET programs are compiled into CPU independent instruction set. named: 391. Not a service provided by Common Language Runtime (CLR)? 392. Which one is not a valid directive? 393. You are the software engineer for Premium Corp.. One of the pages in an ASP.NET application contains the following declaration: <%@ Register Tagprefix='WoodySideBankControls' Namespace=‘WoodySideBankNameSpace' Assembly='MyAssembiy' $63- The assembly named MyAssembly contains a custom server control named CSC1. Which of the following code samples will property render CSCi on the Web page? 394. Total no of events in Global.asax file in Asp.NET? 395. How many times can classes be nested within a class? 396. What line of code do? <%@ Register tagprefix='ril' Tagname='test' Src='rilTest.ascx' %> 397. Dot Net Framework consists of : 398. You are debugging an ASP.NET application for Premium Corp.. Users will use the application to produce reports. Your application contains several DebquriteLine statements. Which window in Visual Studio .NET should you use to inspect output from the Debug.WriteLine statements? 399. Which are true Serializable objects (ie. they implement Serializable interface)? 400. You create an ASP.NET page that allows a user to enter a requested delivery date in a TextBox control named txtDelDate. The date must be no earlier than two business days after the order date. and no later that 60 busmess days after the order date. You add a CustomValidator control to your page. In the Properties window you set the ControIToValidate property to txtDeiDate. You need to ensure that the date entered in the txtDelDate TextBox control falls within the acceptable range of values. In addition. you need to minimize the number of round trips to the server. What should you do? 401. You are creating an ASP.NET application that will run on your company's intranet. You want to control the browser window and respond immediately to non-post~back events. Which should you use? 402. When users edit data, this code runs to completion, but no data changes appear In the database. You test the update query and the connection string that you are passing to the procedure. and they both work correctly. You need to change the code to ensure that data changes appear in the database. What should you do? 403. You are creating an ASP.NET application that will authenticate truck drivers for drug tests. You want to prompt users for their user names and passwords. Which type of authentication should you use in your application? 404. Exception handling should be used: 405. We are iterating through the results received in a data reader named 'DReaderOrder.' which is created by using the connection 'SqlCon.' In between we need to retrieve some more values from the database. so we executed another command in the same connection to get the results in a new data reader named 'ReaderProduct.' What will be the result if we are using ADO.N ET 2.0? 406. Can you define your own Exception classes in ASP.NET? 407. Way to handle Unmanaged Code Exceptions in ASP.NET? 408. What does Managed Data refer to? 409. Which statement is incorrect with regard to a CommandBuilder object? 410. The .NET framework comes with a few CLR hosts. Which is a CLR host? 411. You are a web developer for an international literary website. Your application has a lot of text content that requires translation and few executable components. Which approach would you use? 412. You want to access data from the 'Customer' table in the database. You generate a DataSet named 'MyDataSet' by adding 'Customer' table to it. Which statement should you use to load the data from the database into 'MyDataSet' using a SqlDataAdapter named 'tvlyAdapter' 413. Which languages is not part of CLR? 414. Which is true? (a)MSIL code is platform independent (b)CLR is platform dependent 415. XYZ is creating an e-commerce site for PremiumBouthue. The site Is distributed across multiple servers In a Web form. Users will be able to navigate through the pages of the site and select products for purchase. XYZ wants to use a DataSet object to save their selections. Users will be able to view their selections at any tinte by clicking a Shopping Cart link. XYZ wants to ensure that each use's shopping cart DataSet object is saved between requests when the user Is making purchases on the site. How can this requirement be implement? 416. What will be returned when this command is executed using ExecuteReader method? 417. In Forms-based authentication, which is not an attribute of the element? 418. On which platform does output caching work when using ASP.NET? 419. Using delegates, you can pass a method as a parameter in another method. 420. In Windows built-in authentication. what will happen with the following set of statements? 421. You create an ASP.NET application for ABC Corporation. The project manager requires a standard appearance for all Web applications. Standards are expected to change periodically. You need to enforce these standards and reduce maintenance time. What would you do? 422. Not a valid ASP.NET Web form control? 423. Consider statements and choose appropriate option: Statement 1: Value types are allocated on a stack Statement 2: Reference types are allocated on a managed CLR Heap 424. The page processing stages are: 425. Consider statements and choose appropriate option: 1. For configuration, ASP.NET uses IIS Metabase 2. For configuration, ASP.NET uses an XML based configuration system 426. Which is false for events? 427. Consider the following two statements about Windows authentication and choose the most appropriate option: 1. An asterisk(’) means all users, roles or verbs, depending upon the attribute it is used in 2. A question mark(?) means 'anonymous access' 428. You are implementing the TextChanged event handler. Which two courses of action should you take? (Each correct answer presents part of the solution. Choose two) 429. You are creating an ASRNET application that will record each customer’s entry. It is possible that thousands of entries could be posted at any given time. Your application will be hosted on twenty Web servers. As customers enter information into your application, maintaining state information will be important This information should be stored securely and should be capable of being restored in the event that a Web server is restarted. Customers will enter data into three separate pages in your application. Which of the following methods of storing state information would best suit the situation? 430. Method ideally suited for retrieving a single row and single column from the database? 431. SHA1 and MD5 are the two encryption methods supported by ASP.NET? 432. What is an Object in Object Oriented Programming? 433. You are creating an ASP.NET application that is hosted on your company’s Web server. You want to access a database with minimal effort. What you will not do? 434. Which authorization and authentication method is not provided by ASP.NET? 435. Types of cursors available with ADO.NET DataReader object? 436. You have to update some values in the database. Which method would you execute on a command object 'cmdupdate?' 437. You are using Visual Basic to retrieve class information from a Microsoft SQL Server database named ClassList. The database Resides on a server named Neptune. Which code fragment will create a connection to this data source? 438. if you don't specify a value for the timeout attribute in the element in web.config, for how long will the authentication cookie be valid? 439. How you will generate a report with minimum network traffic? 440. Methods CreateFromDirectory() & ExtractToDirectory() comes under which namespace? 441. Namespace defines classes that are used to control the access to operations and resources based on policy? 442. The Windows Desktop Speech technology-types, to implement speech recognition, are contained in the namespace. 443. Which control do not have the 'CommandName’ and 'CommandArgument‘ properties? 444. Method of Bundle class responsible to specify a set of files that are to be included in the Bundle? 445. Which property does not exist in the login control of asp.net 4.5? 446. With which Integrated Development Environment was the dot net 4.5 framework introduced? 447. Binding expression used to encode the data automatically into HTML? 448. Which event of an ASP.NET application file is raised when the information about a particular session from the session collection is about to be serialized? 449. Which property of the ‘DrOpDownList' control is used to bind the custom list items with data source? 450. Which method of the MulticastDelegate class returns a static method represented by the current MulticastDelegate? 451. Option that is not a method of the 'System.Web.HttpResponseBase' class? 452. Classes that are required to create and work with activities in — are contained in the 'System.Activities' namespaces. 453. Which option is not a namespace? 454. Which is correct? 1. Notifications are not raised by the background garbage collections if the configuration element is enabled. 2. Notifications are not raised by the background garbage collections if the configuration element is disabled. 455. Which line of code is correct manner of getting the ID of a label through the RowDataBound event of the GridView control, if the label is contained inside the GridView control? 456. Which property of the HttpReSponseBase class is used to set the value of an HTTP Location header? 457. The process to add the real-time web functionality to an application is simplified by the library in the dot net 4.5 framework. 458. Which options, you choose the platforms (such as Windows Phone and .NET for Windows Store apps) to target. 459. Which HyperLink property is inherited from the WebControl class? 460. Classes that support XAML in Windows Presentation Foundation are contained in which namespaces? 461. Which statement is incorrect about .NET framework 4.5? 462. Which statement is correct? 463. Which feature about culture is introduced in the dot net 4.5 framework? 464. How many different chart types are provided by the 'Chart' control in ASP.NET 4.5? 465. In memory management, the managed heap is categorized into the following generations to handle long-lived and short-lived objects efficiently. Which of the given generations serves as a buffer between long-lived and short-lived objects? 466. Which is NOT a class of System.Dynamic namespace? 467. You are deploying the .NET framework redistributable package to computers on a network by using the 'System Center 2012 Configuration Manager'. Four steps are given below to perform the deployment process. Arrange these steps in the correct order and choose the correct answer from the following Options. 1. Creation of package and programs 2. Deployment of the package 3. Selection of distribution points 4. Creation of collection 468. Which one is not a class of the 'System.Runtime.Caching' namespace? 469. Which option is an event of the 'Menu' class in ASP.NET 4.5? 470. Fields NOT used within the property of Gridview data-bound control? 471. Which Option is not a parameter type in the 'GC.CoIIect' method? 472. How many garbage collectors are required to recover the memory used by objects that have the ‘Finalize()' method? 473. Which option is not a correct portion of an external AntiXSS library that is incorporated into ASP.NET 4.5? 474. NOT a method of the FormsAuthentication class in ASP.NET framework 4.5? 475. Use of async and await introduced in .net 4.5? 476. Which can reduce the startup time by reducing the requirement of jitter to run at startup? 477. Which interface/class is inherited from the Control class? 478. Which is not a method of ListBox Class in asp.net 4.5? 479. Control used in advance caching scenarios to update some parts of the page? 480. Name two keywords you can use resources in the .NET Framework 4.5 or the Windows Runtime to create an asynchronous method almost as easily as you create a synchronous method? 481. Which property doesn‘t belong to the LinkButton class in ASP.NET 4.5? 482. Three main methods available in WebSocketHandler class when programming WebSockets? 483. Which statement is not correct for WebSocket protocol? 484. Which is not a working phase of garbage collector? 485. Which element specifies whether the CLR runs garbage collection on a seperate thread? 486. Which JIT compiler compiles only those methods that are called at runtime and removes them from memory after execution? 487. Which validation control do not have the 'MinimumValue' and ‘MaximumValue' properties? 488. Which are NOT interfaces of the SystemWeb namespace? 489. New features in Windows Workflow Foundation 4.5? 490. Right use of the 'SoundPlayer' class of the 'SystemMedia' namespace? 491. Which statement about enumerations is incorrect? 492. In which file ASP.NET 4.5 enables us to register the OAuth provider? 493. Which statement is correct about garbage collector? 494. Which type of HTML5 TextMode property of a TextBox control has been updated in ASP.NET 4.5? 495. Methods used for garbage collection notifications? 496. Attributes of the 'FileUpload' control is/are introduced in ASP.NET 4.5? More Resources ASP.NET Skill Assessment ASP.NET PDF Related MCQs ASP.NET with SQL Server Assembla Assembly language AWS Lambda Bash More Resources ASP.NET Skill Assessment ASP.NET PDF Related MCQs ASP.NET with SQL Server Assembla Assembly language AWS Lambda Bash
211. Which is not an optimization technique?
212. Browser is sending an HTTP header with the name Accept. Which statement reveals its value on the server?
213. After how many minutes does the ASP session expire?
214. An ASP file is:
215. Which is false about the below statement? response.expires = 0
216. What data can be accessed through ActiveX Data Objects?
217. Server variable Content_Length return?
218. Which statements regarding the element is false?
219. How to limit the number of rows returned by a database query?
220. How are sessions maintained in ASP?
221. Which holds true regarding database handling in ASP?
222. What does the HTTP_USER_AGENT server variable represent?
223. You are posting values from an HTML form to an ASP page. The HTML form contains a radio button group named mstatus with the following definition: In the ASP page, how will you determine which radio button was selected by the user?
224. Problems with maintaining session state in ASP?
225. Not a drawback of cookies?
226. Which file extension will not be served over HTTP and any direct URL request for it is automatically rejected?
227. Which DLL translate XML to SQL in IIS?
228. Languages used to write server side scripting in ASP.NET?
229. Lifespan for items stored in viewstate?
230. .NET framework which provides automatic memory management using a technique called ...?
231. Which process runs the ASP.NET application on a web server?
232. An ASP.NET page uses a Datagrid displays employee information.The Web application supports a large number of concurrent users, who will be saving data from the grid back to the database. It is important that the Web application doesn't overwhelm the Web Server?
233. Page event most suitable to programmatically change the master page?
234. .NET Framework provides a runtime environment called?
235. In my .NET Framework, I have threads. Which denotes the possible priority level for the threads?
236. Difference between Response.Write() and Response.Output.Write()?
237. Sequence in which Page_Load events are executed?
238. What data types do a Rangevalidator supports?
239. Namespace does the Web page belong in the .NET Framework class hierarchy?
240. ASP.NET uses the multi-language abilities of the .NET Common ...., allowing Web pages to be coded in VB.NET, C#, J#, Delphi.NET?
241. Technologies being used in AJAX?
242. How ASP.Net Different from classic ASP?
243.
_____ is a data source control which will not implement Caching.
244. User configurable arbritrary list filtering in C#?
245. Different controls of ASP.NET AJAX?
246. You are the lead developer on a team that has been working on a large website for months, and several controllers are getting unwieldy. You do not have that problem with views and models because most of your communications are through AJAX to display snippets of information on the UI. What changes can best help you solve your problem?
247. Explain the limitations of AJAX as following statement?
248. Represents the best use of the Table, TableRow, and Table-Cell controls?
249. ASP.NET/URL Rewriting in a development environment?
250. Best way to intercept every request for an image on your site and ensure that a watermark is added to the image?
251. Which is the way to monitor the web application?
252. For an ASP.NET deployment on IIS, the maximum number of worker processes are defined at which level?
253. Defines the collection trigger objects, each corresponding to an event causing the panel to refresh automatically.
254. Which kind of data we can store in ViewState?
255. Custom Controls are derived from which class?
256. Not a valid type of parameter for an SqlDataSource?
257. As you design a session-less state management system, what do you need to ensure that your application manages?
258. Where are routes registered in ASP.NET MVC Application?
259. Layout.cshtml and Site.Master are the two default template pages in ASP.NET MVC. Which scenario would best be solved using a single layout or master template?
260. To prevent a browser from caching a page which of these statements should be written?
261. How to traditionally consume an ASMX web service from your application?
262. If you have View with @Page directive to inherit from ViewPage then your View is .... ?
263. In ASP.NET 2.0 web application you want to display an image that is selected from a collection of images. What approach will you use to implementing this?
264. ... element in the web.config file to run code using the permissions of a specific user?
265. You are modifying an ASP.NET MVC web application and you have created a new master layout page named _Layout.WindowsPhone.cshtml. You want to use that layout in a new view. Which code segment do you use?
266. Predefined TraceListener(s) in ASP.Net?
267. We have defined one page_load event in aspx page and same page_load event in the code behind which will run first?
268. For your ASP.NET web application your graphics designer created elaborate images that show the product lines of your company. Some of graphics of the product line are rectangular, circular, and others are having complex shapes. You need to use these images as a menu on your Website. What is the best way of incorporating these images into your Website?
269. Does not have any visible interface?
270. An extension with both client-side as well as server-side components for writing ASP.NET pages that incorporate AJAX functionality?
271. New features of ASP.NET AJAX 4.0?
272. If I’m developing an application that must accommodate multiple security levels though secure login and my ASP.NET web application is spanned across three web servers (using round-robin load balancing) what would be the best approach to maintain login-in state for the users?
273. Why to create a custom role provider?
274. Components of the ASP.NET AJAX architecture?
275. Default session timeout value for an ASP.NET application or website?
276. To enable single-sign-on across multiple ASP.NET applications. Which statement will be true?
277. How to tell the website administration tool which provider to use following code?
278. Accessing Asp.net controls using jQuery as following?
279. If runat='server' is omitted from a GridView definition, which statement will not be true?
280. For an ASP.NET deployment, .NET framework is configured at which level?
281. Which tags equals Response.Write?
282. Declaring more than one form tags with runat='server' on an ASPX page will result in?
283. Users with which Role(s) will be able to use TestController defined below? [Authorize(Roles = 'Admin')] [Authorize(Roles = 'Group')] public class TestController : Controller { ... }
284. Suppose, on an .ASPX page, we have two separate data entry forms with submit buttons. How can we ensure that submitting the first form does not validate any controls in the second form, and vice versa?
285. ASP.NET Page Unload event is raised when?
286. How to ensure that a validator control displays error message only when the associated control is invalid?
287. Suppose, the web.config has defined a theme for the application, but theming is disabled in the master page file like this: <%@ Master EnableTheming='false' %> Which of the following statements will be true:
288. Which controls can be declared inside a TemplateField of a GridView control?
289. What is middleware in ASP.NET Core/Open Web Interface for .NET (OWIN)?
290. Which session-state mode is not a valid option for the Web Farm deployment to work?
291. Not a valid option in OutputCache directive?
292. Not a column type for a GridView?
293. Let's suppose a SqlDataSource and a GridView are configured with SELECT and UPDATE queries; and GridView has AutoGenerateEditButton=True, how can we ensure data concurrency in an efficient way?
294. Purpose of Page.EnableEventValidation='true' is that?
295. Maximum number of content placeholders in a master page is?
296. If a server control is declared inside an UpdatePanelUpdateMode='Conditional',Which is true?
297. Default file upload size supported by ASP.NET in mega bytes?
298. How do you ensure that a TextBox input is a valid Date value?
299. We should install an SSL certificate on an IIS website so that?
300. Difference between ListView and GridView is?
301. How to determine what version(s) of ASP.NET are running on a system?
302. .... is not a member of ADODBCommand object?
303. Code behind classes are partial classes because?
304. ASP.NET Page class has IsPostBack property. How does ASP.NET recognize a Postback?
305. The following control option will be used when you have 2 different web form controls in an application and you want to know whether the values in the 2 different web form control match:
306. If one has two different web form controls in an application and if one wanted to know whether the values in the two different web form controls match, what control must be used?
307. You are developing an ASP.NET MVC 2 application. A view contains a form that allows users to submit their first name. You need to display the value that is submitted, and you must ensure that your code avoids crosssite scripting. Which code segment should you use?
308. Accessing Asp.net controls using jQuery is demonstrated by
309. Where can we assign value to Static read only member variable of a static class?
310. ... is a property of the session object that is used to set the local identifier.
311. Option to get the text inside the new HTMLEditor in ASP.Net Ajax Control Toolkit?
312. Which statement is True?
313. How to use real-time configurations in an ASP.NET application without restarting it?
314. You are modifying an existing ASP.NET MVC web application to incorporate mobile access. What should you do to ensure that mobile devices view mobile-only pages? (Choose all that apply.)
315. To enable client-side callbacks in an ASP.NET page that do not trigger a postback, you must need to?
316. Defines the collection trigger objects with each corresponding to an event the causes the panel to refresh automatically?
317. If there are threads in a .NET Framework, which option will tell you the priority level for the threads?
318. Which is true about Connecting SqlAzure database in conventional way?
319. Uses multi-language abilities and allows Web pages to be coded in VB.NET, C#, J# and Delphi.NET?
320. Retrieves the dynamically created template container object and is used for adding child controls programmatically?
321. Property affects how the .NET Framework handles formatting issues, sorting issues, currencies and handling dates?
322. ____is the namespace within the Microsoft.NET framework which provides the functionality to implement transaction processing.
323. Declaring more than one page directives on an ASP.NET page will result in?
324. Which is true about AutoPostBack property of a server control?
325. Option ideally suited for managing database connections?
326. Objects required by the Dataset to retrieve data from a database and to save updated data back to the database?
327. Which code should you use to copy the edited rows from dataset Licenselnfo into another dataset LicenseChanges?
328. You are creating an ASP.NET Website for your company. The Website will use both MicrosoftR) .NET Framework server controls and ActiveX controls. You want to use Microsoft Visual Studio(R) .NET to create a Setup and Deployment project to package the Activex controls. Which project type should you create?
329. Not an ASP.NET Input Validation Control?
330. Inheritance is a process by which the objects of parent class acquire the properties of child class.
331. Correct one when starting a form tag?
332. Which is correct If you want to import a Cr: class called myClass that is implemented in the myClass.cs file into a .aspx page?
333. Options available for packaging?
334. XML web services of .NET framework are built on:
335. Core components of .Net framework data provider model?
336. How many classes can a single .NET DLL contain?
337. Which class acts as a base class when you develop your own custom control?
338. You have three classes named A, B, and C. The class B is derived from class A and class C is derived from B. Which relations are correct for the given classes?
339. The global assembly cache:
340. You need to install an online parcel tracking application and its supporting assemblies so that the application and its assemblies can be uninstalled using the Add/remove Programs Control Panel applet. What should you do?
341. Which directive can be used to include libraries in an ASP.NET page?
342. Capable of returning multiple rows and multiple columns from the database?
343. Your company, Storeit inc has stored the text of several journals in a Microsoft SOL Server 7.0 database. Each sentence is stored in a separate record so that the text can be retrieved with the finest granularity. Several of these works are many thousands of printed pages in length. You are building a Web application that will allow registered users to retrieve data from these volumes. When a user of your Web application requests large amounts of text. your application must return it in the most effident manner possible. How should you build the large String object that is required to provide the most efficient response to the user?
344. How to pop-up a window to display text that identifies the author of the book?
345. You are developing an application to take orders over the lnternet. When the user posts back the order form, you first check to see whether he is a registered customer of your company. if not, you must transfer control to the Register html page. Which method should you use to effect this transfer?
346. How to view the results of Trace.Write() statements?
347. What is Encapsulation?
348. You are creating an ASP.NET application. Tire application will be deployed on intranet. Application uses Microsoft Windows authentication. More than 100 users will use the ASP.NET application simultaneously. The project manager wants you to use connection pooling. What should you do?
349. You create an ASP.NET page named ProjectCalendar.aspx that shows scheduling information for projects in your company. The page is accessed from various other ASP and ASP.NET pages hosted throughout the company’s intranet. All employees on the intranet use Internet Explorer. ProjectCalertdar.aspx has a Calendar control at the top of the page. Listed below the Calendar control is detailed information about project schedules on the data selected. When a user selects a date in the calendar. The page is refreshed to show the project schedule details for the newly selected date. Users report that after viewing two or more dates on ProjectCalendar.aspx. they need to click the browser's Back button several times in order to return to the page they were viewing prior to accessing ProjectCalendaraspx. You need to modify ProjectCalentlaraspx so that the users need to click the Back button only once. What to do?
350. .NET framework has data providers for:
351. True or false? There can only be one @control directive in a single file.
352. Valid methods of the SqlTransaction class?
353. How many bits the int datatype use in .NET?
354. You have defined a command named 'comA‘ and an open connection named ‘con'. You created a new transaction: Dim trans As SglClienthlTransaction — Nothing How will you assign the command to the transaction and begin the transaction?
355. You create an ASP.NET page named Customecaspx. Customeizaspx contains a Web user control that displays a drop—down list box of Cities. The Web user control is named CityList, and it is defined in a file named CityList.ascx. The name of the DropDownList control in Cityascx is CuCity. You try to add code to the Page.Load event handler for Customenaspx. but you discover that you cannot access CuCity from code in Customeraspx. You want to ensure that code within Customeraspx can access properties of CuCity. What should you do?
356. You are creating an ASP.NET page for your company's Web site. Customers will use the ASP.NET page to enter payment information. You add a DropDownList control named oPaymentTypeList that enables customers to select a type of credit card and bank accounts. You need to ensure that customers select a credit card type. You want a default value of Select to be displayed in the oPaymentTypeList control. You want the page validation to fail if a customer does not select a payment type from the list. What should you do?
357. You are creating an ASP.NET application for AutoMart Internet Web site. A toolbar is required that will be displayed at the top of each page in the Web site. The toolbar will contain only static HTML code. The toolbar will be used in only AutoMart website. You plan to create the toolbar as a reusable component for your application. You need to create the toolbar in am possible time. Which method will you adopt?
358. Which does not constitute the benefits of CLR?
359. When you make some changes to the configuration file. do you need to stop and start IIS to apply the new settings?
360. When is the viewstate created?
361. Which helped overcome the DLL conflict (faced by the versions prior to .NET).
362. Server based controls can be accessed from:
363. Which help increases the code clarity?
364. You have developed a custom server control and have compiled it into a file named FirstReportdll. The code is displayed below: <%@ Register TagPrefix='CertKing Tag' Namespace='ReportNS' Assembly='CertKing Report’ %> You want to set the PageNumber property of the control to 77. Which of the following lines of code should you include In your Web Form?
365. What happens when boxing occurs?
366. Is it possible to create a class in C# that inherits from a VB class?
367. Which is not true?
368. You are developing a website that has four layers. The layers are user interface (web pages). businessobjects. data objects, and database. You want to pass data from the database to controls on a web form. What should you do?
369. Control's value set during the postback can be accessed in:
370. You are creating an ASP.NET page for Premium Consultants. You create a DataGrid control that displays past purchases made by the user. The DataGrid control is populated from an existing database when the page is created. The page contains TextBox controls that allow users to update their personal information, such as address and telephone number. You need to ensure that the page is refreshed as quickly as possible when users update their contact information. What should you do?
371.
You created a stored procedure to retrieve the following details for the given customer:
CustomerName, Address, PhoneNumber
Which of the following is an ideal choice to get the best performance?
372. Which is used to add an Unbound Column in a DataGrid?
373. Which benefit derived from using OOPS?
374. Code not 'managed' by default in .NET framework?
375. Correct statement with regard to .NET framework managed web pages?
376. Set the default language for all of your application logic to C#?
377. Default configuration file for each application?
378. What happens if the Server configuration file and the Application configuration file have different values for session state?
379. Which is not an event of the Page class?
380. You want to create a cookie object named CustomerAddress of type Ctlstomerlnfo to maintain address information of customers who buy products online. Which of the following code snippets should you use to create this cookie?
381. You are creating an ASP.net application to enter timesheet data intuitively. Users will enter data using a data grid. You have added a button column to your data grid. The button column uses a custom button to allow users to initiate some calculations on the data in the grid. Which event does the DataGrid control raise when the custom button is clicked?
382. In which namespace the Assembly class is defined?
383. Two users, Monique and James are using ADO.NET MlS system. The data refresh time In the system is set to 15 minutes. James changed the mailing address of a customer named Majda, and updated the database. Before database refresh. Monique also updated the same customer's address as per her pending requests folder. What will happen when Monique saves the changes?
384. Which statement is correct?
385. DLL responsible for processing the page requests running on the server?
386. Which statement is correct with regard to Polymorphism?
387. Which is not a feature of .NET 2.0?
388. You are debugging a Visual Basic application. You add a variable to the watch window. When Visual Basic enters break mode, the Value of the expression variable is '. What is the most likely cause of the problem?
389. John is maintaining an ASP.NET application named HigherProfits. The application is written In Visual Basic .NET. The application includes a page named YearlySale.aspx that resides within the Sales namespace. The page class is named Yearlysale. You discover that another developer accidentally deleted the Page directive for YearlySale.aspx. You want to create a new Page directive to allow YearlySaieaspx to work properly. Which directive should you use?
390. .NET programs are compiled into CPU independent instruction set. named:
391. Not a service provided by Common Language Runtime (CLR)?
392. Which one is not a valid directive?
393. You are the software engineer for Premium Corp.. One of the pages in an ASP.NET application contains the following declaration: <%@ Register Tagprefix='WoodySideBankControls' Namespace=‘WoodySideBankNameSpace' Assembly='MyAssembiy' $63- The assembly named MyAssembly contains a custom server control named CSC1. Which of the following code samples will property render CSCi on the Web page?
394. Total no of events in Global.asax file in Asp.NET?
395. How many times can classes be nested within a class?
396. What line of code do? <%@ Register tagprefix='ril' Tagname='test' Src='rilTest.ascx' %>
397. Dot Net Framework consists of :
398. You are debugging an ASP.NET application for Premium Corp.. Users will use the application to produce reports. Your application contains several DebquriteLine statements. Which window in Visual Studio .NET should you use to inspect output from the Debug.WriteLine statements?
399. Which are true Serializable objects (ie. they implement Serializable interface)?
400. You create an ASP.NET page that allows a user to enter a requested delivery date in a TextBox control named txtDelDate. The date must be no earlier than two business days after the order date. and no later that 60 busmess days after the order date. You add a CustomValidator control to your page. In the Properties window you set the ControIToValidate property to txtDeiDate. You need to ensure that the date entered in the txtDelDate TextBox control falls within the acceptable range of values. In addition. you need to minimize the number of round trips to the server. What should you do?
401. You are creating an ASP.NET application that will run on your company's intranet. You want to control the browser window and respond immediately to non-post~back events. Which should you use?
402. When users edit data, this code runs to completion, but no data changes appear In the database. You test the update query and the connection string that you are passing to the procedure. and they both work correctly. You need to change the code to ensure that data changes appear in the database. What should you do?
403. You are creating an ASP.NET application that will authenticate truck drivers for drug tests. You want to prompt users for their user names and passwords. Which type of authentication should you use in your application?
404. Exception handling should be used:
405. We are iterating through the results received in a data reader named 'DReaderOrder.' which is created by using the connection 'SqlCon.' In between we need to retrieve some more values from the database. so we executed another command in the same connection to get the results in a new data reader named 'ReaderProduct.' What will be the result if we are using ADO.N ET 2.0?
406. Can you define your own Exception classes in ASP.NET?
407. Way to handle Unmanaged Code Exceptions in ASP.NET?
408. What does Managed Data refer to?
409. Which statement is incorrect with regard to a CommandBuilder object?
410. The .NET framework comes with a few CLR hosts. Which is a CLR host?
411. You are a web developer for an international literary website. Your application has a lot of text content that requires translation and few executable components. Which approach would you use?
412. You want to access data from the 'Customer' table in the database. You generate a DataSet named 'MyDataSet' by adding 'Customer' table to it. Which statement should you use to load the data from the database into 'MyDataSet' using a SqlDataAdapter named 'tvlyAdapter'
413. Which languages is not part of CLR?
414. Which is true? (a)MSIL code is platform independent (b)CLR is platform dependent
415. XYZ is creating an e-commerce site for PremiumBouthue. The site Is distributed across multiple servers In a Web form. Users will be able to navigate through the pages of the site and select products for purchase. XYZ wants to use a DataSet object to save their selections. Users will be able to view their selections at any tinte by clicking a Shopping Cart link. XYZ wants to ensure that each use's shopping cart DataSet object is saved between requests when the user Is making purchases on the site. How can this requirement be implement?
416. What will be returned when this command is executed using ExecuteReader method?
417. In Forms-based authentication, which is not an attribute of the element?
418. On which platform does output caching work when using ASP.NET?
419. Using delegates, you can pass a method as a parameter in another method.
420. In Windows built-in authentication. what will happen with the following set of statements?
421. You create an ASP.NET application for ABC Corporation. The project manager requires a standard appearance for all Web applications. Standards are expected to change periodically. You need to enforce these standards and reduce maintenance time. What would you do?
422. Not a valid ASP.NET Web form control?
423. Consider statements and choose appropriate option: Statement 1: Value types are allocated on a stack Statement 2: Reference types are allocated on a managed CLR Heap
424. The page processing stages are:
425. Consider statements and choose appropriate option: 1. For configuration, ASP.NET uses IIS Metabase 2. For configuration, ASP.NET uses an XML based configuration system
426. Which is false for events?
427. Consider the following two statements about Windows authentication and choose the most appropriate option: 1. An asterisk(’) means all users, roles or verbs, depending upon the attribute it is used in 2. A question mark(?) means 'anonymous access'
428. You are implementing the TextChanged event handler. Which two courses of action should you take? (Each correct answer presents part of the solution. Choose two)
429. You are creating an ASRNET application that will record each customer’s entry. It is possible that thousands of entries could be posted at any given time. Your application will be hosted on twenty Web servers. As customers enter information into your application, maintaining state information will be important This information should be stored securely and should be capable of being restored in the event that a Web server is restarted. Customers will enter data into three separate pages in your application. Which of the following methods of storing state information would best suit the situation?
430. Method ideally suited for retrieving a single row and single column from the database?
431. SHA1 and MD5 are the two encryption methods supported by ASP.NET?
432. What is an Object in Object Oriented Programming?
433. You are creating an ASP.NET application that is hosted on your company’s Web server. You want to access a database with minimal effort. What you will not do?
434. Which authorization and authentication method is not provided by ASP.NET?
435. Types of cursors available with ADO.NET DataReader object?
436. You have to update some values in the database. Which method would you execute on a command object 'cmdupdate?'
437. You are using Visual Basic to retrieve class information from a Microsoft SQL Server database named ClassList. The database Resides on a server named Neptune. Which code fragment will create a connection to this data source?
438. if you don't specify a value for the timeout attribute in the element in web.config, for how long will the authentication cookie be valid?
439. How you will generate a report with minimum network traffic?
440. Methods CreateFromDirectory() & ExtractToDirectory() comes under which namespace?
441. Namespace defines classes that are used to control the access to operations and resources based on policy?
442. The Windows Desktop Speech technology-types, to implement speech recognition, are contained in the namespace.
443. Which control do not have the 'CommandName’ and 'CommandArgument‘ properties?
444. Method of Bundle class responsible to specify a set of files that are to be included in the Bundle?
445. Which property does not exist in the login control of asp.net 4.5?
446. With which Integrated Development Environment was the dot net 4.5 framework introduced?
447. Binding expression used to encode the data automatically into HTML?
448. Which event of an ASP.NET application file is raised when the information about a particular session from the session collection is about to be serialized?
449. Which property of the ‘DrOpDownList' control is used to bind the custom list items with data source?
450. Which method of the MulticastDelegate class returns a static method represented by the current MulticastDelegate?
451. Option that is not a method of the 'System.Web.HttpResponseBase' class?
452. Classes that are required to create and work with activities in — are contained in the 'System.Activities' namespaces.
453. Which option is not a namespace?
454. Which is correct? 1. Notifications are not raised by the background garbage collections if the configuration element is enabled. 2. Notifications are not raised by the background garbage collections if the configuration element is disabled.
455. Which line of code is correct manner of getting the ID of a label through the RowDataBound event of the GridView control, if the label is contained inside the GridView control?
456. Which property of the HttpReSponseBase class is used to set the value of an HTTP Location header?
457. The process to add the real-time web functionality to an application is simplified by the library in the dot net 4.5 framework.
458. Which options, you choose the platforms (such as Windows Phone and .NET for Windows Store apps) to target.
459. Which HyperLink property is inherited from the WebControl class?
460. Classes that support XAML in Windows Presentation Foundation are contained in which namespaces?
461. Which statement is incorrect about .NET framework 4.5?
462. Which statement is correct?
463. Which feature about culture is introduced in the dot net 4.5 framework?
464. How many different chart types are provided by the 'Chart' control in ASP.NET 4.5?
465. In memory management, the managed heap is categorized into the following generations to handle long-lived and short-lived objects efficiently. Which of the given generations serves as a buffer between long-lived and short-lived objects?
466. Which is NOT a class of System.Dynamic namespace?
467. You are deploying the .NET framework redistributable package to computers on a network by using the 'System Center 2012 Configuration Manager'. Four steps are given below to perform the deployment process. Arrange these steps in the correct order and choose the correct answer from the following Options. 1. Creation of package and programs 2. Deployment of the package 3. Selection of distribution points 4. Creation of collection
468. Which one is not a class of the 'System.Runtime.Caching' namespace?
469. Which option is an event of the 'Menu' class in ASP.NET 4.5?
470. Fields NOT used within the property of Gridview data-bound control?
471. Which Option is not a parameter type in the 'GC.CoIIect' method?
472. How many garbage collectors are required to recover the memory used by objects that have the ‘Finalize()' method?
473. Which option is not a correct portion of an external AntiXSS library that is incorporated into ASP.NET 4.5?
474. NOT a method of the FormsAuthentication class in ASP.NET framework 4.5?
475. Use of async and await introduced in .net 4.5?
476. Which can reduce the startup time by reducing the requirement of jitter to run at startup?
477. Which interface/class is inherited from the Control class?
478. Which is not a method of ListBox Class in asp.net 4.5?
479. Control used in advance caching scenarios to update some parts of the page?
480. Name two keywords you can use resources in the .NET Framework 4.5 or the Windows Runtime to create an asynchronous method almost as easily as you create a synchronous method?
481. Which property doesn‘t belong to the LinkButton class in ASP.NET 4.5?
482. Three main methods available in WebSocketHandler class when programming WebSockets?
483. Which statement is not correct for WebSocket protocol?
484. Which is not a working phase of garbage collector?
485. Which element specifies whether the CLR runs garbage collection on a seperate thread?
486. Which JIT compiler compiles only those methods that are called at runtime and removes them from memory after execution?
487. Which validation control do not have the 'MinimumValue' and ‘MaximumValue' properties?
488. Which are NOT interfaces of the SystemWeb namespace?
489. New features in Windows Workflow Foundation 4.5?
490. Right use of the 'SoundPlayer' class of the 'SystemMedia' namespace?
491. Which statement about enumerations is incorrect?
492. In which file ASP.NET 4.5 enables us to register the OAuth provider?
493. Which statement is correct about garbage collector?
494. Which type of HTML5 TextMode property of a TextBox control has been updated in ASP.NET 4.5?
495. Methods used for garbage collection notifications?
496. Attributes of the 'FileUpload' control is/are introduced in ASP.NET 4.5?