ASP Server Side Include

ASP Server Side Include

11 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Server-Side Includes (also known as SSI) allows you to do what?

  1. Allows you to include server executed code into any ASP application.
  2. Allows you to use one file in several different web pages.
  3. Allows you to use a piece of code more than once.
  4. All of the above
Question 2 Multiple Choice (Single Answer)

The include files can be written in which scripting language?

  1. HTML
  2. JavaScript
  3. VBScript
  4. Perl
  5. All of the above
Question 3 Multiple Choice (Single Answer)

Changing an include file will affect all the pages that link to it such as a navigation bar. Suppose you want certain pages to display a certain navigation bar not available on other pages. Which is the BEST method to do this?

  1. Write a separate include file for those unique pages.
  2. Forget the include file. It is easier to just put the unique menu in using HTML code.
  3. Have the include file test for the type of page and then print out the correct menu.
Question 4 Multiple Choice (Single Answer)

An include file can be saved with a .asp extension.

  1. True
  2. False
Question 5 Multiple Choice (Single Answer)

Which of these page extensions WILL NOT recognize and execute an include file?

  1. .shtml
  2. .shtm
  3. .stm
  4. .html
  5. .asp
Question 6 Multiple Choice (Single Answer)

Which is the correct format of an include statement?

  1. <% '#include virtual="banner.asp" %>
  2. <!-- #include virtual="banner.asp" -->
  3. <-- #include virtual="banner.asp" -->
  4. <-- #include virtual="banner.asp" -->
Question 7 Multiple Choice (Single Answer)

An include file that contains ASP code can be saved with a .inc extension.

  1. True
  2. False
Question 8 Multiple Choice (Single Answer)

Where would you place an include statement that has functions, subroutines and other configuration type of code?

  1. At the beginning to keep the code neat and tidy.
  2. Anywhere in the code where it is actually needed.
Question 9 Multiple Choice (Single Answer)

Lets say that your include file is a piece of code that will print out your navigation menu. Where would you place the include statement?

  1. At the beginning to keep the code neat and tidy
  2. Anywhere in the code where it is actually needed.
Question 10 Multiple Choice (Single Answer)

You are working on a file called index.asp and have put in the include statement below. Where is the include file actually located on the web server? ..

  1. The include file is in the same directory as the file that is requesting it.
  2. The include file is in another directory away from the file that is requesting it.
Question 11 Multiple Choice (Single Answer)

When viewing the source code of a web page, the JavaScript code can be seen and copied; thus, the code is not secure. Since JavaScript and include statements are both written with the same HTML delimiters: , this also means that the include st

  1. True
  2. False