Web Programming final

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

To select all elements with the class value run, the _________ attribute selector must be used.

.run

​Briefly explain the process of using arrays as data stacks.

Arrays store elements in a list as they are entered and are of fixed size. However, arrays can be used as stacks by increasing their size. **look for better answer**

A more extended character set, called the _________ or ISO 8859-1 character set, supports 255 characters and can be used by most languages.

Latin-1

​It appears when a fault happens when a browser is unable to complete a line of code.

Run-time error

It arranges multiple lines of content along a flexbox's cross axis.

align-content

Which of the following rules defines character encoding in every Cascading Style Sheets (CSS) document? a) @charset="encoding" b) @charset "encoding"; c) ​&char="encoding"; d) &char "encoding";

b) @charset "encoding";

​It defines the initial size of a flex item before a browser attempts to fit it to a flexbox.

basis size

​In _________ borders model, borders from adjacent elements are merged together to form a single border in a new style that combines features of both the borders.

collapsed

​It is used to reference an object as part of a collection in a document.

collection[idref]

Cascading Style Sheets (CSS) support _________, which are numerical expressions that precisely describe colors.

color values

​The number of colors supported by an output device.

color-index

The collection of commands that is run each time through a loop is known collectively as a _________.

command block

A _________ is an operator that compares the value of one expression to another returning a Boolean value indicating whether the comparison is true or not.

comparison operator

Identify the output of the following code. var x = 8; var y = 6; a) 56 b) 48 c) 28 d) 96

d) 96

​It returns the HTML code within element as well as the HTML code of element itself.

element.outerHTML

A Hypertext Markup Language (HTML) file is a text file composed only of text characters. a) true b) false

false

A _________ font describes the general appearance of the characters in a text but does not specify any particular font definition file.

generic

​This media type is used for mobile devices with small screens and limited bandwidth.

handheld

A(n) _________ number is a number expressed in the base 16 numbering system rather than in the commonly used base 10 system.

hexadecimal

​This property has no impact when items are flexed to fill the entire given space.

justify-content

​While designing websites for mobile devices, these need to be easily accessed via a touch interface.

links

​A page box is composed of the _________, which contains the space between the printed content and the edges of the page.

margin area

​This determines the properties of the device rendering a website page so that appropriate designs can be delivered to specific devices.

media queries

The best way to test this is to view it directly on a mobile device.

mobile interface

A(n) _________ list is an unordered list of hypertext links placed within the nav element.

navigation

​It formats the printed version of a web document.

print style sheet

​A host that provides information or a service to other devices on the network is known as a _________.

server

This is provided by mobile phone companies for developers to use to test their programs and websites.

software development

​A network that covers a wider area, such as several buildings or cities, is called a wide area network or WAN. a) true b) false

true

​By default, items are placed in an array either in the order in which they are defined or explicitly by index number. a) true b) false

true

​It returns a text string displaying value to n decimal places.

value.toFixed(n)

​Explain viewports and device width. Also, discuss setting widths in media queries.

Web pages are viewed within a window called the viewport. Mobile devices have two types of viewports: a visual viewport displaying the web page content that fits within a mobile screen and a layout viewport containing the entire content of the page, some of which may be hidden from the user. The two viewports exist in order to accommodate websites that have been written with desktop computers in mind.

Case-Based Critical Thinking Questions ​ Case 3-2 Terry is building a web site and wants to have three main links called Home, Product Info, and Contact Us. She will create a hierarchy of page elements and revise the style sheets. To apply a style to all elements in a document, Terry should use the _____ selector. a) e b) f c) * d) +

c) *

​Which version of Extensible Hypertext Markup Language (XHTML) is not backward compatible with HTML? a) 1.0 b) 1.1 c) 2.0 d) 5.0

c) 2.0

​Since the li element is itself a grouping element, it can be used to group other lists, which in turn creates a series of _____. a) ordered lists b) unordered lists c) nested lists d) navigation lists

c) nested lists

