+ All Categories

ASP

Date post: 27-Nov-2014
Category:
Upload: trinh-nhung
View: 186 times
Download: 1 times
Share this document with a friend
Popular Tags:
27
1. Which of the following scripting is not suppooted by the web browser? A. Client-side scipting B. Server-side scipting C. None of the above 2. Asp code can be embedded in a _____ document. A. HTML B. Word C. PDF 3. Web pages are said to be ___ Because they do not retain information about user request. A. Dynamic B. Static 4. The ____ Attribute is used to specify the name of the source file that contains the corresponding codebehide class. A. Inherits B. SRC 5. ___is a method that can be used to create dynamic HTML pages and provide user interaction. A. Client-side scipting B. Server-side scipting C. Client-Server programming 6. The first beta version of ASP was code named_____ A. Denali B. ASP.NET C. ASP.BETA D. BETA.ASP 7. There are several mathods that can be used to create dynamic pages. A. Server-based script B. Client-side script C. Dynamic HTML D. All the above 8. The ____ attribute is used to specify the name of the codebehide class. A. Inherits B. SRC 9. The _____ attribute causes the form to be submitted to the server. A. Runat=”server” B. Runat=”client”
Transcript
Page 1: ASP

1. Which of the following scripting is not suppooted by the web browser?A. Client-side sciptingB. Server-side sciptingC. None of the above

2. Asp code can be embedded in a _____ document.A. HTMLB. WordC. PDF

3. Web pages are said to be ___ Because they do not retain information about user request.A. DynamicB. Static

4. The ____ Attribute is used to specify the name of the source file that contains the corresponding codebehide class.A. InheritsB. SRC

5. ___is a method that can be used to create dynamic HTML pages and provide user interaction.A. Client-side sciptingB. Server-side sciptingC. Client-Server programming

6. The first beta version of ASP was code named_____A. DenaliB. ASP.NETC. ASP.BETAD. BETA.ASP

7. There are several mathods that can be used to create dynamic pages.A. Server-based scriptB. Client-side scriptC. Dynamic HTMLD. All the above

8. The ____ attribute is used to specify the name of the codebehide class.A. InheritsB. SRC

9. The _____ attribute causes the form to be submitted to the server.A. Runat=”server”B. Runat=”client”C. Runat=”web”D. Runat=”virtual”

10. The_____ control stores the changes made to the controls on the form.A. HTMLB. ServerC. HiddenD. Auto

Page 2: ASP

11. The ____ method of the_____ object is used to retrieve the data in the form fields submitted by the user.A. Form.Get method of the Request objectB. Form.Let method of the Request objectC. Form.Get method of the Response objectD. Form.Let method of the Response object

12. It is possible to check whether a .aspx page is posted back to the server with the help of the ____ property of the page.A. IsPostBackB. IsPostForwardC. IsPostedD. IsPostedBack

13. The____method of the _____ object is used to redirect the user to another page.A. Redirect method of the ResponseB. Form.Get method of the Request objectC. Form.Let method of the Request objectD. Redirect method of the Request

14. Setting the textmode to ___ allows the user to enter many lines of data.A. SinglelineB. ManylineC. MultilineD. Anyline

15. ___ are used mainly when user needs to navigate between pages.A. ButtonsB. ImageButtonsC. LinkbuttonsD. Hyperlinks

16. The______property of a checkbox control can slow down the application.A. PostBackB. AutoPostBackC. AutoPostD. SelfPost

17. The _____ property of the RadioButton control restricts the user to select only one option from a given set of option.A. GroupNameB. PanelNameC. RadioNameD. ButtonName

18. A____control allows the user to choose one or more option from a list of options.A. DropDownListB. ListBoxC. DropBox

Page 3: ASP

D. DropDown19. The _____ control is used to mainly control the visibility of a group of controls.

A. ContainerB. AdRotatorC. CalendarD. GroupBox

