On This Page
This set of ASP.NET Multiple Choice Questions & Answers (MCQs) focuses on Aspnet Set 1
Q1 | Which file you should write for the connection string so that you can access it in all the web pages for the same application?
- In App_Data folder
- In Web.config file
- In MasterPage file
- None of the above
Q2 | You need to allow users to choose their own themes. In which page event will you write the user-selected theme?
- Page_Load
- Page_Render
- Page_PreInit
- Page_PreRender
Q3 | Which is the first event of the ASP.NET page, when the user requests a web page?
- PreLoad
- Load
- PreInit
- Init
Q4 | What is the name of the Page object’s property that determines if a Web page is being requested without data being submitted to the server?
- IsCallback
- IsReusable
- IsValid
- IsPostBack
Q5 | How will you specify the Cache Location?
- You can use browser settings to specify where a page is cached.
- You can use the Location attribute of the <%@ OutputCache %> directive to specify where a page is cached.
- You can use the Location attribute in QueryString to specify where a page is cached.
- None of the above.
Q6 | Which of the following is not a member of ADODBCommand object?
- ExecuteScalar
- ExecuteStream
- Open
- ExecuteReader
Q7 | __________________ is a special subfolder within the windows folder that stores the shared .NET component.
- /bin
- GAC
- Root
- Sub
Q8 | Which file contains settings for all .NET application types, such as Windows, Console, ClassLibrary, and Web applications?
- Web.config
- Machine.config
- Global.asax
- System .config
Q9 | Which programming model should you implement if you want to separate your server-side code from your client-side layout code in a Web page?
- Single-file model
- Code-behind model
- Inline model
- Client-server model
Q10 | You want to make a configuration setting change that will affect only the current Web application. Which file will you change?
- Global.asax
- Web.config in the root of the Web application
- Machine.config
- System.config
Q11 | Which of the following is not an ASP.NET page event?
- Init
- Load
- Import
- Message
Q12 | To implement a specified .NET Framework interface which directive is used?
- @Register
- @Control
- @Reference
- @Implements
Q13 | In ASP.NET application DLL files are stored in which folder?
- App_Code
- App_Data
- Bin
- App_LocalResources
Q14 | To create your application on a remote server which option you will choose in ASP.NET?
- File System
- FTP
- HTTPS
- TCP
Q15 | Which one of the following HTTP verbs indicates that you are creating and writing a file on the Web server?
- POST
- SET
- GET
- PUT
Q16 | 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?
- IsCallback
- IsReusable
- IsValid
- IsPostBack
Q17 | If a user wants to create controls at runtime which event should be used to write code?
- PreLoad
- Load
- Init
- PreInit
Q18 | What is the fully qualified name of the base class of all server controls?
- System.Web.UI.Control
- System.Web.UI
- System.Control
- All of the above
Q19 | Which of the following are required to enable users to change the title of web part?
- CatalogZone
- TitleZone
- EditorZone, AppearanceEditorPart
- WebPart
Q20 | What is Caspol?
- Command line tool
- Code access security policy tool
- Case Tool
- Command line tool & Code access security policy tool
Q21 | What are the element of code access security?
- Evidence,Permission
- SQLSecurity
- UserInterface
- SQL Injection
Q22 | What is the recommended method for securing sensitive connection string information?
- Encrypting the data in the application configuration file
- Using a code obfuscator
- Using Integrated Security (Windows Authentication)
- Querying the user for his or her credentials at run time
Q23 | Windows-Based Authentication is well suited for ___________ .
- Intranet environment
- Public web site
- Desktop application
- system
Q24 | Which of the following control provides a link for unauthenticated users to log on?
- Login
- LoginView
- LoginStatus
- LoginName
Q25 | Where do we include the user lists for Form authentication?
- < credential>
- < authorization>
- < Identity>
- < authentication>