Case-Based Critical Thinking Questions ​ Case 1-1 Lucy wants to develop a web page to display her profile. She wants to just start with a basic page that lists her accomplishments, her work history, and the different computer courses she has taken. She would like each section to be clearly identified. ​ Where will Lucy's information page be stored once she has created it? a) ​on a web page b) on a network driver c) on a web server d) on the World Wide Web Consortium (W3C)

c) on a web server

​Web pages are accessed through a software program called a _____. a) web crawler b) ​web browser c) ​web server d) web app drawer

c) ​web server

A check box can be selected automatically by adding the _________ attribute to the input element.

checked

​Identify the root folder in the absolute path /folder1/folder2/folder3/file. a) file b) folder2 c) folder3 d) folder1

d) folder1

The post method is the default method that tells the browser to append the form data to the end of the URL specified in the action attribute. a) true b) false

false

Web pages are image files written in Extended Hypertext Markup Language (XHTML). a) true b) false

false

A common technique for mobile websites is to hide navigation menus but to indicate their presence with a(n) _________, which is a symbol usually represented as three horizontal lines.

navicon

​It is used to create an inflexible item that will not grow or shrink.

none

​This operator negates any features found in an expression.

not

​It extracts the first integer value from a sequence of characters.

parselnt(string)

A default value need not be specified; the text area box can be left empty or the placeholder attribute can be used to provide a hint to users about what to enter into the text box. a) true b) false

true

​Mobile devices have a _________ viewport that displays a web page content that fits within a mobile screen.

visual

​It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.

​value.toPrecision(n)

​It is a command to create a dialog box containing a message.

​window.alert(" ");

Case-Based Critical Thinking Questions ​ Case 3-2 Terry is building a web site and wants to have three main links called Home, Product Info, and Contact Us. She will create a hierarchy of page elements and revise the style sheets. If Terry decides to select all elements belonging to the main class, he should use the _____ selector. a) .main b) p.main c) #main.intro d) main[href]

a) .main

Case-Based Critical Thinking Questions ​ Case 1-1 Lucy wants to develop a web page to display her profile. She wants to just start with a basic page that lists her accomplishments, her work history, and the different computer courses she has taken. She would like each section to be clearly identified. ​ ​Lucy's page will require at least ____ headings for what she wants to display. a) 3 b) 1 c) 2 d) 6

a) 3

The Cascading Style Sheets (CSS) @rule that imports an external style sheet file located at ur1 is _____. a) @import url(url); b) @import "url"; c) @import prefix url d) @import media { url }

a) @import url(url);

​_____ is used to provide visual clues that the text is hypertext links rather than normal text. a) Rollover effect b) Absolute path c) Pullover effect d) White-space blank

a) Rollover effect

Case-Based Critical Thinking Questions ​ Case 3-2 Terry is building a web site and wants to have three main links called Home, Product Info, and Contact Us. She will create a hierarchy of page elements and revise the style sheets. In this case, the Home page contains two _____ elements. a) child b) parent c) sibling d) descendant

a) child

Documents on the web stored on web servers are known as web _____. a) pages b) sites c) links d) indices

a) pages

Case-Based Critical Thinking Questions ​ Case 3-3 Tim is creating a web page to display his poker club's set of rules. He has main categories and subcategories along with about a paragraph or more of explanation for each. Tim should use what type of font for the body text of his page? a) serif b) monospace c) cursive d) fantasy

a) serif

Case-Based Critical Thinking Questions ​ Case 1-2 Ted is asked to create a page containing his family photos for a family reunion website. He will has about 20 pictures to post, with a caption that he wants to display before each one. Each picture is a group photo of a particular family. ​ What character entity reference could Ted use to add a notice at the bottom of the page to remind viewers that the photos are copyrighted? a) ​&copy; b) <copy/> c) copy: d) &#copy

a) ​&copy;

Case-Based Critical Thinking Questions ​ Case 3-1 Alex's woodworking shop is trying to design a web page with Cascading Style Sheets (CSS). Alex would like create the new design based on the latest elements and styles from Hypertext Markup Language (HTML) and CSS. He has created a few sample pages: home.htm ---describes the business and contact information Product.htm ---displays a list of product descriptions Custom.htm ---displays a list of custom products ​Alex's product style rules can be imported into a single file by adding the command _____. a) @import url (css.product); b) @import url (product.css); c) @import css (product.css); d) @import (type: css url: product);

