Saturday, December 12, 2009

asp

ASP Bits
One Mark Questions
1) ______________ is the process of executing code on the basis of the action
a. Event-driven programming b. Procedure oriented programming
c. function oriented programming d. none

2) applications are loose collections of ___________ and ____________
a. subroutines, function b. events,triggers
c. events,functions d. none

3) event is mapped to
a. method b.application
c.function d.none

4) method is known as an
a. event handler b. event controller
c. event function d. none

5) HTML object model is ___________ organisation
a. hierarchical b.functional
c.procedural d.none

6)___________ is the top level object
a. window b. navigator c. document d. none

7) _____________ object contain properties based on the content
a.document b. navigator c. window d. none

8)__________ object representing URLs
a. history b. navigator c. window

9) ______ object has properties based on the current URL
a. location b. navigator c. window d. none

10) Objects refer to HTML ________
a. intrisic objects b. external objects c. file components d. none

11) ________ used to gather textual information from the user
a. inputbox b. messagebox c. corporate box d. none

12) ____________ used to present a message to the user
a. messagebox b. inputbox c.corporate box d.none

13)___________ must be manually edited to update their content.
a. static pages b. dynamic pages c. demo pages d. none

14) ASP was born in
a. Nov 1996 b. Dev 1996 c. Oct 1996 d. none

15) The active desktop refers to
a. client side b. server side c. component side d. none

16) Active server refers to the _________ component
a. server side b. client side c. network side d. none

17) HTML files are interpreted on the __________
a. client side b. server side c. network side d. none

18) ________ is the default scripting language that is used for primary scripting
a. vbscript b. javascript c. jscript d. none

19) ________ object handles information coming from the browser
a. request b. response c. session d. none

20) _____ object handles infrom sent back to the browser
a. response b. request c. session d. none


21) ______ Creates a lookup reference
a. dictionary b. text c. error d. none

22) _______ Collects information from a user poll
a. voting b. text file c. dictionary d. none

23) which server variables provides Windows NT account information
a. logon_user b. server_user c. session_user d. none

24) the collection of the object is used to extract the contents fo an html form is
a. form b. document c. window d. none

25) the method of the ________ object is used to convert HTML tags to HTML character codes is__________
a. server,htmlencode b.appliction,htmlencode c.session,htmlencode d. none

26) ______ Are used to exchange bits of information between different web pages
a. querystring b. form c. post d. none

27) Session refer to
a. time duration b. calender duration c. accounts duration d. none

28)______ begins when the user connects to the site and ends after he leaves the site.
a. session b. application c. cookies d. none

29) ________ was developed to over come the limitation of HTTP
a. session b. application c. cookies d. none

30) __________ is a stateless protocol
a. HTTP b. FTP c. GOPHER d. none

31) _________ can store user preferenes
a. Sessions b. applications c. cookies d. none

32) Sessions can maintain ______ lists.
a. Virtual b. Physical c. Logical d. None

33) Explicity end a session with ____ method
a. Abandon b. Kill c. Stop d. None

34) what is the default value of session timeout
a. 20-minutes b. 20-seconds c. 20-hours d. none

35) _______ file called as application file
a. global.asa b. global.asp c. global.html d. none

36) _________ introduced cookies
a. netscape b.Microsoft c. IBM d. none

37) cookies sent in an _________ transmission.
a. encrypted b. decrypted c. noncrypted d. none

38) the session_onstart script must be located in file _____
a. global.asa b. global.html c. global.asp d. none


Part – B
Two mark Questions

1) Which of the following are methods of Recordset
i) Addnew
ii) CancelBatch
iii) Delete

a) i, ii b) ii, iii c) iii, i d) All of the above

2) Which of the following are properties of Recordset
i) Absolutepage
ii) pagecount
iii) Pagesize

a) i,ii b) ii, iii c) iii, i d) All of the above

3) Which of the following statements are true
i) Maxrecords property restricts no of records
ii) pagecount property to keet track of the number of pages in a recordset
iii) Absolute property is used to move to a particular page

a) i, ii b) ii, iii c) iii, i d) All of the above

4) Which of the following statements are true
i) Addnew method adds a new record to a recordset
ii) Cancelbatch method cancels a batch update when a recordset is in
batch_updata mode
iii) Delete moethd deletes a record from a recordset

