ASP Quiz

Description: Active Server Pages(ASP) Quiz
Number of Questions: 15
Created by:
Tags: asp
Attempted 0/15 Correct 0 Score 0
asp
  1. a collection of values sent as cookies in a HTTP header

  2. a collection of data sent with a submitted form

  3. from client variables described from within an object

  4. from the OS module

  5. A&B


Correct Option: E

Which of the following are ASP standard objects?

asp
  1. server

  2. response

  3. session

  4. All of the above


Correct Option: D

AI Explanation

To answer this question, you need to understand the standard objects in Active Server Pages (ASP).

Let's go through each option to understand why it is correct or incorrect:

Option A) server - This option is correct. In ASP, the "server" object is a standard object that provides methods and properties for interacting with the server.

Option B) response - This option is correct. The "response" object is a standard object in ASP that represents the response to a client request. It provides methods and properties for sending content back to the client.

Option C) session - This option is correct. The "session" object is a standard object in ASP that represents a user session. It allows you to store and retrieve information specific to a user's session.

Option D) All of the above - This option is correct. All the options (server, response, and session) are standard objects in ASP.

Therefore, the correct answer is option D. All of the above are ASP standard objects.

asp
  1. server

  2. session

  3. request

  4. response


Correct Option: B
asp
  1. session

  2. request

  3. server

  4. response


Correct Option: C
asp
  1. Active Server Protocol

  2. ActiveX Server Pages

  3. Active Setup Pages

  4. Active Server Pages

  5. Active Setup Protocol


Correct Option: D
asp
  1. < Comment a line in ASP >

  2. 'Comment a line in ASP


Correct Option: C

Which is better in managing your code when writing with ASP or any other scripting code?

asp
  1. Break it up into smaller easier-to-manage files that can serve as subroutines and function calls.

  2. Keep it nice and simple in one file and use subroutines and function calls.


Correct Option: A

AI Explanation

To answer this question, let's analyze each option:

Option A) Break it up into smaller easier-to-manage files that can serve as subroutines and function calls. This option suggests breaking the code into smaller files that can be used as subroutines or functions. This approach can make the code more modular and easier to manage. Breaking the code into smaller files allows for better organization and reusability. It also makes it easier to troubleshoot and debug specific parts of the code.

Option B) Keep it nice and simple in one file and use subroutines and function calls. This option suggests keeping the entire code in one file and using subroutines and function calls. While this approach can work for smaller projects or simpler scripts, it can become challenging to manage as the codebase grows. Having all the code in one file can make it difficult to locate specific sections of code or make changes without affecting the entire file.

Based on the explanations above, the correct answer is A) Break it up into smaller easier-to-manage files that can serve as subroutines and function calls. This approach allows for better code organization, reusability, and easier management as the project grows.

asp
  1. Syntax error such as missing parentheses, comma or quotation mark.

  2. Comments in your code are not tagged properly as comments.

  3. Make sure function names have both opening and closing parentheses.

  4. Check to see that the web page is properly saved with the extension as .asp

  5. All of the above


Correct Option: E

You want to add ASP capability to your company's website. What is the first thing you would check?

asp
  1. That all pages are saved in .asp extensions.

  2. Check that the web server has Microsoft FrontPage extensions installed.

  3. Make sure the web server is capable of hosting ASP pages.

  4. Check the coding and be sure the ASP code is surrounded with

  5. All of the above


Correct Option: C

AI Explanation

To answer this question, you need to understand the basic requirements for adding ASP capability to a website. Let's go through each option to understand why it is correct or incorrect:

Option A) That all pages are saved in .asp extensions. - This option is incorrect because while it is common practice to save ASP pages with a .asp extension, it is not a requirement for ASP functionality. ASP code can be embedded within HTML files as well.

Option B) Check that the web server has Microsoft FrontPage extensions installed. - This option is incorrect because Microsoft FrontPage extensions are not required for hosting ASP pages. FrontPage extensions are used for managing and publishing websites, but they are not necessary for enabling ASP functionality.

