Issuu on Google+

Edited by Foxit Reader Copyright(C) by Foxit Software Company,2005-2008 For Evaluation Only.

ASP.NET Test 2009

ASP.NET Test

Name: _____________________________________________________________________________

1. The __________ directive is used to specify attributes that affect the code in the .ASPX page. a) @ Paper

c) @ Page

b) @ Script

d) @ Tag

2. Which are the two types of server controls? a) HTML Controls

c) Web Controls

b) Internet Controls

d) Script Controls

3. It is possible to check whether an. ASPX page is posted back to the server with the help of the _____________ property of the page. a) PostBack

c) IsPostback

b) AutoPostBack

d) None of the Above

4. Identify the correct statements: 1. RangeValidator: helps in ensuring that a value is entered for a field. 2. CompareValidator: checks if the value of a control matches the value of another control or variable. 3. RequiredFieldValidator: checks if the value entered in a control is in the specified range of values 4. RegularExpressionValidator: checks if the value entered matches the regular expression that is specified

1


Edited by Foxit Reader Copyright(C) by Foxit Software Company,2005-2008 For Evaluation Only.

ASP.NET Test 2009

5. CustomValidator: the value entered is checked by a client-side or server-side function created by you 6. ValidationSummary: a list of all the validation errors occurring in all the controls is created and can be displayed on the page. a) 2, 4, 5, 6 b) 3, 4

c) 1, 2, 3, 4 d) 1, 3

5. ______________ property of page object returns true if all the validation tests are successful and vice versa. a) IsValid

c) IsComplete

b) IsCorrect

d) IsFilled

6. ADO.NET possesses two core components: DataSets, .NET Data Providers a) True

b) False

7. The data in the dataset is stored in the form of __________ objects. a) Table

c) Datatable

b) Datarecord

d) Datafile

8. The _________________ permits the user to create a connection to the database for the purpose of allowing the user to retrieve the data into a datareader or a dataset as per the user’s requirements. a) Data Provider

c) .NET Data Provider

b) .NET Data

d) .NET Provider

9. The __________ method of the dataset is used to add the retrieved data in to the dataset. a) Fill

c) Full

b) Fills

d) File

10. __________ is a Client/Server protocol that is used to transfer webpages

2


Edited by Foxit Reader Copyright(C) by Foxit Software Company,2005-2008 For Evaluation Only.

ASP.NET Test 2009

a) HTTP

c) SMTP

b) FTP

d) NNTP

11. Dynamic HTML pages can be created through __________ a) Server & Client based Scripts

c) Client based script only

b) Server based scripts only

d) Not possible

12. A Web service can be described as a function that can be deployed over the web a) True

b) false

13. The __________ attribute of the control allows a developer to access the control programmatically a) id b) name

c) width d) style

14. Every time an .ASPX page is loaded, the Page_Load event is fired a) true

b) false

15. __________ object is used to store information for a particular user between page calls a) Session

c) Response

b) Application

d) Request

16. __________ object is used to store information for a particular user between page calls a) Session

c) Response

b) Application

d) Request

17. The communication between the client and server take place through a series of __________ a) requests-and-responses

c) Requests Only

b) Responses Only

d) None of the Above

3


Edited by Foxit Reader Copyright(C) by Foxit Software Company,2005-2008 For Evaluation Only.

ASP.NET Test 2009

18. The redirect method of the Response object is used to redirect the user to home page. a) True

b) false

19. The data, that populates __________, is usually retrived from a database a) List Controls

c) Intrinsic Controls

b) Validation Controls

d) Rich Controls

20. The process of checking whether the required fields have been left blank of if they are filled in a pre-specified format is __________ a) Validation

c) Field Checking

b) Data checker

d) Validation Control

21. Code Behind allows us to write the code to provide the required functionality in a separate file and the code to create the graphics for the web page in separate file a) True

b) false

22. The MapPath method is used by the server to map a path to the information on the server a) True

b) false

23. Cookies are a way of maintaining information about a user a) True

b) false

24. Cookies is stored on the user’s machine in the __________ folder a) Cookies

c) Windows

b) Program files

d) System32

25. A Cookies can have only single values a) True

b) false

26. The __________ class of the Request object is used to retrieve information stored in a cookie and sent to the server through an HTTP request

4


Edited by Foxit Reader Copyright(C) by Foxit Software Company,2005-2008 For Evaluation Only.

ASP.NET Test 2009

a) HttpCookie

c) FtpCookie

b) HCookie

d) Cookie

27. The __________ class of the Request object is used to retrieve information stored in a cookie and sent to the server through an HTTP request a) HttpCookie

c) FtpCookie

b) HCookie

d) Cookie

28. A ____________________ can be defined as a collection of related data and a set of programs that access and manipulate this data a) Database Management System

c) Data Management System

b) Data Self Management System

d) Database Self Management

System 29. A ____________________ is a collection of related information stored in an organized way a) Database

c) Data

b) File

d) DataFile

30. A dataset is an object and is not a control. It can store data. To display data in a dataset, controls are necessary a) True

b) false

31. A Dataview is used to present a customized view of the data of datatable a) True

b) false

32. A ____________________ is used when the records of the query result will be viewed one after other a) DataReader b) dataView

c) DataRepeater d) DataGrid

33. The ____________________ attribute tag notifies the ASP.NET complier that the method to follow should be a web method, which is to be exported on to the web

5


Edited by Foxit Reader Copyright(C) by Foxit Software Company,2005-2008 For Evaluation Only.

ASP.NET Test 2009

a) [WebMethod]

c) [Web]

b) [WebExport]

d) [Method]

34. The web services files in. Net have a ____________________ extension a) .asmx

c) asax

b) aswx

d) aspx

35. In Asp.net all that we need to do to configure an application, is to create a configuration file called web.config a) True

b) false

36. Bind and Eval expressions are used with ASP.NET Data binding a) True

b) false

37. Use must always create a new connection when specifying a connection in the Configure Data Source dialog box a) False

b) true

38. SiteMapDataSource control can be bound to navigation controls such as Treeview or

Menu a) True

b) false

39. The Insert() method is used to add item to the cache a) True

b) false

40. Which is the controls not in group of List-bound Controls a) RichTextBox

c) DropDownList

b) ListBox

d) RadioButtonList

41. Which is the controls not in group of List-bound Controls a) RichTextBox

6

c) DropDownList


Edited by Foxit Reader Copyright(C) by Foxit Software Company,2005-2008 For Evaluation Only.

ASP.NET Test 2009

b) ListBox

d) RadioButtonList

42. Which is the Type not in CommandTypes of SQLCommand a) View

c) StoreProcedure

b) TableDirect

d) Text

43. Which is the Type not in ExecuteTypes of SQLCommand a) ExecuteProcedure b) ExecuteReader

c) ExcecuteNonQuery d) ExecuteScalar

44. Parameters in StoreProcedure can a) Both Input and Output Parameter c) Output Parameter Only b) None of All

7

d) Input Parameter Only


begginning asp.net2