20. The calendar control respond to two events,____and____.A. Data changesB. Month changesC. Year changesD. None of the above

21. The ___ control is used when a field must not be left blank.A. RangeValidatorB. CustomValidatorC. RequiredFieldValidatorD. RegularExpressionValidator

22. The____ property specifies the control, which we want to validate.A. ControlvalidateB. IsValidC. ValidateControlD. IsValidControl

23. Comparison of the values antered into a control with a specified pattern is made possible by the____control.A. RangeValidatorB. CustomValidatorC. RequiredFieldValidatorD. RegularExpressionValidator

24. The _____ control cannot be used to call client-side functions for the purpose of the validation.A. ValidatorB. Custom ValidatorC. Menthod ValidatorD. Control Validator

25. To disable client-side validation the ____ property can be set to downlevel.A. ClientTargetB. ServerTargetC. TargetClienrD. TargetServer

26. Validity of a page can be checked using the ___ property.A. ControltovalidateB. IsValidC. IsValidPageD. IsValidControl

Page 4: ASP

27. A_____is a function that can be deployed over the Web, and can be called by any application or another sevice.A. Windows ServiceB. Windows FormC. Web FormD. Web Service

28. The ____ directive indicates the compiler that the page is web service.A. @RegisterB. @PageC. @WebServiceD. @Import

29. _____namespace contains all the classes to create web services.A. System.Web.ServiceB. System.WebServiceC. System.WebD. System.Web.UI

30. ______ paremeter of WebService Is used to define the language in which the web service is written.A. ClassB. LanguageC. ActionD. Post

31. ____ is a language that describes or portrays a Web service.A. UDDIB. WSDLC. C#D. VB.NET

32. ____ helps to register the services provided by the service providers, so that they can be shared.A. UDDIB. WSDLC. C#D. VB.NET

1. The Global.asax is file is stored in the _____ directory of the application client-side scriptingA. SubB. BinC. ObjD. Root

2. The ___ event of Global.asax fires every time a page request begins.A. Application_EndRequestB. Application_StartC. Application_BeginRequest

Page 5: ASP

D. Session_Start

3. For each user who accesses the application, individual ____ are startedA. ServersB. SessionsC. ApplicationD. Requests

4. The ___ object is a built-in ASP.NET object that represents an instance of the ASP>NET applicationA. SessionB. ApplicationC. ServerD. Global

5. Object-Level variables are of two types ___ and ___ A. Application level and Session levelB. Server level and Session levelC. Client level and server levelD. Client level and Application level

6. ______ variable can be accessed by at the pages in the application.A. SessionB. ApplicationC. ServerD. Global

7. We can use ____ and _____ methods to ensure that application-level variables are not updated by more than one user simultaneously.A. Block and UnblockB. Lock and UnlockC. Server and SessionD. Lock and Key

8. The server object has the properties ___ and _____A. ScriptTimeln and MachinePathB. ScriptTimeOut and MachineNameC. Execute and TransferD. HtmlEncode and UrlEncode

9. The ___ method acts as interface between the virtual or relative directories on the web server and the physical directories on the server.A. MachinePathB. MapPathC. TransferD. UrlEncode

10. The __ method is used is used to explicitly end the session.

Page 6: ASP

A. AbandonB. EndC. ScriptTimeOutD. Dispose

11. ____is an object in which the data retrieved from the database can be storedA. ConnectonB. DatasetC. CommandD. SqlCommand

12. ____ application need to maintain an continuous connection with the databaseA. WebB. Client-serverC. WindowsD. System

13. The data is bound to the DataGrid using the ____ method.A. Bind()B. Bond()C. DataBind()D. Lock()

14. ______ property of DavaView can be used to filter the rows according to the condition sepecified.A. Item B. SortC. RowFilterD. Count

15. The DataTable structure is defined by its ___ and ___A. Columns and constraintsB. Columns and rowsC. Rows and constraints

