Test
Exam 2 Review
Crea una cuenta gratis para terminar este test
Guarda tu progreso y consulta tu resultado final.
¿Ya tienes cuenta? Inicia sesión
Preguntas del test (50)
1The default style of browsers to format the print versions of the web pages they encounter always result in the best printouts.
- AVerdadero
- BFalso
2Identify the media rule that must be included in a CSS file so that media queries can be used to associate specific style rules with specific devices.
- A&media
devices
{
style rules - B@media
devices {
style rules
} - C#media
devices
{
style rules
} - D*media
devices
{
style rules
}
- A&media
3A web table contains multiple table rows with each row consisting of one or more table cells.
- AVerdadero
- BFalso
4A web forum contains ____, also called widgets, which are the objects that allow the user to interact with the form.
- Apages
- Bcontrols
- Cextensions
- Dprocess
5Case 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.
Wyona wants to ensure that the text box should accept only 5 characters for entering a zip code. Which attribute of a text box will allow her to do this?- Amaxlength
- Bcodevalue
- Ccharacter
- Dsize
6Only one caption is allowed per web table.
- AVerdadero
- BFalso
7Identify the format for manually inserting a page break directly before an element.
- Apage-break-before: type;
- Bbefore(page-break) type;
- C<page-break/>before: type;
- Dpage-breakK *before-type;
8____ are like selection lists in which they limit fields to a set of possible values; but, unlike selection lists, the options appear as separate controls in the web form.
- AColor pickers
- BText area boxes
- CSlider controls
- DRadio buttons
9Multiple media features can be combined using _____.
- ALogical operators
- BDimensional operators
- Creal-time operators
- Drelational operators
10In CSS every printed page is define as a _____.
- Apage box
- Bboxed schema
- Cpage schema
- Dboxed element
11In the given figure, Box A refers to ____.
- Athe second cell in rows two and three that spans seven columns
- Bthe second cell in row one that spans seven columns
- Cthe second cell in column two that spans across two rows
- Dthe second cell in rows two and three that spans two columns
12get and post are two possible values for the ____ attribute.
- Aclass
- Baction
- Cenctype
- Dmethod
13Identify a true statement of a JavaScript program in a web form.
- AJavaScript is a closed-source programming language, which provides tools and a programming environment for communicating the strategy and overall administration of distributed applications.
- BJavaScript is a bug-free Visual Basic scripting language, which is used only for networking applications.
- CJavaScript intercepts the content of the form before the browser attempts to contact the CGI script and report whether the data contained in the survey form has been correctly filled out or not.
- DJavaScript is extracted by all layout engines in a similar way; as a consequence, this grounds consistency in terms of functionality and interface.
14Which of the following statements is true of row groups?
- AThe row groups are used to create different styles for groups of rows in a table.
- BThe row groups are used in different applications where the table content is only from internal data sources.
- CThe individual rows are determined using only the class attribute.
- DThe rows are determines based on the total number of cells within a table.
15By default, the @page rule is applied only to the first page of the printed output.
- AVerdadero
- BFalso
16Identify the element that can organize selection list options by placing them in option groups in long selection lists.
- Aopgroup
- Bselgroup
- Coptigroup
- Dselect
17The most common way of accepting user input is through a web form.
- AVerdadero
- BFalso
18Identify the correct flex-flow style that combines both the flex-direction and flex-wrap properties.
- Aflex-flow: direction wrap;
- Bflex-flow: direction&&wrap;
- Cflex-flow: flex-direction, flex-wrap;
- Dflex-flow: direction||wrap;
19Identify the type of control that performs an action.
- AA form button
- BA text area
- CAn input box
- DA selection list
20A ______ is used to restrict numeric values by displaying an up or down arrow to increase or decrease the field value by a set amount.
- Acheck box
- Bdata list
- Cradio button
- Dspinner control
21The process of ensuring that the user has supplied correct data is called ______.
- Asubmission
- Bvalidation
- Ccorrection
- Didentification
22_____ is a single cell that occupies more than one cell row and/or column.
- ASpanning cell
- BData cell
- CHeader cell
- DTable cell
23Columns and column groups accept only CSS style properties to modify the column borders, background, width, and visibility.
- AVerdadero
- BFalso
24The align-items property is only impactful when there are multiple lines of flex items.
- AVerdadero
- BFalso
25In the given figure, the items marked Box A and Box B are the _____ respectively.
- Aheader cells and row cells
- Bheader cells and data cells
- Cdata cells and column cells
- Drow cells and column cells
26Which of the following event properties or methods returns a Boolean value that indicates whether an event can have its default action terminated?
- Aevt.cancelable
- Bevt.defaultPrevented
- Cevt.stopPropogation()
- Devt .stopImmediatePropagation()
27JavaScript code is attached to an HTML file using the ____ element.
- Ascript
- Battach
- Cjava
- Dlabel
28Case 11-4
Mathew has created a website using JavaScript. He wants to add a feature which allows a user to change the color of the cursor image with a single click on it. He uses the click point for the cursor to accomplish this.
What will be the default location of the click point of the cursor if no coordinates have been assigned to it?- A(0, 0)
- B(0, y)
- C(x, y)
- D(x, 0)
29Any command that references a document object before the browser has parsed the HTML code will result in an error because those objects do not yet reside in memory.
- AVerdadero
- BFalso
30Identify a compare function that sorts numeric values in descending order.
- Afunction descending(a, b) {
return a - b;
} - Bfunction descending(b, a) {
return a;
} - Cfunction descending(b, a) {
return b;
} - Dfunction descending(a, b) {
return b - a;
}
- Afunction descending(a, b) {
31The ____ element is continuously fired as the mouse pointer hovers across an element with each row position registering that event.
- Amouseleave
- Bmousemove
- Cmouseout
- Dmouseover
32The dblclick event indicates that the mouse button has be double-clicked.
- AVerdadero
- BFalso
33In an array literal, the array values are a space-separated list within a set of curly brackets.
- AVerdadero
- BFalso
34Identify a command that uses the dateDiv variable to refer the page element with ID dateNow.
- Avar dateDiv = document.getElementById("dateNow");
- Bvar dateNow = document.getElementById(dateDiv),
- Cvar dateNow = document.getElementById(“dateDiv”);
- Dvar dateDiv = document.getElementById(dateNow),
35A command block is indicated by its opening and closing square brackets [].
- AVerdadero
- BFalso
36Which of the following functions increase the value of each item in an array by 1?
- AStepUp()
- Bsum()
- CAddArray()
- Dcell()
37Identify a method that tests whether the condition returned by the callback function holds for all items in an array.
- Aarray.some(callback [, thisArg])
- Barray.find(callback [, thisArg])
- Carray.every(callback [, thisArg})
- Darray.filter(callback [, thisArg])
38JavaScript is used as a programming tool for:
- Adesigning style sheets for websites
- Bproviding virtual reality, diagnosis, and nonlinear controls
- Cmanaging databases
- Dcreating interactive web forms and animated graphics
39Increasing the value of the length property adds more items to an array, but the items have null values until they are defined.
- AVerdadero
- BFalso
40Identify the output of the following code.
var x = 8;
var y = 6;- A56
- B28
- C48
- D96
41Identify the sequence of the occurrence of events when a user types a keyboard key.
- Akeydown,keypress,keyup
- Bkeyup,keypress,keydown
- Ckeyup,keydown,keypress
- Dkeydown,keyup,keypress
42Identify the syntax to remove an event listener.
- Aobject .removeEventListener(event, function [, bubbling = false]);
- Bobject .removeEventListener(event, function [, capture = true]);
- Cobject .removeEventListener(event, function [,bubbling= false]);
- Dobject .removeEventListener(event, function [, capture = false]);
43Good coding practices dictates that global variables must be used as much as possible in a program.
- AVerdadero
- BFalso
44Case 11-5
Ashton has created a website for his company using JavaScript. He wants to add dialog boxes to the website to display messages and allow the user to input text.
Ashton wants to create a dialog box for his website that asks the user to select OK or Cancel when he or she decides to leave the website. Which of the following commands should Ashton use to do this?- Aconfirm(text)
- Balert(text)
- Cprompt(text[, defaultinput])
- Dprint(text)
45The onclick event handler recognizes the propagation of events through the capture and bubbling phases.
- AVerdadero
- BFalso
46Which of the following is the correct syntax for a command in JavaScript to apply inline styles using the following style attribute?
<element style = “property:value”>…- Aobject.style.property = "value";
- Bobject.property = style.value
- Cobject.style = property:value
- Dobject:style:property = “value”;
47The keyCode values for the keys "1, 9" on the numeric pad when the keypress event occurs is ___.
- A97, 122
- B97, 105
- C65, 90
- D49, 57
48By default, items are placed in an array either in the order on which they are defined or explicitly by index number.
- AVerdadero
- BFalso
49Identify a function that extracts the first numeric value from the textstring.
- AisNaN(value)
- BisFinite(value)
- CparseInt(string)
- DparseFloat(string)
50Which of the following mouse button is pressed if the value of the evt.buttons property is 2?
- Athe right mouse button
- Bthe middle mouse button
- Cthe back mouse button
- Dthe left mouse button
Información
- Descripción
- quizzes 3 and 4
- Autor
- Minerva Hernandez
- Idioma
- English
- Visitas
- 18
- Etiquetas
- Valoración
- Aún sin valoraciones Valora este test