Top 80+ Solved ASP.NET MCQ Questions Answer
Q. What is the name of the Page object’s property that determines if a Web page is being requested without data being submitted to server?
a. IsCallback
b. IsReusable
c. IsValid
d. IsPostBack
Q. If a user wants to create controls at runtime which event should be used to write code?
a. PreLoad
b. Load
c. Init
d. PreInit
Q. What is the fully qualified name of the base class of all server controls?
a. System.Web.UI.Control
b. System.Web.UI
c. System.Control
d. All of the above
Q. Which of the following are required to enable users to change the title of web part?
a. CatalogZone
b. TitleZone
c. EditorZone, AppearanceEditorPart
d. WebPart
Q. What is Caspol?
a. Command line tool
b. Code access security policy tool
c. Case Tool
d. Command line tool & Code access security policy tool
Q. What are the element of code access security?
a. Evidence,Permission
b. SQLSecurity
c. UserInterface
d. SQL Injection
Q. What is the recommended method for securing sensitive connection string information?
a. Encrypting the data in the application configuration file
b. Using a code obfuscator
c. Using Integrated Security (Windows Authentication)
d. Querying the user for his or her credentials at run time
Q. Windows-Based Authentication is well suited for ___________ .
a. Intranet environment
b. Public web site
c. Desktop application
d. system
Q. Which of the following control provides a link for unauthenticated users to log on?
a. Login
b. LoginView
c. LoginStatus
d. LoginName
Q. Where do we include the user lists for Form authentication?
a. < credential>
b. < authorization>
c. < Identity>
d. < authentication>
Q. How to implement authentication via web.config?
a. Include the authentication element.
b. Include the authorization element.
c. Include the identity element.
d. Include the deny element.
Q. You use the ASP.NET Web Site Administration Tool to configure ASP.NET membership with forms authentication. What should you name your login form so that you do not have to modify the Web.config file?
a. Login.aspx
b. LoginPage.aspx
c. Default.aspx
d. Auth.aspx
Q. Which of the following is the default authentication mode for IIS?
a. Anonymous
b. Windows
c. Basic Authentication
d. Data
Q. You need to programmatically configure page output caching. Which object would you use?
a. Request
b. Response
c. Application
d. Server
Q. Which of these data source controls do not implement Caching?
a. LinqDataSource
b. ObjectDataSource
c. SqlDataSource
d. XmlDataSource