Home
MCQS
ASP.Net MCQ Quiz Hub
ASP.Net Mcq Question Set 13
Choose a topic to test your knowledge and improve your ASP.Net skills
1. The feature in ASP.NET 2.0 that is used to fire a normal postback to a different page in the application is called
Theme
Cross Page Posting
Code-front
none of the above
2. .Which of the following denote value that can be taken by Cache-Control of ASP.NET?
Public
Private
no-cache
. All the Above
3. You have a Web application that is configured for personalization. You need to access personalization data from one of the pages of the Web application by using the minimum amount of administrative effort. What should you do?
Access the personalization data from the Session property of the HttpContext object.
Access the personalization data from the Application property of the HttpContext object.
Access the personalization data from the Cache property of the HttpContext object.
Access the personalization data from the Profile property of the HttpContext object
4. You develop a Web application that contains two master pages. You need to dynamically set the master page when a user views pages in the application. What should you do?
Set Page.MasterPageFile in the Page's Page_Init event
Set Page.MasterPageFile in the Page's OnInit event.
Set Page.MasterPageFile in the Page's Page_Load event
Set Page.MasterPageFile in the Page's Page_PreInit event.
5. You create a Web Form. You need to add controls that use adaptive rendering to display content.The type of content rendered must depend on the device that is requesting the page. What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)
Add custom controls that emit XHTML to the Web Form
. Add custom controls that emit WML to the Web Form.
Add mobile controls to the Web Form.
Add Web server controls to the Web Form.
6. You create a large, n-tier Web application that has a custom event tracking system. You need to create a custom event type that enables your event tracking system to record all relevant event details for all types of events. The events must be stored in Microsoft SQL Server. From which base type should your custom event type inherit?
IWebEventCustomEvaluator
WebEventProvider
. WebBaseEvent
WebAuditEvent
7. If in an ASP.NET application one want to create http handlers which of the interface is used
IHttpHandlerFactory
Handler
Pipeline
none of the above
8. I have an ASP.NET application. I have a page loaded from server memory. At this instance which of the following methods gets fired
PreRender( )
Load()
Unload( )
none of the above
9. Which of the following denote the web control associated with Table control function of ASP.NET?
DataList
ListBox
TableRow
All the above
10. .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?
AdRotator
LinkButton
Both A and B
none of the above
11. Forms based authentication is otherwise called in ASP.NET as Cookie Authentication because Forms authentication uses cookies to allow applications to track users throughout their visit
Cookie Authentication
Passport Authentication
Windows Authentication
None of the above.
12. You are working with a team of developers on a Web site. You copy the Web site from the staging server to work on it locally. While making changes, you create new C# source code files and delete old ones. You need to ensure that your changes propagate to the staging server without affecting any files that you have not modified. Which tool should you use?
XCOPY
the Copy Web tool
the Publish Web tool
a Web Setup project
13. Your team creates a Web site. The Web site needs to be deployed to a staging server for performance testing. You plan to make a number of performance enhancements and then retest.You need to compile and copy the Web site to the staging server. What should you do?
Write a batch file that uses aspnet_compiler.exe
Write a batch file that uses InstallUtil.exe.
Write a batch file that uses Csc.exe
Write a batch file that uses aspnet_wp.exe.
14. .The .NET Framework provides a runtime environment called
RMT
CLR
RCT
RC
15. .Give One word: Common type system is built into which of the following
CLR
RCT
RCW
GAC
16. Find the term: The .NET framework which provides automatic memory management using a technique called.
Serialization
Garbage Collection
Assemblies
Overriding
17. In my .NET Framework I have threads. Which of the following denote the possible priority level for the threads?
Normal
AboveNormal
Highest
All the above
18. The technique that allow code to make function calls to .NET applications on other processes and on other machines is
.NET Threading
.NET Remoting
.NET RMT
.None of the above
19. Which of the following is FALSE?
ASP.NET applications run without a Web Server
ASP+ and ASP.NET refer to the same thing
ASP.NET is a major upgrade over ASP
None of the above.
20. .What tags one need to add within the asp:datagrid tags to bind columns manually.
Set AutoGenerateColumns Property to false on the datagrid tag
Set AutoGenerateColumns Property to true on the datagrid tag
It is not possible to do the operation
Set AutomaunalColumns Property to true on the datagrid tag
21. Which of the following must be done in order to connect data from some data resource to Repeater control?
Set the DataSource property
Call the DataBind method
Both A and B
none of the above
22. The namespace within the Microsoft .NET framework which provides the functionality to implement transaction processing is
System.EnterpriseServices
System.Security
System.Diagnostics
System.Data
23. You are deploying a Web site to a server managed by a hosting company. The only access you have to the server is through FTP. You need to precompile and deploy the Web site without its source files. What should you do?
Use the Copy Web tool.
Use the Publish Web tool.
Use XCOPY
Use the Web Setup project Installer
24. .GIVE ONE WORD: In .NET the operation of reading metadata and using its contents is known as
. Reflection
Enumeration
Binding
Serialization
25. If one has two different web form controls in a application and if one wanted to know whether the values in the above two different web form control match what control must be used?
DataList
GridView
CompareValidator
. Listview
26. Suppose one wants to modify a SOAP message in a SOAP extension then how this can be achieved. Choose the correct option from below
. One must override the method ReceiveMessage
One must override the method InitializeMethod
Both A and B
One must override the method ProcessMessage
27. Suppose a .NET programmer wants to convert an object into a stream of bytes then the process is called
Serialization
Threading
RCW
AppDomain
28. .Which of the following method is used to obtain details about information types of assembly?
GetTypes
GetType
Both A and B
none of the above
29. List the types of Authentication supported by ASP.NET
Windows (default)
Forms
Passport
All of the above
30. Which of the following can be used to add alternating color scheme in a Repeater control?
AlternatingItemTemplate
DataSource
ColorValidator
none of the above
31. Which of the following is not true about ADO.NET?
. ADO.NET enables to create distributed data sharing applications
ADO.NET uses XML to transfer data across applications and data source
ADO.NET doesn't support disconnected architecture
The classes of ADO.NET are defined in the System.Data namespace
32. Which of the following illustrates the benefit of ADO.NET?
Interoperability
It uses DataSet to represent data in memory that can store data from multiple tables and multiple sources.
Disconnected data access
All of above
33. Which of the following is the object of .NET data provider?
Connection
Command
Data Reader
All of above
34. DataAdapter object populates a DataSet and resolves updates with the data source. Yes or No?
. Yes
No
all of the above
None of the mentioned
35. When you create a relationship between tables in ADO.NET DataSet
a UniqueConstraint is added to the parent table
a ForeignKeyConstraint is added to the child table by default
Both 1 and 2
NONE
36. Which of the following is not true for ADO.NET DataSet?
DataSet provides a disconnected view of a data source
Dataset enables to store data from multiple tables and multiple sources
We can create relationship between the tables in a DataSet.
All of above are true
37. .Which of the following method of the command object is best suited when you have aggregate functions in a SELECT statement?
ExecuteScalar
ExecuteReader
ExecuteNonQuery
None of the mentioned
38. Which of the following is the event that is exposed by the DataTable object?
RowChanged
ColumnChanged
RowChanging
All of above
39. Which of the following is not the method of DataAdapter?
Fill
FillSchema
ReadData
Update
40. Which of the following is the method provided by the DataSet object to generate XML?
ReadXML
WriteXML
GetXML
All of above
41. To perform asynchronous data access, what must be added to the connection string?
BeginExecute=true
MultiThreaded=true
MultipleActiveResultSets=true
. Asynchronous=true
42. You are working with a DataSet and want to be able to display data, sorted different ways. How do you do so?
Use the Sort method on the DataTable object.
Use the DataSet object’s Sort method.
Use a DataView object for each sort.
Create a DataTable for each sort, using the DataTable object’s Copy method, and then Sort the result.
43. Which method is used to Get a value indicating whether the column contains nonexistent or missing values?
GetType()
IsDBNull ()
GetValues ()
all the above
44. To improve the performance and scalability of your .NET application. Which one of the following techniques would help?
Connection Strings
Connection Pooling
SQL Injection
Data Adapter
45. Which method is used to commit all changes in the DataSet or DataTable?
Update()
AcceptChanges()
GetChanges()
None of the mentioned
46. By default, the pooling property with connection string is set as True/False
True
False
all of the above
None of the mentioned
47. Between Windows authentication and SQL Server Authentication, SQL Server authentication is the trusted one.
True
False
all of the above
None of the mentioned
48. Which of the following is a DataView method?
Add
Remove
Find
All the above
49. There are two classes named TEACHER and STUDENTS.When TEACHER goes out of the class,STUDENTS should make noise.The scemario best befits to the concept of "association of two classes behavior-where one class watches another class for a behavior change and triggers an action from inside itself based on the behavior change".Which pattern of design it could be?
Singleton patter
Template pattern
Observer pattern
None
50. An e-shopping web portal has a shopping basket control where the list of available items meant for shopping is displayed.The item list remains unchanged for all users irrespective of scenerios and it always populates from a database look up table every time when the page is loaded.For getting better performance and memory effectiveness,it is appropriate to store the data in
Session
Cache
Server registry
All of the Mentioned
Submit