16. The ___tag adds an assembly reference to use during compilation of a dynamic resource.A. AssemblyB. Add subtag of assembliesC. NamespaceD. Reference

17. The selection that defines classes that will be used to interpret the configuration data is known as the Configuration Section _____ AreaA. Handler DeclaretionB. Setting areaC. Declaration areaD. Handler area

18. ASP.NET Configuration files are written in ____A. XML

Page 7: ASP

B. XSLC. HTMLD. XHTML

19. The remoteOnly mode in ____ tag specifies the custom error page will be displayed only for the remote users and not for the users using the local machine.A. CustomErrorsB. customErrorsC. CustomErrorD. customError

20. the ___ configuration settings enable to control some of the default behaviors for all the ASP.NET pages in the application or machine.A. System.webB. PageC. Web.configD. System.config

21. The authentication type that uses cookies is known as ______A. FormsB. WindowsC. PassportD. Application

22. Tracing can be performed at two levels. One is at the page level and the other is at _____ level.A. OutputB. DataC. ApplicationD. Object

23. ____ is a traceMode available, which sorts the categories based on the time at wich they were fired.A. TimeSortB. SorlByTimeC. SortTimeD. TimeSortMode

24. The ___ category in the trace output lists all the items in the pageA. Header collectionB. Form collectionC. Cookies collectionD. Control tree

25. ___ property of trance object is used to check if trace in an ASP.NET page is enabled.A. TranceEnabledB. IsEnabledC. EnableTranceD. IsTranceEnabled

26. The ___ directive is used to set the catching duration of the output for a page.

Page 8: ASP

A. @CacheOutptutB. @OutputC. @OutputCacheD. @CacheDuration

1) When the _________ method is called for the whole page, all the data binding expressions on the page are evaluateda) Fill()b) Read Xml()c) DataBind()d) DataBinder.Eval()

2) The Databinder() method return a value of type ______ when the format string is not a) DataTableb) Objectc) Classd) DataRow

3) The layout for the data to be displayed is created with the help of __________ for a Repeater controla) Datagridb) Editltem Templatec) Forms d) Template

4) The______ property can be set to horizontal or vertical to display the data accordingly in a DataList controla) RepeatDirectionb) Directionc) RepeatColumnsd) ReadDirection

5) The __________ Displays links for executing edit , canel and update commands a) HeaderTextb) EditCommandColumnc) Editltemindexd) ButtonColumn

6) Variable identifiers are specified using the _________ in front of the parameter name a) $ symbolb) %symbolc) @symbold) #symbol

7) The DataGrid control possesses an integer property called _______ that can be used to store the row indexa) EditltemIndexb) Item

Page 9: ASP

c) Controlsd) AdditemIndex

8) The index selected by the user can be directly accessed with the help of the ________ argument of the event handlersa ) DataGridEventArgsb) Objectc) DataGridCommandEventargsd) EventArgs

9) The ______ namespace has to be imported to read XML data

a) System.xml

b) System.Data

c) System.InputOutput

d) System.IO

SESSION 15

1) Controls created by reusing the existing intrinsic and HTML elements are called _______a) Composite Controlsb) Pageletsc) HtmlControlsd) ControlCollection

2) Custom Controls created using C# need to be saved using the extension ______a) Aspxb) Ascxc) Asmxd) Cs

3) The Control class in the namespace ________ defines the properties, methods, and events that are shared by all asp.net server controls.form.get method of the Request objecta) Systemb) System.Webc) System.Web.UId) System.Web.UI.Server

4) Controls help in ________ of visual as well as functional capabilitiesa) WebControls b) Composite Controlsc) Reusabilityd) ControlCollection

5) The CreateChildControl() actually belong to the __________ classa) System.Web.UI.ControlCollection

Page 10: ASP

b) System.Web.UI.Serverc) System.Web.UI.Controld) System.Web.UI.WebControls

