0

ASP Programming

Description: ASP
Number of Questions: 15
Created by:
Tags: ASP Programming
Attempted 0/15 Correct 0 Score 0

Which of the following objects maintains information for the life of an application?

  1. Session object

  2. Dictionary object

  3. Voting

  4. Application object


Correct Option: D
Explanation:

Application object maintains information for the life of an application.

Which method of response object outputs the contents of the page buffer immediately but it does not stop processing the rest of the page?

  1. End

  2. Clear

  3. Flush

  4. None of these


Correct Option: C
Explanation:

This is the third method. Iit outputs the contents of the page buffer immediately but it does not stop processing the rest of the page.

Which of the following types of cursors in ASP allows you to move through a recordset and reflects all changes made by another user?

  1. adOpenForwardOnly

  2. adOpenStatic

  3. adOpenDynamic

  4. None of these


Correct Option: C
Explanation:

This type of cursor in ASP allows you to move through a recordset and reflects all changes made by another user.

Which parameter of CreateTextFile method specifies the path of file to be created?

  1. Overwrite

  2. Unicode

  3. FileSpecifier

  4. None of these


Correct Option: C
Explanation:

This parameter of CreateTextFile method specifies the path of the file to be created.

Which of the following File Access components in ASP is used for reading from and writing to a file?

  1. FileSystem object

  2. TextStream

  3. Folder

  4. File


Correct Option: B
Explanation:

This object is used for reading from and writing to a file.

Which of the following text files is used to record the activities of the visitors to your site?

  1. Store HTML Form Data

  2. Create a Custom Log

  3. Store tip of the Day

  4. None of these


Correct Option: B
Explanation:

This text file is used to record the activities of the visitors to your site.

Which of the following methods of TextStream method reads the specified number of characters from the text file?

  1. Read(<character>)

  2. Write(<string>)

  3. Read

  4. ReadLine


Correct Option: A
Explanation:

This method of TextStream method reads the specified number of characters from the text file.

____________ component of ASP provides communication with a database.

  1. Request object

  2. Server object

  3. Active databse

  4. Content linking


Correct Option: C
Explanation:

This object provides communication with a database.

Which of the following properties of recordset object in ASP indicates that the current record postion is after the last record in a recordset?

  1. BOF

  2. EOF

  3. RecordCount

  4. None of these


Correct Option: B
Explanation:

This property of recordset object in ASP indicates that the current record postion is after the last record in a recordset.

____________ are the tools used to communicate with the server's environment and system.

  1. Components and objects

  2. Request and response

  3. Properties

  4. None of these


Correct Option: A
Explanation:

Components and objects are the tools used to communicate with the server's environment and system.

Which of the following server variables describes a virtual path to the script being executed?

  1. PATH_TRANSLATED

  2. SCRIPT_NAME

  3. REMOTE_ADDR

  4. SERVER_PORT


Correct Option: B
Explanation:

This server variable describes a virtual path to the script being executed.

Which property of TextStream object indicates when the end of a particular line in a text file is reached?

  1. AtEndOfLine

  2. AtEndOfStream

  3. Column

  4. Line


Correct Option: A
Explanation:

This property of TextStream object indicates when the end of a particular line in a text file is reached.

_________ are used to exchange bits of information between different web pages.

  1. Query strings

  2. Form

  3. HTMLEncode

  4. None of these


Correct Option: A
Explanation:

Query strings are used to exchange bits of information between different web pages.

________ method of TextStream object is used to write the given string to a text file and adds a newline character.

  1. Write(<string>)

  2. WriteLine(<string>)

  3. WriteBlankLine(<number of lines>)

  4. Close


Correct Option: B
Explanation:

 This method of TextStream object is used to write the given string to a text file and adds a newline character.

_________ method skips the specified number of characters in an open file.

  1. SkipLine

  2. Skip(<characters>)

  3. Close

  4. None of these


Correct Option: B
Explanation:

This method skips the specified number of characters in an open file.

- Hide questions