b) @import url (product.css);

Case-Based Critical Thinking Questions ​ Case 1-3 Lew Russell, owner of Lew's Surfboards, would like to develop a page that would show a list of surfboard types along with their descriptions. ​ Which tag should Lew use to create a list to display his surfboard types along with a narrative for each type? a) Ordered list b) Description list c) Unordered list d) ​Legends list

b) Description list

​An oft-used empty element is _____ element, which marks a major topic change within a section. a) canvas b) horizontal rule c) semantic page d) two-sided

b) horizontal rule

​An e-mail address can be turned into a hypertext link using the URL _____. a) ​<mail="address"> b) mailto:address c) &mail; d) mail:<address="(_blank|_self|_top)">

b) mailto:address

Identify an element used for quoted material. a) a b) q c) wbr d) content

b) q

Case-Based Critical Thinking Questions ​ Case 3-3 Tim is creating a web page to display his poker club's set of rules. He has main categories and subcategories along with about a paragraph or more of explanation for each. ​Tim wants to align the top of the element with the top of the font of the surrounding content. Which value of the vertical-align property should he use? a) baseline b) super c) top d) text-top

d) text-top

Case-Based Critical Thinking Questions ​ Case 1-1 Lucy wants to develop a web page to display her profile. She wants to just start with a basic page that lists her accomplishments, her work history, and the different computer courses she has taken. She would like each section to be clearly identified. ​ Which type of list would work best for listing Lucy's accomplishments? a) ​legends list b) header list c) definition list d) unordered list

d) unordered list

Identify the correct syntax for adding comments in style sheets. a) ​<!--comment--> b) ​/..comment c) ​//comment// d) ​/*comment*/

d) ​/*comment*/

Identify the format to add new content before an element with Cascading Style Sheets (CSS). a) ​element:before open-quote; b) element::before {content: open-quote;} c) ​element:before text; d) ​element::before {content: text;}

d) ​element::before {content: text;}

​It is indicated by the - - symbol, which reduces the operand's value by 1.

decrement operator

Each child element may contain children of its own and so forth down the hierarchy, creating a set of _________ that are all descended from a common parent.

descendant elements

​It returns the text within element disregarding any HTML tags.

element.textContent

A spinner control can be used to limit a numeric field to a range of possible values, thus allowing the user to drag a marker horizontally across the possible field values. a) true b) false

false

Both the align-content and align-items properties have a default value of center. a) true b) false

false

Each document on the World Wide Web is referred to as a web page and is stored on a list server. a) true b) false

false

The _____ operator tests whether two items are equal in value and have the same data type. a) = = b) = = = c) = d) !=

= = =

​Media devices can be specified when importing one style sheet into another by adding the media type to the _________ rule.

@import

​The given figure is an example of the _____ borders model. a) collapsed b) separate c) inherit d) initial

b) separate

Case-Based Critical Thinking Questions ​ ​Case 9-1 Melissa, a computer science engineering student, is learning the basics of programming by exploring arrays. She learns about different array methods. She wishes to learn more on inserting and deleting array items. She creates monthName array to extract only the three spring months—March, April, and May—from a calendar. ​Melissa wants to extract the spring months and store them in the monthName array. Identify a method Melissa should choose to perform this task. a) ​springMonths = monthName.slice(2, 5); b) springMonths = monthName.splice(2, 3); c) springMonths = monthName.slice(3, 5); d) springMonths = monthName.splice(5, 3);

a) ​springMonths = monthName.slice(2, 5);

_________ refers to the state in which an element has been clicked by the user, making it the active control on the form.

focus

​A user can create an embedded script by removing the _____ attribute and placing all of the JavaScript code within the script element. a) method b) src c) enctype d) id

b) src

