ASP Fundamentals Quiz

Introduction to Active Server Pages (ASP) covering server-side scripting, VBScript, delimiters, and basic programming concepts

15 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

ASP is which?

  1. Client-side executable code (executes at the browser level)
  2. Server side executable code (runs at the server only)
Question 2 Multiple Choice (Single Answer)

Client-side scripting code and server-side scripting code can coexist and can be used on the same page.

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

Variable are used to hold both numerical and text values. Which of these IS NOT a valid variable name?

  1. X
  2. X1
  3. 1X
  4. x1X
Question 4 Multiple Choice (Single Answer)

Which of these is OKAY to use for a variable name?

  1. employee salary
  2. 2nd_employee
  3. employee_hire_date
  4. date-of-birth
  5. date_of.birth
Question 5 Multiple Choice (Single Answer)

You have a long piece of code tracking employee salaries. In your opinion, which of these variables is the best (shortest yet most descriptive) to use throughout the code to track the salaries of the managers? Keep in mind that you may try to analyze your

  1. manager_salaries
  2. SalariesOfManagers
  3. Salaries_Of_Managers
  4. mgmtSalary
  5. Salary1
Question 6 Multiple Choice (Single Answer)

ASP code is....

  1. a client-side executable code.
  2. a server-side executable code.
  3. a world-wide-web executable code.
  4. all of the above.
Question 7 Multiple Choice (Single Answer)

Which programming language is most commonly used to script ASP code?

  1. ASP
  2. JavaScript
  3. VBScript
  4. C++
  5. Perl
Question 8 Multiple Choice (Single Answer)

ASP pages can contain embedded HTML code.

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

What happens when a user types in a URL that requests an ASP page?

  1. Browser requests ASP code, server returns code, browser executes code into HTML form
  2. Browser requests ASP code, server executes ASP code and returns HTML document to browser
  3. Browser requests code, server returns code, Windows executes code since ASP is Microsoft code.
Question 10 Multiple Choice (Single Answer)

If the default pages in HTML are index.htm, default.html, etc, what are the default pages in ASP?

  1. index.asp
  2. default.asp
  3. home.asp
  4. Both A and B
  5. Both B and C
Question 11 Multiple Choice (Single Answer)

When writing ASP code, what are the correct delimiters to use?

  1. <!-- code -->
  2. < code >
  3. <% code >
  4. <% code %>
Question 12 Multiple Choice (Single Answer)

It is imperative when writing ASP code is to begin every file with which statement?

  1. <% Language=VBScript %>
  2. <% ASPLanguage = VBScript %>
  3. <%@ Language=VBScript %>
Question 13 Multiple Choice (Single Answer)

In order for you to execute ASP code on your computer, you need to be running web server software such as Personal Web Server.

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

ASP code can be written in any text editor such as Notepad.

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

Thinking Question: ASP code can be written to show the current time. Is it possible to show a live, ticking clock using ASP?

  1. Yes, ASP will pull the time from the web server and feed it to the client browser.
  2. No, once the ASP script has finished executing, it cannot do any more after the page reaches the client browser.