a) i, ii b) ii, iii c) iii, I d) All of the above

5) Which of the following statements are true
i) Updatebatch method saves changes made to one or more records when the
recordset is in batch-update mode
ii) pagesize property specifies the number of records in a page
iii) Constants are stored in adovbs.inc file

a) i, ii b) ii, iii c) iii, i d) All of the above

6) Which of the following statements are true
i) The command object represents a command to the executed
ii) maxrecords property cannot be changed once the recordset created
ii) recordset object to execute the command string


a) i, ii b) ii, iii c) iii, i d) All of the above

7) Which of the following statements are true
i) ADO stands for Activex Data objects
ii) The execute method of the command object is used to execute command
strings
iii) Transactions are useful in maintaining data integrity during batch
updating

a) i, ii b) ii, iii c) iii, i d) All of the above
8) Which of the following are collections of recordset
i) Clientcertificate
ii) cookies
iii) form

a) i, ii b) ii, iii c) iii, i d) All of the above

9) Which of the following are collections of Request object
i) form
ii) querystring
iii) Servervariables

a) i, ii b) ii, iii c) iii, i d) All of the above

10) Which of the following are methods of Request object
i) addheader
ii) Appendtolog
iii) binary write

a) i, ii b) ii, iii c) iii, i d) All of the above

11. Which of the following are properties of request object
i) buffer
ii) cachecontrol
iii) charset

a) i, ii b) ii, iii c) iii, i d) All of the above

12) Which of the following statements are correct
i) response object clear methods clear the contents from the client buffer
ii) response object write method writes data
iii) request object binaryread method used for graphical data

a) i, ii b) ii, iii c) iii, i d) All of the above

13) Which of the following statements are correct regarding to application object
i) Contents is one of the collection
ii) Lock is one of the method
iii) Unlock is one of the method

a) i, ii b) ii, iii c) iii, i d) All of the above

14) Which of the following statements are correct regarding to Response object
i) Buffer is one of the property
ii) Isclientconnected is one of the property
iii) redirect is one of the method
a) i, ii b) ii, iii c) iii, i d) All of the above

15) Which of the following statements are correct regarding to server object
i) Createobject is one of the method
ii) Scripttimeout is one of the property
iii) urlencode is one of the method

a) i, ii b) ii, iii c) iii, i d) All of the above

16) Which of the following statements are correct regarding to error object
i) aspcode is one of the property
ii) aspdescription is one of the property
iii) category is one of the property

a) i, ii b) ii, iii c) iii, i d) All of the above

17) Which of the following statements are correct regarding to ad rotator component

i) border is one of the property
ii) clickable is one of the property
iii) GetAdvertisement is one of the method

a) i, ii b) ii, iii c) iii, i d) All of the above

18) Which of the following statements are correct
i) htmlencode is one of the method of server object
ii) column is one of the property of asperror object
iii) sessionid is one of the property of session object

a) i, ii b) ii, iii c) iii, i d) All of the above



19) Which of the following statements are correct
i) abandon is method of session object
ii) onend is one of the event of session object
iii) contents is one of the collection of session object

a) i, ii b) ii, iii c) iii, i d) All of the above

20) Which of the following statements are correct
i) getlistcount is method of contentlinking component
ii) getlistindex is method of contentlinking component
iii) getnexturl is method of contentlinking component

a) i, ii b) ii, iii c) iii, i d) All of the above

21) Which of the following statements are correct
i) Choosecontent is method of content rotator
ii) Getallcontent is method of content rotator
iii) Getnexturl is method of content linking component

a) i, ii b) ii, iii c) iii, i d) All of the above

22) Which of the following statements are correct
i) DSN stands for Data Source Name
ii) ODBC stands for Open Database Connectivity
iii) HTML stands for hyper text markup language

a) i, ii b) ii, iii c) iii, i d) All of the above

23) Which of the following statements are correct
i) Session Data accessable to only one user
ii) application data can accessable to all the users
iii) server object allows to create user objects
a) i, ii b) ii, iii c) iii, i d) All of the above

24) Which of the following statements are correct
i) Get is default method of form
ii) Get method can send upto 255 bytes
iii) Get method is not preferred to send secure data