Case-Based Critical Thinking Questions Case 6.1 Andy designed a web page for a product-oriented industry using CSS properties. He used several HTML tags to create the web page. He also used tables to ensure that the data is easily managed. Andy has created a table for product details where the names of the products and prices of the products are the headers of the table. Which of the following style rules should he add to place a border of 10-pixels around the table with a white background? a) ​table.product {background: white; border: 10px; width: 100%;} b) ​table.product {border: 10px, white; width: 100%;} c) ​table.product {background: white, 10px; width: 100%;} d) table.product {border: white; width: 100%;}

a) ​table.product {background: white; border: 10px; width: 100%;}

The _________ attribute is added to the input element to apply a data list.

list, <input list="id"/>

​JavaScript dates are stored as numeric values equal to the number of _________ between the specified date and January 1, 1970 at midnight.

milliseconds

​Identify a command that uses the dateDiv variable to refer the page element with ID dateNow. a) ​var dateDiv = document.getElementById("dateNow"); b) var dateNow = document.getElementById(dateDiv), c) ​var dateNow = document.getElementById("dateDiv"); d) ​ var dateDiv = document.getElementById(dateNow),

a) ​var dateDiv = document.getElementById("dateNow");

​Server-side and client-side programming are the two main types of web-based programming. a) true b) false

true

The technique of immediate data validation and reporting of errors is known as _____. a) ​server-side validation b) inline validation c) ​online validation d) ​client-side validation

b) inline validation

​Identify an expression that can be used to refer an element by its id attribute. a) ​document.getElementById(id) b) Document.getElementbyID(id) c) document.getelementById(id) d) Document.getelementByID(id)

a) ​document.getElementById(id)

​Identify a property used to refer an HTML code that is stored within a page element. a) ​element.innerHTML b) element.textContent c) element.offsetTop d) ​element.insertAdjacentHTML

a) ​element.innerHTML

To associate a text string entered above each input element with a control, the text string should be enclosed within the _____ element. a) script b) label c) legend d) fieldset

b) label

Most mobile and tablet devices do not have physical keyboards; instead, they use _________ that exist as software representations of the physical device.

virtual keyboards

​Identify a property that is used to separate one column from the next using graphic dividing line. a) column-rule b) ​column-count c) column-width d) column-gap

a) column-rule

​To insert the information of the data-label attribute directly before the data cell value, the _____ property is used. a) content b) position c) padding d) display

a) content

The check box control is created using the _____ element. a) input b) select c) option d) label

a) input

Every field set must contain the _____ element, which should have only text and no nested elements for describing its content. a) legend b) enctype c) script d) form

a) legend

Case-Based Critical Thinking Questions ​ Case 9-1 Terin has created a page for a training institute that will allow users to browse the training courses provided at the institute. Terin uses JavaScript to write the content using objects and functions. The objects defined in the code are document object, history object, screen object, navigator object, and the location object. ​ Terin wants to create an object that will contain information about the browser application. Which of the following objects must Terin create to accomplish this? a) navigator object b) location object c) history object d) document object

a) navigator object

Case-Based Critical Thinking Questions ​ Case 5-2 ​ Lara is the chief editor of "Laughter and Life," an online magazine. Lara has assigned Jenny the task of redesigning the magazine's website. Lara has supplied Jenny with all the necessary documents and images that are essential to enhance the look of the website. Lara's requirements necessitate the use of flexboxes to redesign the website. Jenny wants to distribute the flex items in the magazine's website evenly with the first and last items aligned with the start and end of the main axis. Identify the keyword Jenny must assign tovaluein thealign-content:value;property. a) space-between b) space-around c) space-under d) space-above

a) space-between

The process of ensuring that the user has supplied correct data is called _____. a) validation b) submission c) correction d) identification

a) validation

​Identify the Cascading Style Sheet (CSS) rule that imports a file named screen.css only when a screen or projection device is being used. a) ​@import url("screen.css") screen, projection; b) #import url("screen.css") screen, projection; c) @import url("screen.css") screen&&projection; d) ​@import url("screen.css") *screen, *projection;

a) ​@import url("screen.css") screen, projection;

