MIS 3313 - CH 5,6,1,2,3
25. The principles of Graceful Degradation and Progressive Enhancement are implemented differently, but either strategy can successfully be used to accommodate users with older browsers. a. True b. False
True
22. Layout, sizing, border, background and spacing properties are inheritable by default. a. True b. False
*b. False
23. For the z-index property, items closest to the viewer (thus on the top) have a smaller z-index value. a. True b. False
*b. False
26. Form data must be sent over the internet via a standard HTTP request. a. True b. False
True
26. The GIF file format is ideal for graphics with flat bands of color, lines, and a limited number colors such as logos or clipart. a. True b. False
True
28. <h1>Share Your <strong>Travels</strong></h1> is an example of correct nesting in the Document Object Model (DOM). a. True b. False
True
28. Apache web server software can run on Linux, Windows or MAC platforms. a. True b. False
True
28. Variable assignment can happen at declaration-time by appending the value to the declaration, or at run time with a simple right-to-left assignment. a. True b. False
True
29. An application stack to run a website consists of an operating system, web server software, a database and a scripting language to process dynamic requests. a. True b. False
True
29. CSS is a W3C standard for describing the presentation (or appearance) of HTML elements. a. True b. False
True
25. One of the most important recommendations in the Web Accessibility Initiative (WAI) guidelines is to provide text alternatives for all nontext content in your HTML. a. True b. False
True
25. The display resolution refers to how many pixels a device can display. a. True b. False
True
29. Color depth refers to the maximum number of possible colors that an image can contain. *a. True b. False
True
29. HTML documents should only focus on the semantic structure of the document, and should not describe how to visually present content. a. True b. False
True
30. Concatenation can be written in either of the following ways:var str = greet.concat("Morning"); var str = greet + "Morning"; a. True b. False
True
30. Resizing a raster image always reduces its quality; but making it larger degrades it much more than making it smaller. *a. True b. False
True
30. Visiting a web page using voice reading software can be a very frustrating experience for visually impaired users if the site does not use semantic markup. a. True b. False
True
Every device connected to the Internet has an IP address. a. True b. False
True
Web pages have two main sections, a head and a body. a. True b. False
True
24. It is not possible to configure the <button> element to display an actual image or icon within the button because the element already defines a clickable button. a. True b. False
b. False
27. The PNG file format supports animation. a. True b. False
b. False
28. The <audio> element has attributes that can modify its appearance and behavior, but it cannot be restyled with CSS or customized using JavaScript. a. True b. False
b. False
11. Which of the following organizations oversees the management of top-level domains, accredits registrars, and coordinates other aspects of DNS? a. W3C b. ICANN c. ARPANET d. IANA
b. ICANN
18. JavaScript relies on server-side processing to execute the code. a. True b. False
FALSE
17. A form element can contain other form elements. a. True *b. False
False
17. When creating a webpage with scalable elements, designers rely on the creation of elements at a fixed size rather than proportional measurements. a. True b. False
False
18. Because there are a finite number of image types, their digital representation can be standardized in 16 bit UNICODE numbers. a. True b. False
False
18. It is impossible to change the display behavior of a block-level element to inline even if you are using CSS. a. True b. False
False
20. Fiber optic cable is a glass-based wire that transmits light and has significantly less bandwidth and speed in comparison to metal wires. a. True b. False
False
20. When using the POST method to send form data, the data can clearly be seen in the address bar. a. True b. False
False
22. JavaScript is the client-side implementation of the Java programming language, both developed by Sun Java in collaboration with Oracle. a. True b. False
False
22. The company from which you buy web hosting space must be the same place that you registered your domain. a. True b. False
False
26. The most common choice for a web server operating system is a Linux-based OS. a. True b. False
True
27. CSS driven sites are more accessible to people with disabilities who rely on accessibility tools such as screen readers. a. True b. False
True
28. The hCard microformat can be used to semantically markup contact information for a person or organization so that it can be easily gathered and transformed by software applications and automated tools. a. True b. False
True
31. To interact with the HTML document in which it is contained, JavaScript uses the Document Object Model also referred to as the DOM Tree. a. True b. False
True
CHAPTER -1 QUIZ 1. Which of the following is true of a circuit-switched network? a. Establishes an actual physical connection b. Not reliant on a single pathway that may fail c. Does not require a continuous connection d. Can take different routes to the destination
a. Establishes an actual physical connection
3. In the four-layer network model, an example of an Application Layer protocol is: a. HTTP Hypertext Transfer Protocol b. TCP Transmission Control Protocol c. IP Internet Protocol d. MAC Media Access Control
a. HTTP Hypertext Transfer Protocol
Which of the following is true about the Link Layer of the four-layer network model? a. It is responsible for both the physical transmission across media (wires, wireless) and establishing logical links. b. It routes packets between communication partners across networks. c. It ensures transmissions arrive, in order, and without error. d. It implements process-to-process communication at a higher level of abstraction.
a. It is responsible for both the physical transmission across media (wires, wireless) and establishing logical links.
4. In the four-layer network model, web development is mostly focused on __________. a. The Application Layer b. The Transport Layer c. The Internet Layer d. The Link Layer
a. The Application Layer
16. Images and text on a printed page are not created from pixels. a. True b. False
a. True
CHAPTER -4 QUIZ 1. Using tables for ____________ is not recommended because the HTML markup is not semantically correct. a. page layout b. numeric data c. tabular data d. spreadsheet data
a. page layout
10. An approach in which a design is adapted to increasingly advanced devices and browsers is called: a. progressive enhancement b. backward compatibility c. graceful degradation d. content first
a. progressive enhancement
6. How will the following CSS display on the page:table {border: 1px solid #000000;} a. the table will have a thin black border b. the table and each table cell will have thin black borders c. the table cells will have solid black borders d. the table and table headers will have thin black borders
a. the table will have a thin black border
3. The range of colors that a color system can display or print is known as the a. gamut b. visible range c. spectrum d. color model
gamut
26. In JavaScript a variable can be an integer then later can be a string if so desired. a. True b. False
True
25. In CSS code, class selectors always begin with the hash (#) symbol. a. True b. False
*b. False
27. Any time passwords are being transmitted, they should be transmitted using the GET method for security reasons. a. True b. False
*b. False
27. In responsive design, the media queries must be coded in the <meta> tag. a. True b. False
*b. False
30. An advantage of using CSS is that all browsers have always supported all versions of the CSS standard. a. True b. False
*b. False
15. The HTTP protocol request methods most commonly used are: a. GET and PUT b. GET and POST c. CONNECT and GET d. POST and DELETE
*b. GET and POST
6. When CSS is coded in the body of the web page as an attribute of an HTML tag it is called _____. a. Embedded b. Inline c. External d. Imported
*b. Inline
1. Which of the following is true regarding JavaScript? QUIZ-6 a. JavaScript is a full-fledged compiled, object-oriented language. b. JavaScript runs directly inside the browser without the need for the JVM. c. JavaScript is popular for its ability to run on any platform with a JVM installed. d. JavaScript is object oriented in that the objects in JavaScript are class-based.
*b. JavaScript runs directly inside the browser without the need for the JVM.
JavaScript was first introduced by __________. a. Microsoft b. Netscape c. Oracle d. Adobe
*b. Netscape
10. Choose the true statement below. a. The content that displays in the browser is contained in the head section. b. The content that displays in the browser is contained in the body section. c. Information about the web page is contained in the body section. d. None of these are true.
*b. The content that displays in the browser is contained in the body section.
15. Which of the following statements is false concerning CSS Preprocessors? a. Developers can take advantage of programming concepts such as variables and functions. b. The main advantage of CSS preprocessors is that developers need not write any CSS at all. c. CSS preprocessors are programs that generate CSS. d. A CSS preprocessor can provide additional functionality not available in CSS
*b. The main advantage of CSS preprocessors is that developers need not write any CSS at all.
14. Which is true about the JavaScript statement var x = 3? a. The variable x has been declared but not initialized. b. The variable x has been declared and initialized. c. The variable x has been initialized but not declared. d. The variable x has not been declared nor initialized.
*b. The variable x has been declared and initialized.
15. For a series of name=value pairs in a query string sent by a form, the name=value pairs are separated by a(n)________. a. comma b. ampersand c. space d. semi-colon
*b. ampersand
. The X in the XML specification stands for a. eXtreme b. eXtensible c. eXtensive d. eXclusive
*b. eXtensible
14. The file extensions .webm, .m4v, and .ogv are used for: a. audio files b. video files c. Flash media files d. none of the above
*b. video files
12. Select the code below that uses CSS to configure an id named "footer" that configures small, blue, italic text. a. #footer { font-size: small; color: blue; font-weight: italic;} b. .footer { font-size: small; color: blue; font-weight: italic;} c. #footer { font-size: small; color: blue; font-style: italic;} d. .footer { font-size: small; color: blue; font-style: italic;}
*c. #footer { font-size: small; color: blue; font-style: italic;}
6. The Document Type Definition or the DOCTYPE for HTML5 looks like: a. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 5.01//EN" "http://www.w3.org/TR/html5.1/strict.dtd"> b. <!DOCTYPE HTML PUBLIC "HTML5"> c. <!DOCTYPE html> d. none of these
*c. <!DOCTYPE html>
13. Choose the best-designed link from below. a. <a href="news.html">Click to read our important news!</a> b. Click to read our <a href="news.html">important news!</a> c. <a href="news.html">Important News</a> d. <a href="news.html">Click here to read our important news</a>
*c. <a href="news.html">Important News</a>
10. The purpose of the _____ is to configure a caption or label for a <fieldset>. a. <label> b. <caption> c. <legend> d. <title>
*c. <legend>
8. Select the statement below that is true about forms. a. The <form> tag is optional. b. It is recommended to use mailto: as the action on a form since that is the easiest for the web developer. c. A form can be used to pass information to a program or script on the web server. d. All of these are true.
*c. A form can be used to pass information to a program or script on the web server.
6. The three primary image formats used for the web are: a. GIF, JPG and BMP b. GIF, JPG and TIF c. GIF, JPG, and PNG d. JPG, BMP and PSD
*c. GIF, JPG, and PNG
10. Which of the following image file formats uses a lossy compression scheme to reduce its file size, eliminating pixel information with each save? a. PNG b. GIF c. JPG d. TIF
*c. JPG
7. Which of the following is true about image formats? a. The GIF image format supports transparent backgrounds and can display millions of colors; therefore, they are the best file format to use for photographs on the web. b. The JPG image format supports transparent backgrounds and millions of colors; therefore, they are the best file type to use for photographs on the web. c. The GIF image format supports transparent backgrounds, but can only display a maximum of 256 colors; therefore, they should not be used for photos on the web. d. The JPG image format supports transparent backgrounds, but can only display a maximum of 256 colors; therefore, they should not be used for photos on the web.
*c. The GIF image format supports transparent backgrounds, but can only display a maximum of 256 colors; therefore, they should not be used for photos on the web.
15. When a web page contains both a link to an external stylesheet and embedded styles, which of the following is true? a. The embedded styles will be applied first, and then the external styles will be applied. b. The external styles will override the embedded styles. c. The external styles will be applied first, then the embedded styles will be applied. d. The styles will conflict and the default browser styles will be applied.
*c. The external styles will be applied first, then the embedded styles will be applied.
5. The two organizations actively working on the HTML5 specification are a. IEEE and W3C b. IETF and NSA c. W3C and WHATWG d. W3C and WYSIWYG
*c. W3C and WHATWG
16. What is the value of jobs[2] in the following section of code?var jobs= new Array("Programming", "Database management", "Web Design"); a. Programming b. Database management c. Web Design d. The array has been declared but no values have been assigned.
*c. Web Design
14. The User-Agent string in the HTTP header tells us: a. What kind of media types the client can receive. b. What types of modification can be done to the data before transmission. c. What kind of operating system and browser the user is running. d. What kind of operating system the server is running.
*c. What kind of operating system and browser the user is running.
11. When do you need to use a fully qualified, absolute URL in a hyperlink? a. When creating a link to a location on the same web page. b. When linking to a page in another folder on the same site. c. When linking to a page on an external web site. d. Never
*c. When linking to a page on an external web site.
6. When we say that JavaScript variables are a dynamically typed we mean that a. JavaScript functions run sequentially in the order that the script was typed. b. it doesn't matter where the JavaScript code is typed on the page. c. a variable type can be an integer, and then later a string, then later an object. d. a variable type cannot be changed after the variable has been initialized.
*c. a variable type can be an integer, and then later a string, then later an object.
7. To apply the same style to more than one element on a web page, configure a CSS _____. a. group b. id c. class d. all of these can configure more than one element on a page
*c. class
9. What tag pair is used to create the largest heading? a. <h6> </h6> b. <h9> </h9> c. <h type="large"> </h> d. <h1> </h1>
*d. <h1> </h1>
15. Which of the following are correct syntax for JavaScript comments? a. // My comments b. /* My comments and some more comments */ c. /* More comments */ d. All of these are correct
*d. All of these are correct
8. Which of the following is true about the alert( ) function a. The alert( ) function makes the browser show a pop-up to the user. b. The alert( ) function obscures the underlying webpage. c. The user has to click OK before any other actions can be taken. d. All of these are true.
*d. All of these are true.
11. The JavaScript function to place the date on a page is: a. Now( ) b. Math.Date( ) c. Math.Today( ) *d. Date ( )
*d. Date()
4. The location of CSS style rules can be (choose the best answer) a. inline b. embedded c. external d. you can combine all three
*d. you can combine all three
9. Select the tag used to visually and logically group a number of form controls that also aids in accessibility. a. <group> b. <fieldset> c. <form> d. <fieldgroup>
*b. <fieldset>
8. Use the _____ element to code embedded styles on a web page. a. <link> b. <style>...</style> c. <embed>...</embed> d. <include>...</include>
*b. <style>...</style>
9. Which of the following is the correct comparison operator for equals? a. = b. == c. != d. !==
*b. ==
14. The text contained between the <title>...</title> tags is: a. Displayed on the web page as the page heading b. Displayed in the title bar of the browser window or tab c. Not used by search engines d. Never seen by your web page visitor
*b. Displayed in the title bar of the browser window or tab
19. You can use the same id name as many times as you want on a single HTML web page. a. True b. False
*b. False
20. Block-level elements cannot contain other block-level elements. a. True b. False
*b. False
20. The <div> tag is an example of the new semantic elements in HTML5. a. True b. False
*b. False
21. Elements with fixed positioning move when the user scrolls up and down the page. a. True b. False
*b. False
14. If you want to style multiple web pages on a web site in the same way, it is best to use: a. inline styles b. embedded styles c. an internal stylesheet d. an external stylesheet
*d. an external stylesheet
7. HTML5 syntax requires a. uppercase b. lowercase c. self-closing tags d. none of these
*d. none of these
2. Select the item below that lists elements used in an HTML table: a. table, head, tfoot b. table, tr, tt c. thead, body, tr d. table, tr, td
*d. table, tr, td
2. Which of the following is an inline element by default? a. <div> b. <p> c. <h1> d. <span>
<span>
5. Which of the following is true about inline styles? a. Inline styles are encouraged since they increase maintainability b. An inline style only affects the element it is defined within and will override other styles for that element's property. c. Inline styles will be overridden by the external stylesheet d. Inline styles are encouraged since they decrease bandwidth
*b. An inline style only affects the element it is defined within and will override other styles for that element's property.
21. The <meta> tag is coded in the body section of the HTML document a. True b. False
*b. False
22. Inline elements cause a line break in the flow of text on the page. a. True b. False
*b. False
5. Use _______ element to indicate column or row headings. a. <td> b. <th> c. <head> d. <thead>
*b. <th>
9. Scenario: Judy has a great photo of Aunt Emma that she took at her family reunion with her new 10 megapixel camera, and she wants to display it on her family history website. Straight from the camera, the photo is over 3 MB in file size and 2100 pixels in width. Judy proceeds to resize the photo in her image editing program to reduce the dimensions and file size. When she uploads the resized image to the web, she notices that Aunt Emma appears squished and the image appears unusually long in relation to its width. What could have caused this problem? a. Judy forgot to constrain the proportions of the image to preserve the aspect ratio when she resized it. b. Judy forgot to optimize and compress the image when she exported the image as a JPG. c. Judy forgot to change the image format from GIF to JPG when she exported the image. d. Judy forgot to include the width and height attributes in the HTML <img src="...> element when she added it to her web page.
*a. Judy forgot to constrain the proportions of the image to preserve the aspect ratio when she resized it.
12. Scenario: The Internet Explorer 8 browser is being used to display a web page with an audio player but the audio element displays nothing on the page. Read the following code snippet and select the reason for the incorrect display from the choices below.<audio controls="controls"><source src="podcast.mp3" type="audio/mpeg"><source src="podcast.ogg" type="audio/ogg"></audio> a. There is no fallback content to display for browsers that do not support the audio element. b. The controls attribute should be controls="yes" c. The MIME type values are incorrect. d. There are too many source elements.
*a. There is no fallback content to display for browsers that do not support the audio element.
16. By default, each block-level element fills up the entire width of its parent element. a. True b. False
*a. True
17. In the default normal flow each block exists on its own line and is displayed from the browser window's top to its bottom. a. True b. False
*a. True
18. An id selector allows you to target a specific element by its id attribute regardless of its type or position. a. True b. False
*a. True
19. "Replaced inline elements" are elements whose content and appearance are defined by some external resource such as <img> or the various form elements. a. True b. False
*a. True
20. Many (but not all) CSS properties affect not only themselves but their descendants as well. a. True b. False
*a. True
21. Font, color, list, and text properties are inheritable by default. a. True b. False
*a. True
21. Table headings should be used to provide semantic information and to help those using screen readers. a. True b. False
*a. True
22. Only positioned elements will make use of their z-index. a. True b. False
*a. True
23. Only block-level elements and non-text inline elements such as images have a width and height that you can specify. a. True b. False
*a. True
24. Block-level elements will flow from top to bottom, while inline elements flow from left to right within a block. a. True b. False
*a. True
25. Often an HTML element will contain other HTML elements. In such a case, the container element is said to be a parent of the contained, or child, element. a. True b. False
*a. True
26. In order to properly construct a hierarchy of elements, your browser expects each HTML nested element to be properly nested. That is, a child's ending tag must occur before its parent's ending tag. a. True b. False
*a. True
26. Using CSS to adapt web pages for different output media so that pages scale based on screen size is often referred to as a responsive design approach. a. True b. False
*a. True
26. When you float multiple items that are in proximity, each floated item in the container will be nestled up beside the previously floated item provided there is room. a. True b. False
*a. True
28. Current versions of IE, Chrome, Firefox and Opera all provide developer tools that allow you to visually inspect the CSS box model values for a selected HTML element. a. True b. False
*a. True
28. The :hover pseudo-class, and the visibility property can be used to hide and display a larger version of an image when the user moves the mouse over a thumbnail image. a. True b. False
*a. True
29. In browsers that support this HTML5 feature, the required attribute causes the browser to verify that data was entered in the form control. a. True b. False
*a. True
29. When using CSS to hide elements on the page, the display property takes an item out of the flow: it is as if the element no longer exists. a. True b. False
*a. True
7. Which of the following is true? a. When using the reserved keyword function and a function name, you are defining what the function does. b. Both the reserved keyword function and its name are required when you are calling the function. c. You can only call a function if you have previously defined all of its parameters using the reserved keyword function. d. all of these are true.
*a. When using the reserved keyword function and a function name, you are defining what the function does
14. When configuring a radio button form control where only a single selection can be chosen, the value of the _____ attribute of each radio button must be the same. a. name b. id c. value d. size
*a. name
13. Use the _______ attribute on a <video> tag to display an image that represents the movie. a. poster b. image c. player d. controls
*a. poster
12. The JavaScript method .toString(): a. puts a number is displayable form b. returns the length of a string of characters c. displays the JavaScript on a webpage d. saves the answer to a file
*a. puts a number is displayable form
2. HTML markup is implemented via a. tags (AKA elements) b. arrows c. underlines d. all of these
*a. tags (AKA elements)
4. The purpose of the _______ element is to provide a title and briefly describe the contents. a. <head> b. <caption> c. <title> d. <source>
*b. <caption>
12. Select the function of an e-mail hyperlink from the choices below. a. Automatically send you an e-mail message with the visitor's e-mail address as the reply-to field. b. Launch the default e-mail application for the visitor's browser with your e-mail address as the recipient. c. Display your e-mail address so that the visitor can send you a message later. d. Link to your mail server.
*b. Launch the default e-mail application for the visitor's browser with your e-mail address as the recipient.
8. Colors that are adjacent to each other on the artist's color wheel, and can create serene, harmonious designs are a. complimentary colors b. analogous colors c. split complimentary colors d. double complimentary colors
*b. analogous colors
13. Which CSS property configures the font typeface? a. font-style b. font-family c. font-type d. font-typeface
*b. font-family
15. What type of HTML list will automatically place a number in front of the list items? a. numbered list b. ordered list c. unordered list d. description (definition) list
*b. ordered list
7. Use the CSS ______ property to configure the cellpadding of a table instead of using the cellpadding attribute. a. margin *b. padding c. cellpadding d. border-spacing
*b. padding
10. The box model consists of a content area surrounded by: a. a border b. padding, border, and margin c. border and margin d. spacing, border, and margin
*b. padding, border, and margin
13. If you want to execute one set of statements when a condition evaluates to false and another set of statements when the condition evaluates to true, the best statement to use is a(n) _____. a. if...then statement b. case statement c. if...else statement d. if statement
*c. if...else statement
13. An order form contains an area for web visitors to choose their state or province. You need to limit the amount of space on the form that is used for this feature. Select the form control that is best to use for this purpose. a. check box b. radio button c. select list d. scrolling text box
*c. select list
2. Which of the following is NOT an advantage of client-side scripting? a. Processing can be offloaded from the server to client machines. b. The browser can respond more rapidly to user events than a request to a remote server could. c. Client-side scripting reduces the load on the server. d. Idiosyncrasies between various browsers and operating systems make it easy to test for all potential client configurations.
*d. Idiosyncrasies between various browsers and operating systems make it easy to test for all potential client configurations.
12. A Uniform Resource Locator (URL) allows a client to request a resource from a server. Of the following, which are the minimum required components of a URL? a. Protocol and port number b. Domain and path to a file or directory c. Domain and query string d. Protocol and domain (or IP address)
*d. Protocol and domain (or IP address)
11. Select the true statement from those listed below about HTML5 forms. a. The input element with type="email" will cause all browsers to edit for a valid e-mail address. b. The required attribute will cause all browsers to verify that the user has entered information into the form control. c. The input element with type="date" will cause all browsers to display a calendar control. d. The input element with type="email" will cause browsers that do not support the attribute to display a text box.
*d. The input element with type="email" will cause browsers that do not support the attribute to display a text box.
11. Select the item(s) below that can be used as a CSS Selector. a. an HTML element b. a class name c. an id name d. all of these
*d. all of these
8. HTML5 syntax allows a. uppercase b. lowercase c. self-closing tags d. all of these
*d. all of these
CHAPTER -2 QUIZ XML-based syntax rules for XHTML require: a. lowercase tag names b. attributes always within quotes c. all elements must have a closing element (or be self-closing) d. all of these
*d. all of these
5. Of the following web clients, which will run JavaScript by default? a. a screen reader used for Accessibility purposes for the visually impaired. b. a text-based browser like Lynx c. an automated software agent like a web crawler client d. the default browser on an iPhone
*d. the default browser on an iPhone
11. Image format that supports millions of colors and transparency a. PNG b. GIF c. JPG d. BMP
PNG
CHAPTER -5 QUIZ 1. Which of the following is a block level element by default? a. <span> b. <img> c. <ul> d. <a>
<ul>
In terms of the client-server model of the web, which of the following statements is false? a. A server is a computer agent that listens for queries and requests b. A server is a computer agent that is normally active 24 hours a day, 7 days a week. c. A server is a computer agent that makes requests and receives responses d. A server hosts web applications, stores user and program data, and performs security authorization.
A server is a computer agent that makes requests and receives responses
2. Which of the following programs would be best for creating a vector-based logo image? a. Adobe Photoshop b. GIMP c. Adobe Illustrator d. Microsoft Paint
Adobe Illustrator
3. Which of the following is considered server-side scripting? a. Flash objects b. Java applets c. JavaScript d. PHP
PHP
18. All browsers and all versions support every feature of HTML5. a. True b. False
False
18. The Internet uses the Transmission Control Protocol (TCP) to identify destinations on the Internet. a. True b. False
False
18. When using the GET method to send form data, the data is hidden from the user. a. True *b. False
False
19. Flash applets require the Java Plug-in to run on the client machine. a. True b. False
False
23. A key feature in AJAX programming is that the asynchronous data requests require a response from the server before the next lines of code can be executed. a. True b. False
False
23. It is best to use the PNG format for photographs on the web because the PNG file will be the smallest file size thus reducing load time. a. True b. False
False
24. Like the other new HTML5 semantic elements, the browser applies special presentation to the <nav> element. a. True *b. False
False
24. When users visit a URL, the entire web page is returned to the browser in a single HTTP response from the server. a. True b. False
False
25. One way to center a containing block element on the page is to use { float: center; } in your CSS. a. True b. False
False
27. <h1>Share Your <strong>Travels</h1></strong> is an example of correct nesting in the Document Object Model (DOM). a. True *b. False
False
27. Like many programming languages, JavaScript variable declarations require a data type such as int, char or string. a. True b. False
False
27. The most common choice for a web server operating system is a Microsoft OS. a. True b. False
False
29. There are objects that are included in the JavaScript language; but you cannot define your own kind of objects. a. True b. False
False
30. A heading cell displays text as left-aligned and bold by default. a. True b. False
False
30. The LAMP application stack consists of Linux, Apache, Microsoft database software, and the Python programming language. a. True b. False
False
30. When using CSS to hide elements on the page, the visibility property takes an item out of the flow: it is as if the element no longer exists. a. True b. False
False
32. A JavaScript event is an action that can be detected by JavaScript, which can only be triggered by user interaction. a. True b. False
False
14. Which of the following is NOT an advantage of grid systems? a. Grid systems make it easier to create multicolumn layouts. b. Grid systems can be used as a way to achieve visual uniformity in a design, making the elements on the page look planned and harmonious. c. Grid systems increase your ability to closely control the styling on your page without causing conflicts. d. Text and graphics can more easily be aligned and sized according to the grid system's pre-defined CSS classes for the grids.
Grid systems increase your ability to closely control the styling on your page without causing conflicts.
12. Which of the following is not a key component of responsive design? a. Customizing the CSS for different viewports using media queries. b. Setting viewports via the <meta> tag c. Relying on inline styles to limit inheritance d. Scaling images to the viewport size
Relying on inline styles to limit inheritance
25. A single web page can reference dozens of files and require many HTTP requests and responses. a. True b. False
True
6. The invention of the WWW is usually attributed to__________. a. Al Gore b. Microsoft c. Tim Berners-Lee d. World Wide Web Consortium (W3C)
Tim Berners-Lee
16. A table element can contain other table elements. a. True b. False
True
16. At its simplest, markup is a way to indicate information about the content that is distinct from the content. a. True b. False
True
16. The World Wide Web Consortium (W3C) is the international standards organization that oversees the growth of the web. a. True b. False
True
16. The more specific the CSS selector, the more it takes precedence (i.e., overrides a previous definition). a. True b. False
True
17. In the mid-2000s work on the XHTML2.0 standard was abandoned mainly due to lack of backwards compatibility with HTML and XHTML 1.0. a. True b. False
True
17. When you see text and images on your desktop monitor or your mobile screen, you are seeing many small squares of colored light called pixels that are arranged in a two-dimensional grid. *a. True b. False
True
19. In a local network, computers can share a single IP address between them. a. True b. False
True
19. Raster images can be manipulated on a pixel by pixel basis by painting programs like GIMP or Phtotshop. a. True b. False
True
19. When using the GET method to send form data, the data can be bookmarked. a. True b. False
True
20. Java applets require the Java Runtime Environment to run on the client machine. a. True b. False
True
21. JavaScript is an implementation of a standardized scripting language called ECMAScript. a. True b. False
True
21. The Domain Name System (DNS) provides a mechanism for software to discover a numeric IP address through a process referred to as address resolution. a. True b. False
True
21. The way we perceive a color changes based on the other colors that are in close proximity. a. True b. False
True
22. One of the key benefits of the PNG file format is that it supports 256 levels of transparency. a. True b. False
True
22. The action attribute of the form element specifies the URL of the server-side resource that will process the form data a. True b. False
True
23. An HTML attribute is a name=value pair that provides more information about the HTML element. a. True b. False
True
23. Like with radio buttons, the checked attribute can be used to set the default value of a checkbox. a. True b. False
True
23. Query strings are used in server-side programming to pass information such as user form input from the client to the server. a. True b. False
True
24. Any text within the opening and closing <noscript> ... </noscript> tags will be displayed only to users without the ability to load JavaScript. a. True b. False
True
24. With only 1 bit of transparency, anti-aliased edges often result in an undesirable "halo" effect when you set a transparent color in a GIF. a. True b. False
True
CHAPTER -7 QUIZ 1. Which of the following image types can be enlarged without any loss of quality? a. raster b. bitmap c. vector d. none of these
Vector
5. ARPANET was originally created for_________ a. e-Commerce b. Academic and scientific research c. Banking and financial services d. Use by the general public
b. Academic and scientific research
20. The SVG file format is supported by all browsers including mobile browsers. a. True b. False
b. False
13. Which is the default port for the HTTP protocol to establish a TCP connection? a. 80 b. 88 c. 1 d. 21
a. 80
9. Use the _____ element to associate a web page with an External Style Sheet. a. <link> b. <style>...</style> c. <target> d. <include>...</include>
a. <link>
CHAPTER -3 QUIZ 1. In the following CSS code, em is the ____________.em { color: red; } a. selector b. property c. value d. style declaration
a. selector
3. The syntax for CSS comments looks like: a. <!-- comments go here --> b. /* comments go here */ c. // comments go here // d. all of these will work in CSS
b. /* comments go here */
10. If A is true and B is false, which of the following results is returned for these the Boolean operators based on the truth tables? a. A && B is true b. A || B is true c. A || B is false d. A ! B is false
b. A || B is true
7. Scenario 2: Josh wants a three column layout for his profile page. He creates a div with an ID named main as a wrapper for all the page content. Then he adds the three divs for the columns and wants to use CSS to float them side by side on the page. Select the true statement below based on Josh's code: a. The three columns display side by side as Josh intended. b. Only two columns display side by side because there isn't enough room in the main container div for the third column to fit side by side in its container. c. Josh could float the third column (col3) to the right so that it will line up correctly on the top margin and fit within the main container div. d. Josh could change the width of the main container div to 100% to allow his three columns to fit side by side on any screen size or device.
b. Only two columns display side by side because there isn't enough room in the main container div for the third column to fit side by side in its container.
7. Regarding intranets, which of the following statements is false? a. The term intranet refers to an internet network that is local to an organization or business. b. We know how many web pages exist within intranets because search engines like Google can index the content within them. c. Intranet resources are often private. d. Intranets are typically protected from unauthorized external access via security features such as firewalls or private IP ranges.
b. We know how many web pages exist within intranets because search engines like Google can index the content within them.
12. You would like to conduct a survey and ask your web page visitors to indicate the web browsers that they use. Each visitor could use more than one browser. Select the form control that is best to use for this purpose. a. radio button b. check box c. text box d. scrolling text box
b. check box
2. Which of the following is true of a packet-switched network? a. Wastes bandwidth since even the silences are transmitted b. Requires more bandwidth c. Can communicate multiple connections d. Must establish and maintain a dedicated link
c. Can communicate multiple connections
9. Scenario 2: Josh wants a three column layout for his profile page. He creates a div with an ID named main as a wrapper for all the page content. Then he adds the three divs for the columns and wants to use CSS to float them side by side on the page. In Josh's code below, what does the class .clear do? a. It forces the footer to break clear of the main container div and be absolutely positioned. b. It forces the three column divs to display side by side on the page. c. It forces the footer to display on a new row underneath the column divs. d. It forces the footer background color to be transparent and inherit the main container background color.
c. It forces the footer to display on a new row underneath the column divs.
6. Scenario 1: Liz is starting to work on the layout for her personal portfolio website. After creating an HTML document she codes a new div element with an ID named container right after opening body tag that will serve as a wrapper for all of the content that appears on the webpage. She configures the CSS styles as follows:#container { margin-left: auto; margin-right: auto;width: 960px; } What effect will these new rules have on the web page display? a. The container div will be centered in the browser window and will automatically reflow the content when the browser window is smaller than 960 pixels in width. b. The left and right margins around the container div will automatically have a fixed width of 960 pixels. c. The container div will always have a fixed width of 960 pixels and will be centered in the browser window. d. All the written text content inside the container div will automatically be center aligned on the webpage and limited to a fixed width of 960 pixels.
c. The container div will always have a fixed width of 960 pixels and will be centered in the browser window.
17. What does the following JavaScript code do (assume it is in a script element)?function myFcn( a, b, c ){ var q = b; q = c; return q;}var x = myFcn( 1, "stuff", "whatever" ); document.write( "<p>" + x + "</p>" ); a. Writes the number 1 to the web page. b. Writes the string stuff to the web page. c. Writes the string whatever to the web page. d. Nothing as there is an error in the code.
c. Writes the string whatever to the web page.
2. CSS property names ____________________. a. can be any name you choose to create b. are the same as HTML tag names c. are predefined by the CSS standard. d. all of these
c. are predefined by the CSS standard.
3. To configure the table cells to share a common border and eliminate the default space between table cells configure ___________ in your CSS. a. border: none; b. border-collapse: all; c. border-collapse: collapse; d. border: collapse;
c. border-collapse: collapse;
4. The main difference between the existing XHTML 1.1 standard and the XHTML 2.0 standard being developed by the W3C, was that XHTML 2.0 a. would include XML rules b. would be backwards compatible with existing web content and HTML c. would NOT be backwards compatible with existing web content and HTML d. would have to be written in all lower case
c. would NOT be backwards compatible with existing web content and HTML
5. To stop elements from flowing around a floated element, use the ___________ property. a. float-none b. clear c. clear-float d. clear-both
clear
5. Which is the color model used for traditional color printing? a. RGB b. RGBA c. HSL d. CMYK
d. CMYK
15. The HTML5 canvas element is a two-dimension drawing surface that uses __________ to perform the actual drawing. a. UNICODE b. Flash Action Script c. media encoding d. JavaScript
d. JavaScript
11. Which of the following is NOT a benefit of the mobile first design approach? In other words, which of the following is false? a. It accommodates an increasingly larger audience accessing websites from mobile devices. b. Designing the mobile version first forces designers to focus on the most important content first. c. Implementation of the mobile version of the site is not likely to be merely an afterthought. d. Mobile first design always eliminates the need for progressive enhancement for larger screen sizes.
d. Mobile first design always eliminates the need for progressive enhancement for larger screen sizes.
10. Which of the following is NOT an advantage of a server farm? In other words, which of the following is false? a. Server farms provide failover redundancy through replication in case of hardware failure. b. Server farms distribute incoming requests between clusters of machines so that any given web or data server is not excessively overloaded. c. Server farms limit the potential risk of site downtimes. d. Server farms are always the most cost effective solution.
d. Server farms are always the most cost effective solution.
4. ________ will cause an element to not display when the page is rendered by a browser. a. display: block; b. display: none; c. display: hide; d. display; 0%;
display:none;
24. In modern web development it is best to always use pixel measurements for font sizes. a. True b. False
false
8. Scenario 2: Josh wants a three column layout for his profile page. He creates a div with an ID named main as a wrapper for all the page content. Then he adds the three divs for the columns and wants to use CSS to float them side by side on the page. Based on Josh's code below, which CSS layout approach has he used? a. fixed b. liquid c. hybrid d. responsive
fixed
3. Use ________ positioning to slightly change the location of an element in relation to where it would otherwise appear when rendered by a browser. a. absolute b. float c. relative d. z-index
relative
13. The Bootstrap framework was originally created by____________. a. the designers at Twitter b. the designers at Adobe c. the designers at Apple d. the designers at Google
the designers at Twitter
4. The term saturation refers to ______________. a. the color itself b. the intensity or strength of a color c. the relative lightness or darkness of a color d. the hue
the intensity or strength of a color