Saturday, November 21, 2009
 
 
 IT Quizzes Category



Search Web Link
Search Software
Quizzes Main Page    IT Quizzes    ASP Quiz

ASP Quiz

There are 30 questions in this quiz. Good luck!
Passing grade is 70% = C.
1) In ASP, a request object retrieves info from a user by ________.
       a) a collection of values sent as cookies in a HTTP header
       b) a collection of data sent with a submitted form
       c) from client variables described from within an object
       d) from the OS module
       e) A&B


2) Which of the following are ASP standard objects?
       a) server
       b) response
       c) session
       d) All of the above


3) Abandon is an ASP ________ object method.
       a) server
       b) session
       c) request
       d) response


4) In ASP, the Response Object is used to send output to the user from the server.
       a) True
       b) False


5) MapPath is an ASP ________ object method.
       a) session
       b) request
       c) server
       d) response


6) ASP is an acronym for what?
       a) Active Server Protocol
       b) ActiveX Server Pages
       c) Active Setup Pages
       d) Active Server Pages
       e) Active Setup Protocol


7) ASP makes a website more interactive and dynamic.
       a) True
       b) False


8) How do you comment a line in ASP using VBScript?
       a) <!-- Comment a line in ASP -->
       b) < Comment a line in ASP >
       c) 'Comment a line in ASP
       d) <% Comment a line in ASP %>


9) Which is better in managing your code when writing with ASP or any other scripting code?
       a) Break it up into smaller easier-to-manage files that can serve as subroutines and function calls.
       b) Keep it nice and simple in one file and use subroutines and function calls.


10) My ASP page won't work is a common complaint for those new to ASP. Which of these can be the cause?
       a) Syntax error such as missing parentheses, comma or quotation mark.
       b) Comments in your code are not tagged properly as comments.
       c) Make sure function names have both opening and closing parentheses.
       d) Check to see that the web page is properly saved with the extension as .asp
       e) All of the above


11) You want to add ASP capability to your company's website. What is the first thing you would check?
       a) That all pages are saved in .asp extensions.
       b) Check that the web server has Microsoft FrontPage extensions installed.
       c) Make sure the web server is capable of hosting ASP pages.
       d) Check the coding and be sure the ASP code is surrounded with <% and %>
       e) All of the above


12) You have determined that your company's website is housed on a web server that cannot handle ASP. What would you do?
       a) Contact the ISP and have them switch the website to have ASP capability.
       b) Have your ISP install the Microsoft FrontPage extensions
       c) Develop a transition plan first that includes a step-by-step plan on every detail prior to contacting the ISP.
       d) All the above


13) 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?
       a) ASP does not depend upon which browser the viewer is using.
       b) ASP code does not show up in the source code; thus, the code is protected
       c) ASP does not download with the page to the viewer.
       d) ASP can easily interact with a database.
       e) All of the above


14) A feature of ASP is its ability to interact with a database. Which of these databases is the most popular to use with ASP?
       a) dBase
       b) Delimited text files
       c) Access (97 or 2000)
       d) Excel spreadsheets
       e) SQL


15) JavaScript is which?
       a) Client-side executable code (executes at the browser level)
       b) Server side executable code (runs at the server only)


16) ASP is which?
       a) Client-side executable code (executes at the browser level)
       b) Server side executable code (runs at the server only)


17) Client-side scripting code and server-side scripting code can coexist and can be used on the same page.
       a) True
       b) False


18) Variable are used to hold both numerical and text values. Which of these IS NOT a valid variable name?
       a) X
       b) X1
       c) 1X
       d) x1X


19) Which of these is OKAY to use for a variable name?
       a) employee salary
       b) 2nd_employee
       c) employee_hire_date
       d) date-of-birth
       e) date_of.birth


20) 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
       a) manager_salaries
       b) SalariesOfManagers
       c) Salaries_Of_Managers
       d) mgmtSalary
       e) Salary1


21) ASP code is....
       a) a client-side executable code.
       b) a server-side executable code.
       c) a world-wide-web executable code.
       d) all of the above.


22) Which programming language is most commonly used to script ASP code?
       a) ASP
       b) JavaScript
       c) VBScript
       d) C++
       e) Perl


23) ASP pages can contain embedded HTML code.
       a) True
       b) False


24) What happens when a user types in a URL that requests an ASP page?
       a) Browser requests ASP code, server returns code, browser executes code into HTML form
       b) Browser requests ASP code, server executes ASP code and returns HTML document to browser
       c) Browser requests code, server returns code, Windows executes code since ASP is Microsoft code.


25) If the default pages in HTML are index.htm, default.html, etc, what are the default pages in ASP?
       a) index.asp
       b) default.asp
       c) home.asp
       d) Both A and B
       e) Both B and C


26) When writing ASP code, what are the correct delimiters to use?
       a) <!-- code -->
       b) < code >
       c) <% code >
       d) <% code %>


27) It is imperative when writing ASP code is to begin every file with which statement?
       a) <% Language=VBScript %>
       b) <% ASPLanguage = VBScript %>
       c) <%@ Language=VBScript %>


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


29) ASP code can be written in any text editor such as Notepad.
       a) True
       b) False


30) Thinking Question: ASP code can be written to show the current time. Is it possible to show a live, ticking clock using ASP?
       a) Yes, ASP will pull the time from the web server and feed it to the client browser.
       b) No, once the ASP script has finished executing, it cannot do any more after the page reaches the client browser.






HOME | ARTICLES | MUSIC | DOWNLOADS | LINK DIRECTORY |  GAMES | TEST-QUIZZES | SITEMAP | ABOUT | HELP
Copyright © 2000 - 2007 Ex-designz. All rights reserved. Website Developed By Dexter Zafra of Myasp-net.com
Link to us | Advertisement | Contact us | Privacy Policy | Terms of use | Accessibility