Identify a true statement of array.some(callback [, thisArg]) method. a) ​It tests whether the condition returned by the callback function holds for at least one item in array. b) ​It returns the value of the first element in the array that passes a test in the callback function. c) ​It tests whether the condition returned by the callback function holds for all items in array. d) ​It returns the index of the first element in the array that passes a test in the callback function.

a) ​It tests whether the condition returned by the callback function holds for at least one item in array.

While designing websites for mobile devices, _____ colors should be used so that pages are easily visible in outdoor lighting. a) ​contrasting b) ​red and blue c) darker d) lighter

a) ​contrasting

Case 5-2 ​ Lara is the chief editor of "Laughter and Life," an online magazine. Lara has assigned Jenny the task of redesigning the magazine's website. Lara has supplied Jenny with all the necessary documents and images that are essential to enhance the look of the website. Lara's requirements necessitate the use of flexboxes to redesign the website. ​To reduce the cluttered look of the web page, Jenny needs to separate the page content from page design. Which of the following properties must Jenny use to place the flex items in a desired order? a) align: value; b) order: value; c) justify: value; d) ​content: value;

b) order: value;

Identify the first step to create a responsive web table that relies only on CSS. a) ​Change the table layout so that each table object is rendered as a block element. b) ​Add a text of data labels as attributes of all of the td elements in the table body. c) ​Use relative positioning to place each data cell with a large left padding to insert data label text. d) ​Add the content of the data label attribute before the data cell value.

b) ​Add a text of data labels as attributes of all of the td elements in the table body.

Case-Based Critical Thinking Questions ​ Case 5-1 Alex, a web designer, is assigned the task of creating a mobile-device-friendly website for a leading fashion outlet called AllStyles. A desktop version of AllStyles's website already exists. Alex can refer to this desktop version of the website to create the mobile website design. For the AllStyles's main web page, Alex creates a navigation bar that includes topical areas named Clothing, Accessories, and About Us. Alex wants to create nested lists within each of these topical areas that would contain links to specific pages on the AllStyles website. In order to do so, Alex must _____ while writing the HTML code. a) set the width of the layout viewport to the width of the nested lists b) put each of the nested lists within a class c) ​insert the structure of the nested list within a specific style sheet structure d) use the only keyword to hide the list items

b) put each of the nested lists within a class

Case-Based Critical Thinking Questions ​ Case 9-2 Robin maintains a web page for updating the metro timings in the city. He would like the website to display the present day's schedule. To do this, Robin writes a code that includes an object to retrieve the day of the week and then loads the appropriate data into the page. ​ Robin includes an expression to the code, var thisDay = new Date("May 23, 2018 14:35:05"); ​ Identify the value for the month that will be displayed on the web page by using thisDay.getMonth() method. a) 35 b) 4 c) 14 d) 3

b) 4

Which of the following methods creates a new array populated with the elements of array that return a value of true from the callback function? a) array.every(callback [, thisArg]) b) array.filter(callback [, thisArg]) c) array.some(callback [, thisArg]) d) array.find(callback [, thisArg])

b) array.filter(callback [, thisArg])

The _____ is a possible media type value for the media attribute. a) flexi b) embossed c) lnk d)view

b) embossed

The _____ media type value for the media attribute is used for paged Braille printers. a) braille b) embossed c) handheld d) screen

b) embossed

​Identify a true statement of array.find(callback [, thisArg]) method. a) ​It tests whether the condition returned by the callback function holds for at least one item in array. b) ​It returns the value of the first element in the array that passes a test in the callback function. c) ​It tests whether the condition returned by the callback function holds for all items in array. d) ​It returns the index of the first element in the array that passes a test in the callback function.

b) ​It returns the value of the first element in the array that passes a test in the callback function.

Identify a widget that allows the user to interact with the form for entering numeric values confined to a specified range. a) Reset button b) ​Slider control c) Calendar control d) ​Option button

b) ​Slider control

​A _____ occurs after a script has been successfully loaded with no syntax errors and is being executed by a browser. a) load-time error b) ​run-time error c) ​logical error d) fatal error

b) ​run-time error

