You are on page 1of 4

SkillAssure Assessment Framework (SAAF) - .

Net Stream

.NET Fundamentals - ASP.Net


Assessment ID: ____________________________ Name: ___________________________________ Date: ______18-Nov-10______________________ Note: All Questions are of objective types 1. Which of these is a correct mode of authentication in ASP.NET a. Roles b. Profiles c. Forms d. Page

Iteration #: ________2____________________ EMP ID: ________________________________

20

2. You are working on an existing Web site. You need to secure the Web site by redirecting all users to the logon page, Login.aspx. After logging on, users must be sent back to the page that they originally requested. Which code segment should you use? a. In the Web.config file: <authorization> <deny users=?/></authorization> On each page in the Web site: void Page_Load(Object sender, EventArgs E){ FormsAuthentication.Initialize(); //Rest of the Page_Load code goes here} b. On each page in the Web site: void Page_Load(Object sender, EventArgs E){ FormsAuthentication.RedirectToLoginPage(login.aspx); //Rest of the Page_Load code goes here} c. On each page in the Web site: void Page_Load(Object sender, EventArgs E){ Response.Redirect(login.aspx);//Rest of the Page_Load code goes here} d. In the Web.config file: <authentication mode=Forms> <forms name=.ASPXUSERDEMO loginUrl=login.aspx protection=Alltimeout=60 /> </authentication> 3. Is finally block executed if there is no exception? a. No b. Yes c. Sometimes d. None 4. Whats the difference between Response.Write() and Response.Output.Write()? a. Response.Output.Write() allows you to write output in different browsers. b. Response.Output.Write() allows you to write formatted output. c. Both statements give the same output. d. There is no command like Response.Output.Write(). It is invalid.

Pratian Technologies (India) Pvt. Ltd

Page 1

SkillAssure Assessment Framework (SAAF) - .Net Stream 5. Which of the following control is used to check whether the salary is greater than 10000? a. RangeValidator b. CompareValidator c. RequiredFieldValidator d. CustomValidator 6. What is the name given to the type of assembly that contains localized resources? a. Spoke b. Hub c. Sputnik d. Satellite 7. Which of the following properties is not provided by page class? a. Request b. Response c. Session d. Redirect e. Application 8. What is difference between session and Application variable. a. An application variable value is accessible to all users and an session variable value is accessible to the current user b. An session variable value is accessible to all users and an application variable value is accessible to the current user c. Both values are not accessible for all users d. Both values are accessible for all users e. None 9. I want to populate a combo box with data contained in a data store. It should be a fast, forward only database object to use when databinding to the combo box. a. A DataAdapter Object b. A DataView Object c. A DataSet Object d. A DataTable Object e. A DataReader Object 10. What's the reason you see the data displayed twice in your datagrid? a. Something wrong with the datatable b. Querystring is wrong c. Did not change AutoGenerateColumns=true to false d. None 11. What is used to validate complex string patterns like an e-mail address? a. Extended Expressions b. Regular Expressions c. Irregular Expressions d. Basic Expressions

Pratian Technologies (India) Pvt. Ltd

Page 2

SkillAssure Assessment Framework (SAAF) - .Net Stream 12. You have created a new ASP.Net web application. You build the solution in Visual Studio .Net. You notice that there is a /bin directory under the virtual directory. Which type of files should you place in this location? a. Assemblies that are used on only this one web application b. Assemblies that are used on web sites on only this web server machine c. Assemblies that are used by web applications anywhere on the network d. Assemblies that are XCOPY''d to the location 13. Which transport protocol is used to call webservies? a. HTTP b. SOAP c. HTML d. All the above 14. How do I get a dropdown-list in a data grid? a. BoundColumn b. TemplateColumn c. DropdownColumn d. Not Possible 15. In ASP.Net, one wants to set the focus on a particular controla. Control.SetFocus() b. Control.SetControl c. Control.Focus() d. None of the above 16. The process in which a web page sends data back to the same page on the server is called? a. PostBack b. Session c. Query strings d. All the above 17. A web page can be invoked a. By an original request b. By a postback c. By a cross-page post from another page d. All the above 18. Which of the following must be done in order to connect data from some data resource to GridView control? a. Set the DataSource property b. Call the DataBind method c. Both a) and b) d. None of the Above

Pratian Technologies (India) Pvt. Ltd

Page 3

SkillAssure Assessment Framework (SAAF) - .Net Stream 19. Can we use more than one master pages in a single web project? a. Yes b. No 20. Which keyword is used to convert object into stream? a. Sealed b. Serialize c. Deserialize d. Synchronous e. Asynchronous

Pratian Technologies (India) Pvt. Ltd

Page 4