a) i, ii b) ii, iii c) iii, i d) All of the above

25) Which of the following statements are correct
i) Asp variables accepts any type of data
ii) Asp supports dynamic arrays
iii) Asp supports multi user access

a) i, ii b) ii, iii c) iii, i d) All of the above

26) Which of the following statements are correct
i) Html page can include multiple submit buttons
ii) Before redirect method we should not specify output statements
iii) Response.end method stops asp execution
a) i, ii b) ii, iii c) iii, i d) All of the above
Part -C
FOUR MARK QUESTIONS

1) Map the following sets
Set –A
1) Response object
2) Request object

Set- B
i) Totalbytes
ii) Buffer
iii) Expires
A) 1 – i,2-i, B) 2-II,1-II
C) 2-III,2-III D) None of the above

2) Which of the following are methods of Textstream object
i) Read
ii) Readline
iii) Skip
iv) close
a) i, ii b) ii, iii c) i, iii d) All of the above

3) Which of the following are properties of Textstream object
i) Atendofline
ii) AtendofStream
iii) Column
iv) Line
a) i, ii b) ii, iii c) i, iii d) All of the above

4) Which of the following are arguments for opentextfile
i) object
ii) filename
iii) iomode
iv) create
v) format
a) i, ii, iii b) ii, iii, iv c) i, iii, v d) All of the above

5) Which of the following are arguments of copyfile
i ) Object
ii) Source
iii) Destination
iv) Overwrite
a) i, ii, iii b) ii, iii, iv c) i, iii, v d) All of the above

6) Which of the following are properties of File object

i) Attributes
ii) Datecreated
iii) Datelastaccessed
iv) Daelastmodified

a) i, ii, iii b) ii, iii, iv c) i, iii, v d) All of the above

7) Which of the following values are new attributes (File Object)
i) Normal
ii) Readonly
iii) Hidden
iv) System
v) Directory

a) i, ii, iii b) ii, iii, iv c) i, iii, v d) All of the above


8)Which of the following are properties of browser capabilities component
i) Platform
ii) Browser
iii) Version
iv) Cookies
v) Tables

a) i, ii, iii b) ii, iii, iv c) i, iii, v d) All of the above

9) Which of the following are features of asp application
i) Data can be shared among the different pages
ii) Specific events are associated with an application
iii) Different pages in an application can share common instances of objects
iv) Separate application can be run in separate memory spaces

a) i, ii, iii b) ii, iii, iv c) iii, i, iv d) All of the above

10) Which of the following statement are correct
i) Application variables can be used to hold the data retrieved from a database
ii) Application variables can be used to keep track of and display the number of visitors to your site.
iii) Application variables can be used to interchange information among different users of your site.
iv) Application variables can be used to record the number of times a particular item on your site has been clicked.

a) i, ii, iii b) ii, iii, iv c) iii, i, iv d) All of the above

11) Which of the following statements are correct
i) You can determine the number of application variables currently in memory
ii) Application variables cannot be destroyed in an asp of the application
iii) Application object event should be define in global.asa
iv) Session objective events should be define in global.asa

a) i, ii, iii b) ii, iii, iv c) iii, i, iv d) All of the above

12) Which of the following are correct
i) Netscape introduced cookies
ii) A web server writes cookies to and reads cookies from a browser through HTTP headers.
iii) The server creates a cookie in cookie file
iv) Cookies can have properties

a) i, iii, iv b) ii, iv, i c) iii, ii, i d) All of the above

13) Which of the following are properties of a cookie
i) Username
ii) Path
iii) Domain
iv) Expires

a) i, ii, iii b) ii, iii, iv c) i, ii, iv d) All of the above

14) Which of the following are correct
i) Sessionid property of the session object which uniquely identifies each session
ii) The session_onstart scrip must be located in the file Global.asa
iii) You can extend the duration of a user session
iv) Expires property used to make a cookie persist

a) i, ii, iii b) iii, ii, iv c) i, iv, ii d) All of the above




15) Which of the following are correct statements
i) A session refers to the time duration during which a specific user is connected to a particular web site.
ii) http is a stateless protocol
iii) Session can maintain Virtual list
iv) Session can keep track of the pages that are preferred by users
a) i, iii, iv b) iii, ii, iv c) i, iv, ii d) All of the above