A(n) _____ is created using the select and option elements that present users with a group of predefined possible values for the data field. a) option button b) ​selection list c) check box d) ​text area

b) ​selection list

When the hover event is used to hide an object or display it, mobile browsers employ a double-tap event in which the first tap activates any hypertext links associated with a page object. a) true b) false

false

​A command block is indicated by its opening and closing square brackets [ ]. a) true b) false

false

​In JavaScript, the clearTimeout() method is used to clear all repeated commands. a) true b) false

false

​In an if loop, a variable known as a counter variable is used to track the number of times a block of commands is run. a) true b) false

false

​JavaScript demands strict application of rules for syntax and program structure. a) true b) false

false

​Which of the following examples tests whether x is equal to 5 or y is equal to 8? a) (x === 5) && (y === 8) b) (x === 5) : (y === 8) c) (x === 5) || (y === 8) d) (x === 5) / (y === 8)

c) (x === 5) || (y === 8)

Case-Based Critical Thinking Questions ​ Case 9-2 Robin maintains a web page for updating the metro timings in the city. He would like the website to display the present day's schedule. To do this, Robin writes a code that includes an object to retrieve the day of the week and then loads the appropriate data into the page. ​ ​Robin includes an expression to the code, var thisDay = new Date("May 23, 2018 14:35:05"); ​ He also includes the method thisDay.getDay() in the code. What is the result for the given method? a) 1 b) 3 c) 4 d) 5

c) 4

​What is the output of the following code? var x = [4, 7, 11]; ​ x.forEach(stepUp); ​ function stepUp(value, i, arr) { arr[i] = value + 1; } a) ​4, 7, 11 b) 3, 7, 11 c) 5, 8, 12 d) 8, 14, 22

c) 5, 8, 12

Which of the following HTML elements is used to create header cells in a web table? a) <tr> b) <td> c) <th> d) <head>

c) <th>

Case-Based Critical Thinking Questions ​ Case 5-1 Alex, a web designer, is assigned the task of creating a mobile-device-friendly website for a leading fashion outlet called AllStyles. A desktop version of AllStyles's website already exists. Alex can refer to this desktop version of the website to create the mobile website design. Alex has placed each of the nested lists within a class called submenu. He wants to display a nested submenu only when the user hovers the mouse pointer over its associated submenu title. Which of the following selector formats should be used by Alex to select the submenu that is immediately preceded by a hovered submenu title? a) *submenuTitle:hover+<ul>submenu b) submenuTitle:@hover+ul.submenu c) a.submenuTitle:hover+ul.submenu d) a.submenuTitle: ul.submenu+hover

c) a.submenuTitle:hover+ul.submenu

​The _____ is a device feature that gives the ratio of the width of the display area to its height. a) index-ratio b) display-ratio c) aspect-ratio d) ​orientation-ratio

c) aspect-ratio

​Which of the following syntax is used for a function to return a value? a) ​return value; function_name(parameters){ commands } b) ​function return value; { function_name(parameters) commands } c) function function_name(parameters){ commands return value;} d) function_name(parameters) { return value; commands }

c) function function_name(parameters){ commands return value;}

Case-Based Critical Thinking Questions ​ Case 5-2 ​ Lara is the chief editor of "Laughter and Life," an online magazine. Lara has assigned Jenny the task of redesigning the magazine's website. Lara has supplied Jenny with all the necessary documents and images that are essential to enhance the look of the website. Lara's requirements necessitate the use of flexboxes to redesign the website. Jenny needs to change the existing layout where the flex items are laid down at the start of the main axis. Which of the following properties should Jenny use to specify a different placement for the flex items? a) align-content b) order-content c) justify-content d) ​organize-content

c) justify-content

​Identify the syntax of the statement label. a) label = {statements} b) statement!(label) c) label: statements d) statements.label

c) label: statements

Case-Based Critical Thinking Questions ​ Case 9-1 Terin has created a page for a training institute that will allow users to browse the training courses provided at the institute. Terin uses JavaScript to write the content using objects and functions. The objects defined in the code are document object, history object, screen object, navigator object, and the location object. ​ ​Identify an object created by Terin that will contain information about the current URL. a) history object b) screen object c) location object d) navigator object