6) The System.Web.UI.InamingContainer is a _________ in ASP.net that has no methods and is used to create unique ID’sa) Classb) Namespacec) Interfaced) Struct

7) The _________ directive is used to consume a created custom controla) Registerb) Controlc) TagPrefixd) Import

1. The FileUpload control creates only a text box for locating files on the local folders(0.5)

a. Falseb. True

2. We can include any HTML tags, or even the Response.Write in the Application_OnStart() event method (0.5)

a. Falseb. True

3. Which property of HTML server controls specifies a collection of items that are listed in the control (1)

a. Collectionb. Itemsc. Controlsd. HtmlControls

4. The mobile Web application can be tested and viewed using an emulator(mo phong)(0.5)

a. Falseb. True

5. To ensure that ______ level variables are not updated by more than one user simultaneously, the application object makes use of Lock and UnLock methods

(1)a. Serverb. Sessionc. Object

Page 11: ASP

d. Applicatione. Page

6. The process of checking whether the required fields have been left blank or if they are filled in a pre-specified format is called _________ (1)

a. Encapsulationb. Correctionc. Correlationd. Validatione. Selection

7. The ________ object acts as an interface to the HTTP service & exposes properties & methods of the HTTP server (1)

a. Objectb. Serverc. Sessiond. Applicatione. Page

8. Which of the following statements about System.Web.UI.HtmlControls namespace are TRUE? (1)

a. HtmlTable control allows the developer to programmatically use the <select> tag on the server

b. Classes of System.Web.UI.HtmlControls namespace help in creating HTML server controls on the Web Forms pages

c. System.Web.UI.HtmlControls namespace provides a collection of Web server control classes

d. HtmlInputButton class allows the developer to programmatically use the HTML <input type=”passwords”> tag on the server

9. Which property of HTML server controls specifies or retrieves the control on the form with the input focus when the control is loaded (1)

a. DefaultFocusb. Methodc. LoadingFocusd. Focuse. Control

10. Application-level tracing can be disabled directly in the Web.Config file by adding the <trace> node or setting it to false (0.5)

a. Falseb. True

11. _______ checks if the value of a control matches the value of another control or variable (1)

a. CustomValidator

Page 12: ASP

b. RequiredFieldValidatorc. RangeValidatord. RegularExpressionValidatore. CompareValidator

12. Which method or property of HttpRequest class retrieves the virtual path of the page (1)

a. MapImageCoordinateb. QueryStringc. MapPathd. ApplicationPathe. FilePath

13. Which control of the following controls ensures that values for mandatory fields of a registration form are entered (1)

a. ValidationSummaryb. RequiredFieldValidatorc. CustomValidatord. MandateValidator

14. The ________ technique provided by ASP.NET avoids increasing complexity in creating web pages which need high-quality graphics as well as complex programming (1)

a. Code Forwardb. CSCc. Code Graphicd. Code Behind

15. The AutoPostBack property has to be set to ________ if the checkbox status has to be informed to the server immediately (1)

a. 1b. Truec. 0d. Enablede. Falsef. Server

16. In a ASP.NET page, the _______ sign specifies that checking ends here(1)

a. /d{}b. ^c. +d. \we. $f. []

Page 13: ASP

17. Which property of HttpRequest class returns a collection of name-value pairs that represent the elements of a form (1)

a. MapPathb. ApplicationPathc. MapImageCoordinated. QueryString

18. CheckBoxes, ListBoxes, RadioButtons and DropDownLists are ________ type controls (1)

a. Validationb. Containerc. Listd. Intrinsice. Selectionf. Rich

19. Multiview control can be referred to as a container of View controls (0.5)a. Falseb. True

20. The users for the application and where the application will be deployed will be decided in the ________ stage (1)

a. Production and Maintainenceb. Constructingc. Going Lived. Designinge. Testingf. Planning