16) Which of the following are correct statements
i) The collection of the object is used to extract the contents of an html form is Form
ii) The method of the Server object is used to convert html tage to html character codes is HTMLEncode
iii) Querystrings are used to exchange bits of information between different web pages
iv) Users can pass a query string to the server by typing it directly in the address bar of the browser window
a) i, ii, iii b) ii, iii, iv c) ii, i, iv d) All of the above

17) Which of the following are correct statements
i) ASP application is capable of accepting data from users
ii) Get is default method of form
iii) Post method can sand as much data
iv) Post method is slower than get method
a) i, ii, iii b) ii, iii, iv c) iii, iv, i d) All of the above

18) Which of the following are server variables
i) All_HTTP
ii) CONTENT_LENGTH
iii) CONTENT_TYPE
iv) QUERY_STRING
a) i, ii, iii b) ii, iii, iv c) i, iv, ii d) All of the above

19) Which of the following are correct statements
i) REMOTE_ADDR servervariable return IP address of the remove host
ii) SCRIPT_NAME servervariable return virtual path
iii) SERVER_NAME servervariable return The servers host name
iv) URL return base portion of the URL
a) i, ii, iii b) ii, iii, iv c) iv, iii, i d) All of the above

20) Which of the following are Built-in objects
i) Request
ii) Response
iii) Server
iv) Session
v) Application
a) i, ii, iii b) ii, iii, iv c) iii, iv, v d) All of the above

21) Match the following sets
Set-A
i) Session Object
ii) Text Object
iii) Dictionary Object
Set –B
a) Maintain information for the life of a session
b) Manipulates text files
c) Creates a lookup reference

a) i-a, ii-b, iii-c b) i-c, ii-a, iii-a
c) i-b, ii-a, iii-b d) None of the above






22) Match the following sets
Set-A
i) Active Database
ii) Voting
iii) Adrotator
Set-B
a) Provides communication with a database
b) Collects information from a user poll
c) Rotates several ads in a spot on the page

A) i-a, ii-b, iii-c B) i-c, ii-a, iii-a
C) i-b, ii-a, iii-b D) None of the above

23) Match the following sets
Set-A
i) Content linking
ii) Filesystem object
iii) Dictionary object

Set-B
a) imparts an order to the pages on a site
b) Provides access to file system
c) Creates a lookup reference

A) i-a, ii-b, iii-c B) i-c, ii-a, iii-a
C) i-b, ii-a, iii-b D) None of the above

24) Match the following sets
Set-A
i) vbOKonly
ii) vbOKCancel
iii) vbAbortretryIgnore

Set-B
a) OK BUTTON ONLY
b) OK AND CANCEL BUTTONS
c) ABORT RETRY AND IGNORE

A) i-a, ii-b, iii-c B) ic, ii-a, iii-a
C) i-b, ii-a, iii-b D) None of the above

25) Match the following sets
Set-A
i) Navigator
ii) Window
iii) Document
Set- B
a) properties for the name and version of the browser begin used
b) Top-level object
c) Contains properties based on the content
A) i-a, ii-b, iii-c B) i-c, ii-a, iii-a
C) i-b, ii-a, iii-b D) None of the above











Section-A

1 A 11 A 21 A 31 A
2 A 12 A 22 A 32 A
3 A 13 A 23 A 33 A
4 A 14 A 24 A 34 A
5 A 15 A 25 A 35 A
6 A 16 A 26 A 36 A
7 A 17 A 27 A 37 A
8 A 18 A 28 A 38 A
9 A 19 A 29 A
10 A 20 A 30 A

Section-B
1 D 11 D 21 A
2 D 12 D 22 A
3 D 13 D 23 D
4 D 14 D 24 D
5 D 15 D 25 D
6 D 16 D 26 C
7 D 17 D
8 D 18 D
9 D 19 D
10 D 20 D
Section-C
1 B 11 D 21 A
2 D 12 D 22 A
3 D 13 D 23 A
4 D 14 D 24 A
5 D 15 D 25 A
6 D 16 D
7 D 17 D
8 D 18 D
9 D 19 D
10 D 20 D