ASP
UNIT 1
1. __________ is the process of executing code on the basis of the actions.
a) Event-driven programming b) trigger driven
c) procedure driven d) none
2. _________ are actions that occur as a result of something the user does.
a)Events b)function c) procedure d) none
3. The browser interface also provides a __________.
a)graphical interface b) Character interface c) cui d) none
4. Hierarchical organization chart that identifies the different ________.
a)Relationships b) entities c) tuples d) none
5. ____________ has properties for the name and version of the browser being used.
a)Navigator b) Browser c) location d) none
6. __________ object is the top-level object.
a)Window b) location c) url d) none
7. _____________ object contains properties based on the current URL.
a)Location b) window c) navigator d) none
8. ___________ object contains properties representing URLs the client has previously requested.
a)History b) location c) window d) none
9. HTML object model is used to display a________.
a) Web page. b) web items c) web elements d) none
10. Event-driven programming involves _________ an objects.
a)trapping b) events c) procedures d) none
11. Objects here refer to HTML ___________ objects.
a)Intrinsic b) extrinsic c) asp d) none
12. An event is a pre-defined _________ of an object.
a)action b) event c) proc d) none
UNIT 2
13. Expand HTTP________
a)Hypertext Transport protocol b) Hypertext Transport
c) Hypertext protocol d) none
14. Expand CGI ___________.
a)Common Gateway Interface. b) Common Gateway.
c) Common Interface. d) none
15. Expand ISAPI ___________.
a)Internet Server Application Programming Interface b) Internet Server Application Programming
c) Internet Server Application Interface d) none
16. ASP was born in __________.
a)November 1996 b) Dec 2000 c) Jan 2001 d) none
17. The Active Desktop refers to the ____________.
a)Client side b) Server side c) Middle Ware d) none
18. The Active Server refers to the _________ component.
a)server-side b) client-side c) middle ware d) none
19. ASP files combine ________, _________,&______.
a)HTML, scripts & ASP b) HTML, scripts & JSP C) HTML, scripts & BSP d) none
20. HTML files are _________ on the client side.
a)interpreted b) compiles c) ilcode d) none
21. Active Server Pages (ASP) is built around files with the file name extension _______.
a).asp b) .jsp c) .bsp d) none
22. A script command _________ your computer to do something.
a)instructs b) destructs c) commands d) none
23. A ________ is a script commands.
a)script b) program c) procedure d)none
24. VB Script is the default _________ that is used for primary scripting.
a)scripting language b) scripting program c) scripting event d) none
UNIT 3
25. _________ object handles information coming from the browser.
a)Request b) response c) cookies d) none
26. __________ handles information sent back to the browser.
a) Response b) session c) application d) none
27. __________ object provides access to some basic server services.
a)Server b) response c) request d) none
28. _________ Object maintains information for the life of an application.
a) Application b) session c) server d) none
29. __________ Object maintains information for the life of a session.
a) Session b) application c) server d) none
30. ___________ Objects manipulates text files.
a)Text b) numeric c) date d) none
31. __________ object provides for error analysis.
a)Error b) response c) request d) none
32. ___________ object creates a lookup reference.
a)Dictionary b) file c) drive d) none
33. __________ provide access to file system.
a) File system Object b) File object
c) Drive object c) none
34. ___________ imparts an order to the pages on a site.
a)Content Linking b) file object c) Drive object d) none
35. __________ specifies what a user’s browser can do.
a)Bowser Capabilities b) file c) Drive d) none
36. ____ rotates several ads in a spot on the page.
a)AD Rotator b) content Rotator c) permission checker d) none
37. ___ collects information from a user pol.
a)Voting b) polling c) booting d) none
38. ___________ provides communication with a database.
a)Active Database b) Static databse c) dynamic databse d) none
39.Active Server Pages provides a range of collections and ________.
a)Methods b) procedures c) events d) none
40. The collections and methods used to manipulate _________ actually belong to either of these two objects.
a)headers b) footers c) data d) none
41. ___________ collection is used to retrieve information about server environmental variables.
a)Server Variables Collection b) Variable collection
c) Session variables collection d) none
UNIT 4
42. active Server Pages provide a mechanism for _________ forms.
a)processing b) editing c) deleting d) none
43. The Form collection has a _________ property.
a)Count b) print c) manipulate d) none
44. A query string includes the __________ content.
a)textual b) numerical c) date d) none
45. The query string is passed to the server along with the rest of the ________.
a)user request b) server request c) form request d) none
UNIT 5
46. A session refers to the time __________.
a)duration b) span c) indication d) none
47. HTTP, as you know is a _________ protocol.
a) stateless b) state c) static d) none
48. Sessions can store ___________ performances.
a)user b) global c) public d) none
49. Sessions can maintain ___________ lists.
a)Virtual b) static c) array d) none
50. Sessions can keep track of the _________.
a)Pages b) pointers c) procedures d) none
51. The ASP Session object is used to control user ________.
a)Sessions b) applications c) cookies d) none
51. A session automatically ________.
a) Ends b) dies c) begins d) none
52. ASP sessions use ________ to track and control user sessions.
A) Cookies b) application c) server d) none
53. The Global file is an ___________ file.
a)Optional b) mandatory c) compulsory d) none
54. Netscape introduced ____________.
a) Cookies b) session c) application d) none
55. Cookies can be ___________ or persistent.
a)Temporary b) permanent c) static d) none
56. A web server writes cookies to and reads cookies from a browser through ______. headers.
a)HTTP b) ATTP C) DTTP D) none
UNIT 6
57. _________ data can be shared among the different pages.
a) Applications b) sessions c) server d) none
58. ____________ are associated with an application .
a)Specific events b) specific procedures c) specific functions d) none
59. Different pages in an application can __________ common instances of objects.
a)share b) not share c) access d) none
60. Separate applications can be run in _________ memory.
a) Separate b) different c) common d) none
61. An _________ variable persists throughout an application.
a)application b) session c) cookies d) none
62. Multiple users can share _________ variables.
a)application b) session c) cookies d) none
63. _________ are not destroyed at the end of a user session.
a)Application variables b) session variables c) cookies variables d) none
64. Application variables can be used to display _________ information.
a)common transient b) different transient c) unique transient d) none
65. The ___________ event occurs before the first new session .
a)Application Onstart b) application onend c) session onend d) none
UNIT 7
66. Most component instances are created with ________.
a)page scope b) static scope c) application scope d) none
67. __________ statement is used to assign the component instance to a variable name.
a) VB Script Set b) jscript set c) javascript set d) none
68. The Browser Capabilities component provides your scripts with a description of the capabilities of the __________.
a)client’s web browser b) servers web browser c) servers web appls d) none
69. ___________ object provides file basic methods, such as copy and delete for working with the file system.
a)File system b) drive system c) directory system d) none
70. __________ object is used for reading from and writing to a file.
a)Text Stream b) Drive Stream c) Directory stream d) none
71. ___________ object enables you to work with individual files.
a)File b) directory c) drive d) none
72. __________ method copies one or more files from one location to another.
a)Copy File b) deletefile c) movefile d) none
73. The __________ method of the File System Object can be used to detect whether a particular file exists or not.
a) File Exists b) File notExist c) FileMayExist d) none
74. The ___________ component makes it easy for you to provide logical navigation through the .asp files.
a)Content Linking b) Ad rotator c) Permission checker d) none
75. The Content Linking component manages a list of ________.
a)URLs b) locations c) history d) none
76. The _____________ component can be used to display a link to a page only when a user is authorized to access the page.
a)Permission Checker b) adrotator c) checker d) none
77. The __________ file contains all the information about the banner advertisements.
a)Rotator Schedule b) permission checker c) content linking d) none
78. The Ad Rotator has _________ properties.
a)Three b) two c) one d) none
UNIT 8
79. Microsoft introduced ADO in _________.
a)March 1997 b)April1997 c)May1997 d) None
80. _________ & _________ are not intended to replace ODBC.
a)OLE DB & ADO b) odbc & ado c) oled & rdo d) none
81. The ADO hierarchy comprises of __________ independent objects.
a)Seven b) Three c) Two d) One
82. _______ represents records from a data provider.
a)Record set b) datasource c) datastate d) none
83. _________ represents an individual field in a Record set.
a) Field b) Column c) Attribute d) none
84. A transaction is a set of one or more __________ statements.
a)SQL b) pl/sql c) jsql d) none
85. A transaction is started by calling the __________.
a) Begin Trans b) End trans c) Abandon trans d) none
86. Cursors are used to open __________.
a) Record sets b) files c) fields d) none
87. The __________ represents a command to be executed.
a) Command object b) Common object c) Asp object d) none
II. Each Question carries FOUR MARK
UNIT-1
1) which of the following are correct
i) event-drriven programming is the process of executing code
ii) events are actions
iii) in procedural programs the application drives the code
iv) applications are loose collections of subroutines
a) I b) ii c) iii d) all
2) which of the following are correct
i) msgbox displays text
ii) inputbox reads value
iii) vbok is one of the constant
iv) objects refer to HTML intrinsic objects
a) I b) ii c) iii d) all
UNIT –2
1) which of the following are correct
i) asp files conbine html,scripts and asp code
ii) object-oriented and extensible with active X server components
iii) html files are interpreted
iv) asp is not a scripting language
a) I b) ii c) iii d) all
2) which of the following are correct
i) set the primary scripting on the first line of the file
ii) place a space between @ and LANGUAGE
iii) vbscript is the default scripting language
iv) vbscript,javascript,jscript are scripting languages
a) I b) ii c) iii d) all
3) which of the following are correct statements
i) asp uses <%%> delimeters.
ii) Asp provides environment
iii) .asp file is a text file and contain html tags, script commands
iv) a script command instruct your computer
a) I b) ii c) iii d) all
UNIT –3
1. which of the following are correct
i) request object handles information coming from the brower
ii) respnse object handles information sent back to the browser
iii) application maintains information for the life of an application
iv) error object provides for error analysis
a) I b) ii c) iii d) all
2) which of the following are correct
i) AUTH_TYPE it allows only authorized users
ii) CONTENT_LENGTH contain length of content
iii) URL gives the base portion of the URL
iv) REQUEST_METHOD may be get,head,post
a) I b) ii c) iii d) all
3) which of the following are corect
i) query_string is one on the server variables
ii) remote_addr contain address
iii) script_name contain virtual path
iv) server_port_secure contain 0 or 1
a) I b) ii c) iii d) all
4) which of the following are correct
i) if should end with end if
ii) for end with next
iii) else is option
iv) select ends with endselect
a) I b) ii c) iii d) all
5) which of the following are correct
i) do until ends with loop
ii) asp provides a range of collections and methods
iii) asp provides access internet,intranet
iv) asp provides built-in objects
a) I b) ii c) iii d) all
UNIT – 4
1) WHICH OF THE FOLLOWING ARE CORRECT
I) encoding is the method of server
II) asp implements only the #INCLUDE pre-processing directive of this methnism
III) form contain data when the method is post
IV) querystring contain data when the method is get
a) I b) ii c) iii d) all
2) which of the following are correct
i) buffer is property of response
ii) collection contain two columns
iii) server object has createobject method
iv) error maintain error information
a) I b) ii c) iii d) all
UNIT –5
1. which of the following are correct
i) session refers time duration
ii) HTTP is a stateless protocol
iii) Session maintain a particular user data
iv) Session id property of session
a) I b) ii c) iii d) all
2) which of the following are correct
i) abandon is method of session
ii) abandon used to terminate session
iii) session has two events
iv) session_onstart fires automatically
a) I b) ii c) iii d) all
3) which of the following are correct
i) session events should be define GLOBAL.ASA
ii) timeout is the property of session
iii) application should have only one Global.asa
iv) appliction having 2 events
a) I b) ii c) iii d) all
4) which of the following are true
i) cookies are creates using response object
ii) cookies values can read using request object
iii) cookies are stored in client
iv) cookies are like sessions
a) I b) ii c) iii d) all
UNIT –6
1) which of the following are true
i) applications data can be shared
ii) application variables can be modify
iii) application has 2 events
iv) application events should define in global.asa
a) I b) ii c) iii d) all
2) which of the following are true
i) lock is a method of application
ii) unlock is a method of application
iii) lock prevents multiple user modifications
iv) unlock release a lock
a) I b) ii c) iii d) all
3) which of the following are correct
i) application object variables will remain in the memory
ii) application variables locate in web server
iii) application variables can store global data
a) I b) ii c) iii d) all
1) which of the following are correct
i) adrotator use to display adds
ii) adrotator should have schedule file
iii) adrotator schedule file has two parts
iv) schedule file can separte using *
a) I b) ii c) iii d) all
2) which of the following are correct
i) filesystemobject use to work with files
ii) filesystemobject use to work with folders
iii) filesystemobject use to work with drives
iv) files systemobject is a component
a) I b) ii c) iii d) all
3) which of the following are correct
i) createtextfile is a method of filesystemobject
ii) opentextfile is a method of filesystemobject
iii) createtextfile opena filestream
iv) opentextfile can also create a textfile
a) I b) ii c) iii d) all
4) which of the following are correct
i) fileexist is a property
ii) copyfile is a method of filesystemobject
iii) deetefile is a method of filesystemobject
iv) movefile is a method of filesystemobject
a) I b) ii c) iii d) all
ASP-ANSWERS
Unit-1 Unit-2 Unit-3
1 A 13 25 a 37 A
2 A 14 a 26 a 38 a
3 A 15 a 27 a 39 a
4 A 16 a 28 a 40 a
5 A 17 a 29 a 41 a
6 A 18 a 30 a
7 A 19 a 31 a
8 A 20 a 32 a
9 A 21 a 33 a
10 A 22 a 34 a
11 A 23 a 35 a
12 A 24 a 36 a
Unit-4
42 a 59 A 70 a 81 a
43 a 60 A 71 a 82 a
44 a 61 A 72 a 83 a
45 A 62 A 73 a 84 a
Unit-5 63 A 74 a 85 a
46 a 53 a 64 A 75 a 86 a
47 a 54 a 65 A 76 a 87 a
48 a 55 a Unit-7 77 a
49 a 56 a 66 A 78 a
50 a Unit-6 67 A Unit-8
51 a 57 a 68 A 79
52 a 58 a 69 A 80