21. Which control represents the HTML <button> tag on the server? (1)a. HtmlCommandb. HtmlButtonc. HtmlActiond. HtmlSubmite. HtmlInput

22. Which method or property of HttpRequest class maps the incoming image-field form parameter to its coordinates (1)

a. FilePathb. QueryStringc. ApplicationPathd. MapImageCoordinates

23. Web Forms can be used for making Web applications that have several controls(0.5)

a. False

Page 14: ASP

b. True

24. Which control represents the HTML <img> tag on the server? (1)a. HtmlImageb. HtmlImgInputc. HtmlImgd. HtmlImageIcone. Bitmap

25. If no expiry date is specified, the cookie expires when the user leaves the website(0.5)

a. Falseb. True

26. The ________ element specifies the priority of the advertisement in the rotation schedule of al advertisements (1)

a. Alternateb. Keywordc. Targetd. Imagee. Impression

27. The ________ object is a built-in ASP.NET that represents an instance of an ASP.NET application (1)

a. Globalb. Sessionc. ObjectContextd. Application

28. The ________ attribute of the control allows a developer to access the control programmatically (1)

a. idb. valuec. eventd. htmle. accessf. script

29. the _________ object is used to control transaction processing (1)a. Sessionb. Requestc. Serverd. Responsee. Applicationf. ObjectContext

Page 15: ASP

30. An emulator is a software application that allows you to get a layout of the mobile Web application on a specific mobile hardware device (0.5)

a. Falseb. True

31. The _______ method is used to transfer execution fully to the specified page(1)

a. Executeb. Transfer

32. @ Page directive specifies various attributes for a Web page (0.5)a. Falseb. True

Syntax: <% Page <attribute>=”<value>” %>Chú ý:

- @ Import: imports a namespace to a page that allows you to include the classes and interfaces within the namespaceSyntax: <%@ Import namespace=”<value>” %>

- @ Assembly: associates an assembly to a page or any control- @ Master: defines various attributes for a master page, which is saved with

the .master extension- @ Reference: associates a page, control to the current page

33. Which control of the following controls checks whether the value entered is a prime number (1)

a. NumericValidatorb. PrimeValidatorc. RequiredFieldValidatord. CustomValidatore. CompareValidator

34. Which control represents the HTML <input type=”text”> element on the server?(1)

a. HtmlInputTextb. HtmlTextFieldc. HtmlInputd. HtmlForm

35. The System.Web.UI.MobileControls namespace contains a set of ASP.NET server controls to be used for developing Web applications for different mobile devices

(0.5)a. Falseb. True

Page 16: ASP

36. ________ variables are used to share common information across users(1)

a. application levelb. page levelc. object leveld. session level

37. Which of the following statements about Server object and HttpServerUtility class are False? (1.5)

a. The HtmlEncode method encodes a string to be displayed in a browserb. The Server object serves as an in-built object of the HttpServerUtility classc. The ScriptTimeout property specifies or retrieves the time in milliseconds in

which the request is timed outd. The UrlEncode method encodes a string for reliable HTTP transmission from the

Web server to a client via the URL

38. A cookie can be made persistent by setting it’s ________ property (1)a. Stayb. Persistc. Expires

39. ________ permissions are set if we want to include ASP.Net files in the directory(1)

a. Scriptb. Executec. Writed. Read

40. Which control of the following controls compares the values in the Password and the Confirm Password fields (1)

a. RequiredFieldValidatorb. EqualValidatorc. CompareValidatord. CustomValidator

41. The mobile application architecture allows creation of Web pages that can be displayed on browsers of both, desktop as well as mobile devices (0.5)

a. Falseb. True

42.43. Which property of HTML server controls specifies or retrieves the alignment of the

image on the Web page (1)a. Page controlsb. Web controlsc. HTML controls

Page 17: ASP

d. Event controls

44. All event procedures receive two arguments from the events, the event sender and the (1)

a. Server attribute IDb. Event Argument IDc. Event Objectd. User Interface ID