c) location object

​A video embedded on a web page is a(n) _____ and has properties such as source of the video file or the width and height of the video player. a) class b) method c) object d) event

c) object

​Identify an expression used to apply a method to an object. a) ​object.object(method) b) Object.name(method) c) object.method(values) d) Object.name(values)

c) object.method(values)

​Identify a syntax to set the time-delayed commands. a) SettimeOut(delay); b) ​Setinterval(interval); c) setTimeout("command", delay); d) setInterval("command", interval);

c) setTimeout("command", delay);

​A table contains five columns where one of the cells in a row spans three columns. Identify the number of table cells that will exist in that row. a) five b) four c) three d) six

c) three

​The _____ attribute is added to a <td> element to create a cell that spreads across several cells vertically. a) ​cellspacing b) ​cellpadding c) ​colspan d) rowspan

c) ​colspan

​The slice() method reverses the order of items in an array, making the last items first and the first items last. a) true b) false

false

Grouping dozens of different fields into a _________ that a web form can have, makes the form easier to interpret and more accessible.

field set

​A _________ is a statement that runs a command or command block only when certain circumstances are met.

conditional statement

_____ are used to associate a style sheet or style rule with a specific device or list of device features. a) Flexible layouts b) ​Responsive images c) Viewports d) Media queries

d) Media queries

​_____ is a single cell that occupies more than one cell row and/or column. a) Data cell b) Header cell c) Table cell d) Spanning cell

d) Spanning cell

​Case 7-2 Wyona, the owner of Wyona's Hat Designs, desires to have a web site built for customers to order custom-made hats. They can pick from straw, leather, and other material hat collections. Customers can specify one of their existing patterns, which includes about 50 designs. They can also choose a custom pattern instead and then provide information about the pattern they want for Wyona to custom create. Which type of field should Wyona provide for the userto provide plenty of space for customers to enter the information for a custom pattern? a) Input boxes b) Check boxes c) Spin boxes d) Text area boxes

d) Text area boxes

​Which of the following statements is used to terminate any program loop or conditional statement? a) for b) while c) pass d) break

d) break

​In the given figure, the items marked Box A and Box B are the _____ respectively. a) row cells and column cells b) header cells and data cells c) header cells and row cells d) data cells and column cells

d) data cells and column cells

​It is an object collection in which all the elements are marked with the <a> tag.

document.anchors

A page name should be created to define styles for the first, left, and right pages. a) true b) false

false

​A(n) _________ is a box containing items whose sizes can shrink or grow to match the boundaries of the box.

flexbox

​The process of validation that takes place on the web user is called _________.

server-side validation

​The browser halts loading a script before trying to execute it if a(n) _________ is detected.

syntax error

​What are the attributes that tell the browser how the form should interact with the web server?

the action attribute provides the location of the webserver program that processes the form; the method attribute specifies how the browser should send form data to the server, and the enctype attribute specifies how the form data should be encoded as it is sent to the server.

​Describe the structure of the if else statement.

the if statement will execute as long as the condition holds true, otherwise else will execute. **look for better answer**

Describe the types of layouts that are used to design a form.

the layout of the form should aid the user in interpreting the form and navigating easily from one input control to the next. There are two general layouts, one in which the labels are placed directly above the input controls in a single column and the other in which the labels and controls are placed side by side in two columns.

A user can manually zoom into a page to make it readable within the visual viewport, but it is done at the expense of hiding content. a) true b) false

true

An object can be modified by changing its properties or by applying a method. a) true b) false

true

Both HTML tags and text content can be returned by the innerHTML property. a) true b) false

true

Different items within a flexbox can have different growth rates. a) true b) false

true

The device-aspect-ratio feature supported by Hypertext Markup Language (HTML) and Cascading Style Sheets (CSS) gives the ratio of the device-width value to the device-height value. a) true b) false

true


Ensembles d'études connexes

check your understanding 27, 28, 29, 31, 33

View Set

Campbell Biology in Focus, Chapter 17 Viruses

View Set