R4RIN
MCQS
ASP.Net MCQ Quiz Hub
ASP.Net Mcq Question Set 14
Choose a topic to test your knowledge and improve your ASP.Net skills
1. For a web application, I want to store user's login information and also some static information relevant to be shared to all users. I can
Store user info in Cache and static info in Session
Store user info in Session and static info in Cache
Store both in Session
Store both in Cache
2. .Base class for LINQ to SQL is
DataContext
DataSet
Data.SqlClient
None of the mentioned
3. .Which web server control cannot be both either databound or unbound?
Dropdownlist
ListBox
GridView
All of the Mentioned
4. Which of the following doesnot come with .NET 3.0
WCF
WPF
WF
TFS
5. MVC stands for
model view control
modern view control
model vast control
model view coupling
6. Which of the following is associated with freeing of memory?
System.Data
System.DirectoryServices
System.gc.collect
System.Drawing.Color
7. Web methods are part of
Web services
Web site
Web application
WPF application
8. WAS stands for
Windows Action Server
Windows Activation Server
Web application services
Web activation server
9. WCF service can be hosted in
Console application
WAS
Both
None of the mentioned
10. I have an interface called Computation which has three methods add(),print() and execute().I am implementing Computation to an abstract class called Execution where I provide some definition for the abstract execute() alone. I provided definition to execute() only because I want everybody inheriting the class to have my execute() only and not their own definition for it. Now, I expose the Execution class to three parties who can now inherit the class and provide their definition to add() and print() and simply call the parent execute().After implementation by the three parties, their three classes are integrated back to the project and now the end user untime decides which class to be loaded for processing. This scenario is a typical example for
Factory pattern
Abstract factory pattern
Singleton pattern
Observer pattern
11. How many application blocks ate there in enterprise library?
5
3
12
8
12. Which application block type is not present in enterprise library?
Caching
Exception
Performance
logging
13. Which of the following cannot be used for navigating to a new web page?
Response.write
Response.Redirect
Server.Transfer
Server.Execute
14. .NET application cannot be developed using
C#
VB
VJ#
Python
15. A WCF service can be accessed through
HTTP
TCPIP
MSMQ
All the above channels
16. State whether the following statements about the Asp .NET are True or False. i) Asp .Net is the server-side object-oriented programming language. ii) It is built on the CLR(Common Language Runtime). iii) Asp .Net does not support ADO .Net.
i-True, ii-False, iii-False
i-True, ii-True, iii-False
i-False, ii-True, iii-True
i-False, ii-False, iii-True
17. Which of the following are the stages of the Asp .Net web page. i) Start ii) Load iii) Upload iv) Validation
i, ii and iii only
ii, iii and iv only
i, ii and iv only
All i, ii, iii and iv
18. Which of the following are the life cycle events of Asp .Net pages. i) PreInt ii) Int iii) Load iv) Unload
i, ii and iii only
ii, iii and iv only
i, ii and iv only
All i, ii, iii and iv
19. … are the common properties of web server controls of Asp .Net. i) Runat ii) Textmode iii) Width iv) Visible
i, ii and iii only
i, iii and iv only
i, ii and iv only
All i, ii, iii and iv
20. … are the common properties of validation controls of Asp .Net. i) Error message ii) Display iii) Type iv) Text
i, ii and iii only
i, iii and iv only
i, ii and iv only
All i, ii, iii and iv
21. State whether the following statements about the validation summary control of Asp .NET are True or False. i) ShowSumary property shows the error messages in the specified format. ii) ShowMessageBox property shows the error messages in the same window.
i-True, ii-False
i-True, ii-True
i-False, ii-True
i-False, ii-False
22. State whether the following statements about the radio button list and check box list are True or False. i) A radio button list presents a list of mutually exclusive options. ii) A checkbox list presents a list of independent options.
i-True, ii-False
i-True, ii-True
i-False, ii-True
i-False, ii-False
23. Which of the following are the data-bound controls of Asp .Net pages. i) Gridview ii) DataList iii) Listview iv) Details view
i, ii and iii only
ii, iii and iv only
i, ii and iv only
All i, ii, iii and iv
24. With … control, a developer can display an entire collection of data sorting or paging option in the table.
Details view
DataList
Listview
Gridview
25. The DataList control exists within the …. namespace.
System.UI.Web.Controls
System.Web.UI
System.UI.Webcontrols
System.Web.UI.Webcontrols
26. Which of the following are the templates that are supported by DataList control. i) ItemTemplate ii) EditTemplate iii) HeaderTemplate iv) SeperatorTemplate
i, ii and iii only
ii, iii and iv only
i, iii and iv only
All i, ii, iii and iv
27. State whether the following statements about the Listview data-bound control are True or False. i) It enables a developer to edit, insert, delete and sort the page data. ii) It provides different types of templates and styles according to user requirements. iii) The Listview control has a specific layout by default.
i-True, ii-False, iii-False
i-True, ii-True, iii-False
i-False, ii-True, iii-True
i-False, ii-False, iii-True
28. The … data-bound control is used to display a single record at a time.
Listview
Details view
Formview
Record view
29. Which of the following are the templates that are supported by Formview control. i) DataTemplate ii) PagerTemplate iii) ItemTemplate iv) HeaderTemplate
i, ii and iii only
ii, iii and iv only
i, iii and iv only
All i, ii, iii and iv
30. State whether the following statements about the Formview control are True or False. i) In the Formview control, each row of the table displays each field of the record. ii) In this view, a developer can modify the layout for displaying the record.
i-True, ii-False
i-True, ii-True
i-False, ii-True
i-False, ii-False
31. Which of the following are the features of the View state of web application in Asp .Net. i) It is used for holding data temporary. ii) It can store any type of data. iii) It has direct functionality access.
i and ii only
ii and iii only
i and iii only
All i, ii and iii
32. Which of the following are the features of Cookies. i) It can be changed depending on requirements. ii) It stores information temporarily. iii) It requires only a few bytes or KBs of space.
i and ii only
ii and iii only
i and iii only
All i, ii and iii
33. State whether the following statements about the cookie are True or False. i) The server can’t read the cookie and extract its value. It’s only accessible from the client side. ii) Cookies having an expiration date is called a persistent cookie. iii) Non-persistent types of cookies aren’t stored in the client’s hard drive permanently.
i-True, ii-False, iii-False
i-True, ii-True, iii-False
i-False, ii-True, iii-True
i-False, ii-False, iii-True
34. Which of the following are the advantages of using Cookies. i) Simplicity. ii) Data persistence. iii) No security risks. iv) No server resources are required
i, ii and iii only
ii, iii and iv only
i, ii and iv only
All i, ii, iii and iv
35. Which of the following are the disadvantages of using the query string. i) Limited capacity ii) Server resources are required iii) Potential security risks
i and ii only
i and iii only
ii and iii only
All i, ii and iii
36. Choose the correct one 1) XML serialization serializes the public fields and properties of an object. 2) XML serialization serializes the private fields and properties of an object. 3) XML serialization serializes only the public methods.
Only 1
Only 2
Only 1 & 2
All of the mentioned
37. ByDefault ASP.Net SessionID is stored in _________.
Application
Session
Cookies
ViewState
38. Classic ASP pages have the file extension?
.aspx
.net
.asp
.cs
39. ASP (aka Classic ASP) was introduced in?
1997
1998
1999
2000
40. Which of the following is true?
ASP.NET Web Forms is not a part of the new ASP.NET Core.
ASP.NET Web Forms is an event driven application model.
ASP.NET MVC is an MVC application model (Model-View-Controller).
All of the above
41. ASP.NET is?
client side technologies
server side technologies
Both A and B
None of the above.
42. An exception is a problem that arises?
before the execution of a program
during the execution of a program
after the execution of a program
none of the above
43. Which of the following denote the web control associated with Table control function of ASP.NET?
DataList
ListBox
TableRow
All the above
44. If a developer of ASP.NET defines style information in a common location. Then that location is called as
Master Page
Theme
Customization
none of the above
Submit