a. Allows to fetch Type (Assembly) information at runtime or programmatically
b. Allows application to collect information about itself and also manipulate on itself
c. It reads metadata at runtime
d. All of the above
Answer: d. All of the above
18. What is the extension of a web user control file?
a. .Asmx
b. .Ascx
c. .Aspx
Answer: b. .Ascx
19. What is the best way to store the connection strings?
a. Store in web.config and encrypt
b. Store in a database
c. Store in a text file
d. Use session
Answer: a. Store in web.config and encrypt
20. In which event are the controls fully loaded?
a. Page_Init
b. Page_Load
c. Control events
d. Page_Unload events
Answer: b. Page_Load
21. What is the need of State Management?
a. Stores the state of the page or application until the User's Session ends
b. It secures the web application
c. It is a navigation technique in an ASP.NET
d. It helps in caching application pages
Answer: a. Stores the state of the page or application until the User's Session ends
22. Which object can help you maintain data across users?
a. Application object
b. Session object
c. Response object
d. Server object
Answer: a. Application object
23. Which of the following is not correct about View State?
a. Maintains the State at a page level
b. Data in View State is stored in hashed format
c. Makes a page heavy if lots of data is stored in View State.
d. It can be used to store sensitive data e.g. Passwords, Credit Card Pins etc.
Answer: d. It can be used to store sensitive data e.g. Passwords, Credit Card Pins etc.
24. Mode of storing ASP.NET session?
a. In Proc
b. State Server
c. SQL Server
d. All of the above