CSIS-401: Web Design
CSIS-401: Web Design Final Exam Name: _______________________
Multiple Choices: Put you answer in the space provided on the right column.
1. Following HTML and CSS standards helps make your web pages Answer ____
a. display faster
b. less accessible
c. forward compatible
d. only a and c are true, b is not true
e. a, b, and c are all true
2. Which is an example of purely presentational HTML markup Answer ____
a. paragraph content
b. bold text
c. My Website
d.
3. Which example is the most semantic Answer ____
e. paragraph content
f. bold text
g. My Website
h.
4. CSS Answer ____
a. is a markup language
b. stands for Core Style Sheet
c. defines the presentational layer of a web page
d. none of the above are true
5. What is NOT part of the client tier? Answer ____
a. HTML code
b. cookies
c. session variables
d. JavaScript
e. DOM
6. JavaScript Answer ____
a. is a language used to define the structural layer of a web page
b. is used in the database tier
c. is typically used to communicate with the web server
d. is used to manipulate the browser
7. If you want to insert content/data from an external source into a web page, Answer ____
which language will NOT help?
a. CSS
b. SQL
c. JavaScript
d. PHP
8. Which of the following is most likely to happen if your page uses Answer ____
HTML instead of XHTML?
a. The page will NOT load in most web browsers
b. The page may not be compatible with come XML-based systems.
c. Both a and b are correct
9. Which of the following is a full-featured programming language? Answer ____
a. CSS
b. PHP
c. HTML
d. SQL
e. All of the above are full-featured programming languages
10. In this CSS code, what is being set? body { color: #990000; } Answer ____
a. Text Color of only paragraphs
b. Background Color of the entire web page
c. Text Color of the entire web page
d. Background Color of the body element
11. Which of the following must be true in order to use PHP code in a web page? Answer ____
a. The web server must have PHP processor
b. The code must be inside the tag
c. The code must be inside a tag
d. All of the above
12. What PHP variable is used to access URL variables? Answer ____
a. $_FORM
b. $_FILES
c. $_GET
d. $_POST
13. What PHP function is used to start a user session? Answer ____
a. session_start()
b. session_init()
c. session()
d. $_SESSION
14. What has higher priority? Answer ____
a. Styles define in a linked style sheet
b. Embedded styles
c. Inline styles
15. Which of the following is NOT a built-in associative array used by PHP? Answer ____
a. $_URL
b. $_FILES
c. $_GET
d. $_POST
15.5. What do ninja’s and princesses have in common? Think about it…really thing about it….
_________________________________________________________________________________________
16. Consider the following regular expression and select the most correct answer: Answer ____
^[a-zA-Z][a-z0-9]+$
a. The pattern must start with a capital letter
b. The pattern must contain exactly two characters
c. The pattern must contain at least one letter
d. The pattern must contain at least one numeric digit
17. Consider the following regular expression and select the most correct answer: Answer ____
^[a-z0-9]+@[a-z0-9]+.com$
a. The pattern must end with .com
b. The pattern can only contain one dot
c. The pattern can NOT have any capital letters
d. All of the above are true
18. You can make a web page more accessible by Answer ____
a. putting it on the a web server
b. using standard HTML and CSS
c. providing alternative style sheet for printers and screen readers
d. using a big font
e. a, b, and c are all correct; d is not really true
f. a, b, c, and d are all correct
19. Select the most correct statement Answer ____
a. Radio buttons are used when multiple options can be selected
b. Check boxes are used when multiple options can be selected
c. Radio buttons can be used to submit a form.
d. Check boxes can be used to submit a user text entry
20. Using a single linked style sheet for an entire web site is Answer ____
a. bad because the style sheet can be big and take a long time to download
b. bad because the style sheet gets downloaded repeatedly every time a page is requested
c. good because you can control the site’s appearance in one central place
d. good because it hides all your styles and people can’t steal your website code
21. What is the current standard for the structural layer of web pages? Answer ____
a. XHTML 1.0
b. CSS 2.0
c. PHP 4
d. all of the above
22. Which of the following does NOT reside on the server side? Answer ____
a. Apache software
b. Session variables
c. PHP files
d. Web browser software
22. When is a cookie saved on a user’s web browser? Answer ____
a. Only when a user submits a form.
b. Whenever a user requests a web page.
c. If a web page is loaded that includes JavaScript code that sets the cookie
d. If PHP is used to send back an http response header that sets the cookie
e. a, b, c, and d are all true.
f. Only c and d are true.
23. Cookies and session variables can be used to. Answer ____
a. Prevent browser actions from happening more than once
b. Logout users after a period time
c. Keep track of user activity
d. All of the above
24. Which of the following is not a scripting language used by web servers to Answer ____
connect to databases and dynamically generate web pages.
a. PHP
b. XML
c. ASP
d. ColdFusion
25. Consider the following PHP code: $var = “3” . “5”; Answer ____
$var will most likely be:
a. Integer 8
b. Integer 15
c. String “35”
d. Integer (ascii value of character 3 times ascii value of character 5)
26. Which HTML tag is the most semantic Answer ____
a.
b.
c.
27. Which CSS attribute is used to center text? Answer ____
a. font-align
b. text-align
c. align
d. center
28. Which CSS attribute is used to change the font size? Answer ____
a. font-size
b. text-size
c. size
d. font-family
29. Which CSS attribute is used to make text italic? Answer ____
a. text-decoration
b. text-style
c. italic
d. font-style
30. In a 3-tier web architecture, which tier is responsible for rendering a web page? Answer ____
a. server
b. client
c. database
31. By default, the tag is Answer ____
a. inline
b. block
c. float left
d. centered
32. Which of the following is a mark-up language? Answer ____
a. CSS
b. PHP
c. HTML
d. SQL
e. all of the above are markup languages
33. Which of the following is a query language? Answer ____
a. CSS
b. PHP
c. JavaScript
d. HTML
e. SQL
f. XML
34. Why was ColdFusion so important? Answer ____
a. It was the first server-side scripting language to support database connectivity
b. It was the first web server software
c. It was the first open source web development language
d. It was the first client-side scripting language that could manipulate the browser
35. Why is PHP so widely used Answer ____
a. It is supported commercially by Microsoft and Oracle
b. It is free, open source, and constantly expanded and updated
c. It is built into the Firefox web browser
d. It is endorsed by Princess Cinderella
36. In a standards-compliant web page, what is the outer-most structural tag? Answer ____
a.
b.
c.
d.
37. What language is commonly used to manipulate the behavioral layer of a web page? Answer ____
a. JavaScript
b. SQL
c. XML
d. CSS
For questions 38-41, consider the following code:
$fname = $_POST[“firstname”];
run_query("SELECT lastname WHERE First='$fname");
38. What is $_POST? Answer ____
a. An associative array
b. A PHP variable
c. A data structure containing all the form variables
d. All of the above
39. Which of the following is a PHP variable? Answer ____
a. run_query
b. firstname
c. fname
d. First
40. Which of the following is a PHP function name? Answer ____
a. run_query
b. firstname
c. fname
d. First
e. SELECT
41. What is "SELECT lastname WHERE First='$fname"? Answer ____
a. a string passed into a function
b. a string representing an SQL query
c. a regular expression
d. a and b are both true, c is not
e. a, b, and c are all true
42. A web browser will automatically send the cookies set by a server back Answer ____
to the server for all http requests to the server. Why?
a. Otherwise, the server could never see if it set a cookie on the browser
b. Otherwise, the server would have to send a separate request when it needed to check a cookie value
c. The browser initiates all contact with the server, the server can not send a request to the browser
d. All of the above are true
43. Which of the following is not a PHP function used to interface with MySQL? Answer ____
a. mysql_post
b. mysql_select_db
c. mysql_connect
d. mysql_query
e. mysql_dance_with_princess
43.5. What is Dr. Breimer’s favorite Disney Princess and why? It’s OK, you can say, I won’t be offended.
__________________________________________________________________________________________
For questions 44-49, consider the following PHP code:
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related searches
- web design pictures
- web design layout
- html web page design examples
- free web design proposal template
- ecommerce web design service
- web design companies near me
- web design color palette generator
- csis global health policy center
- web design and development process
- web design templates
- web design terminology and definitions
- web design and development company