45. An application variable retains the value assigned to it until the application is unloaded, or the Web server is shut down (0.5)

a. Falseb. True

46. The _______ variables are defined by the scripting language within the ASP.NET <script> section (1)

a. page levelb. application levelc. session leveld. object level

47. In a ASP.NET page, ________ allows any value to be entered (1)a. + b. /d{}c. ^d. \we. $f. []

48. FindNode() method is used to retrieve a node from the TreeView control at the specified value path: True (0.5)

a. + b. /d{}c. ^d. \we. $f. []

49. DropDownList control supports only single selection (0.5)a. falseb. true

50. Dynamic pages can be created using Server as well as Client based scripts(0.5)

a. Falseb. True

Page 18: ASP

51. The _______ control is added to the form when the form is submitted to the server(1)

a. _PAGE LOADb. _VIEWSTATEc. _VIEWd. _HIDE

52. In a ASP.NET page, the ________ sign specifies that checking starts from here(1)

a. + b. /d{}c. $d. \we. []f. ^

53. Instead of allowing the user to enter data, data entry may be standardized by providing a set of options, and allowing he user to choose one of them.______ serve this purpose (1)

a. Selection Controlsb. Container Controlsc. List Controlsd. Validation Controlse. Intrinsic Controlsf. Rich Controls

54. Web server controls automatically detect the browser capabilities and provide the markup accordingly (0.5)

a. Falseb. True

55. ValidatorSummary is a list of all validation errors occurring in all the controls(0.5)

a. Falseb. True

56. Methods like Execute & Transfer, HTMLEncode, URLEncode & MapPath are methods of the _______ object (1)

a. Sessionb. Applicationc. Serverd. Array

57. The _________ class is used to retrieve information stored in a cookie & sent to the server through an HTTP request (1)

a. RequestCookie

Page 19: ASP

b. HttpCookiec. ResponseCookie

58. When a new user accesses an application, the _______ event is activated(1)

a. Application_OnEndb. Application_OnStartc. Session_OnEndd. Session_OnStart

59. _________ checks if the value entered is checked by a client or server side function created by us (1)

a. RegularExpressionValidatorb. CustomValidatorc. RangeValidatord. RequiredFieldValidatore. CompareValidator

60. TextWriter TraceListener class is used to collect, store, and route the trace messages to the trace output (0.5)

a. Falseb. True

61. Which property of HTML server controls specifies the way to post data to the server (1)

a. DefaultPostb. Postc. Methodd. Itemse. Get

62. The directory in which we store the application files is called the _______(1)

a. Path directoryb. Physical directoryc. Virtual directoryd. Root directory

63. When user quits the application, the _______ event is activated (1)a. Application_OnEndb. Application_OnStartc. Session_OnEndd. Session_OnStart

64. The Cookies property of Response object contains a collection of cookies to be transmitted to the client in the request (0.5)

Page 20: ASP

a. falseb. true

65. Which of the following statements about Server object and HttpServer Utility class are true? (1.5)

a. The HtmlEncode method encodes a string to be displayed in a browserb. The Server represents a web server in ASP.NETc. The Server object serves as an in-built property of the HttpServerUtility

classd. The ScriptTimeout property specifies or retrieves the time in milliseconds in

which the request is timed out

66. Which property of HTML server controls specifies whether multiple items in the list can be selected (1)

a. Itemsb. SelectionModelc. MultiModed. Multiple

67. The AdRotator control uses an HTML file to store information about the advertisement (0.5)

a. Falseb. True

68. CheckBoxList control allows only single selections (0.5)a. Falseb. True

69. Which control represents the HTML <select> tag on the server? (1)a. HtmlInputTextb. HtmlSelectc. HtmlOptiond. HtmlComboBoxe. HtmlButton

70. The different types of servr controls area. Web controls b. Page controlsc. Event controlsd. Html controls

Page 21: ASP

Recommended