Option C) Make sure the web server is capable of hosting ASP pages. - This option is correct because the first thing you would check when adding ASP capability to a website is whether the web server is capable of hosting ASP pages. ASP is a server-side scripting language, so the web server needs to have the necessary components and configuration to process and execute ASP code.

Option D) Check the coding and be sure the ASP code is surrounded with - This option is incorrect because while it is important to ensure that the ASP code is properly surrounded by tags, it is not the first thing you would check. The first step is to verify that the web server can host ASP pages.

Option E) All of the above - This option is incorrect because the correct answer is option C. The first thing you would check is whether the web server is capable of hosting ASP pages.

The correct answer is C. This option is correct because it focuses on the key requirement of checking the web server's capability to host ASP pages.

You have determined that your company's website is housed on a web server that cannot handle ASP. What would you do?

asp
  1. Contact the ISP and have them switch the website to have ASP capability.

  2. Have your ISP install the Microsoft FrontPage extensions

  3. Develop a transition plan first that includes a step-by-step plan on every detail prior to contacting the ISP.

  4. All the above


Correct Option: C

Some say that JavaScript is easier to use than ASP and will run regardless of whatever operating system the web server is using (Unix, Linux, Windows 2000, etc). Then others say that ASP has advantages over JavaScript such as what?

asp
  1. ASP does not depend upon which browser the viewer is using.

  2. ASP code does not show up in the source code; thus, the code is protected

  3. ASP does not download with the page to the viewer.

  4. ASP can easily interact with a database.

  5. All of the above


Correct Option: E

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) ASP does not depend upon which browser the viewer is using. - This option is correct because ASP is a server-side scripting language, which means that it is processed on the server before being sent to the client's browser. The client's browser does not need to interpret or execute ASP code, so it is independent of the browser.

Option B) ASP code does not show up in the source code; thus, the code is protected. - This option is correct because ASP code is processed on the server and the resulting HTML is sent to the client's browser. The client can only see the HTML generated by the ASP code and does not have direct access to the ASP code itself.

Option C) ASP does not download with the page to the viewer. - This option is correct because ASP code is processed on the server, and only the resulting HTML is sent to the client's browser. The ASP code itself is not downloaded by the viewer.

Option D) ASP can easily interact with a database. - This option is correct because ASP has built-in features and libraries that allow easy interaction with databases. ASP can connect to databases, retrieve data, manipulate data, and perform other database operations.

Based on the above explanations, the correct answer is E) All of the above. All of the options mentioned (A, B, C, and D) are advantages of ASP over JavaScript.

A feature of ASP is its ability to interact with a database. Which of these databases is the most popular to use with ASP?

asp
  1. dBase

  2. Delimited text files

  3. Access (97 or 2000)

  4. Excel spreadsheets

  5. SQL


Correct Option: C

AI Explanation

To answer this question, you need to understand the databases commonly used with ASP. Let's go through each option to understand why it is correct or incorrect:

Option A) dBase - This option is incorrect because dBase is not commonly used with ASP. dBase is a database management system that was popular in the past, but it is not widely used with ASP nowadays.

Option B) Delimited text files - This option is incorrect because delimited text files are not typically used as a primary database for ASP. While text files can be used to store data, they are not as efficient or scalable as dedicated database systems.

Option C) Access (97 or 2000) - This option is correct because Access is a popular database management system that is commonly used with ASP. Access databases can be easily integrated with ASP to store and retrieve data.

Option D) Excel spreadsheets - This option is incorrect because Excel spreadsheets are not typically used as a primary database for ASP. While Excel can be used to store data, it is not as efficient or scalable as dedicated database systems.

Option E) SQL - This option is incorrect because SQL is not a specific database but a language used to interact with databases. SQL can be used with various database management systems, including Access, MySQL, SQL Server, and Oracle.

The correct answer is C) Access (97 or 2000). This option is correct because Access is a popular database management system that is commonly used with ASP.

asp
  1. Client-side executable code (executes at the browser level)

  2. Server side executable code (runs at the server only)


Correct Option: A
- Hide questions