Midterm Review (HTML, CSS, JQuery)

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

When using the padding property; are you allowed to use negative values? a. No b. Yes

a. No

What is the correct HTML for making a drop-down list? a. <select> b. <input type="dropdown"> c. <list> d. <input type="list">

a. <select>

How do you group selectors? a. Separate each selector with a comma b. Separate each selector with a plus sign c. Separate each selector with a space

a. Separate each selector with a comma

The HTML <canvas> element is used to: a. draw graphics b. manipulate data in MySQL c. display database records d. create draggable elements

a. draw graphics

Which attribute contains the URL address of the webpage that is loaded after a form submission? a. method b. action c. name d. id

b. action

Which of the following is a reference to a specifi c Web page that you can click to open that Web page? (Choose all that apply.) a. hypertext link b. hyperlink c. link d. jump

a, b, c

What is the correct jQuery code for making all div elements 100 pixels high? a. $("div").height(100) b. $("div").yPos(100) c. $("div").height="100"

a. $("div").height(100)

Which jQuery method returns the direct parent element of the selected element? a. parent() b. ancestor() c. ancestors() d. parents()

a. parent()

In HTML, which attribute is used to specify that an input field must be filled out? a. required b. placeholder c. validate d. formvalidate

a. required

Which jQuery method is used to switch between adding/removing one or more classes (for CSS) from selected elements? a. toggleClass() b. switchClass() c. altClass() d. switch()

a. toggleClass()

Th e Web server returns a to the user. a. delivery b. posting c. response d. transfer

c

What is html? a. scripting language b. HyperText Library c. Markup Language d. Programming Language

c. Markup Language

Where should you put the title tag? a. after the closing html tag b. between the body tags c. between the head tags d. before the html tag

c. between the head tags

Which CSS property is used to change the text color of an element? a. text-color b. fgcolor c. color

c. color

Which jQuery method is used to hide selected elements? a. hidden() b. visible(false) c. hide() d. display(none)

c. hide()

Which jQuery method is used to perform an asynchronous HTTP request? a. jQuery.ajaxAsync() b. jQuery.ajaxSetup() c. jQuery.ajax()

c. jQuery.ajax()

Which two tags below make the text visually bold? a. i and em b. sub and sup c. ins and del d. b and strong

d. b and strong

What tag is used to create a line-break without an extra space between the text blocks?

<br>

Which jQuery function is used to prevent code from running, before the document is finished loading? a. $(body).onload() b. $(document).load() c. $(document).ready()

c. $(document).ready()

Which jQuery method is used to remove selected elements? a. remove() b. detach() c. Both methods can be used

c. Both methods can be used

Can you insert a block element inside an inline element? a. Yes b. No

b. No

Which input type defines a slider control? a. controls b. range c. search d. slider

b. range

What is the default value of the position property? a. relative b. static c. absolute d. fixed

b. static

What does a markup language use to identify content? a. commands b. tags c. functions d. scripts

b. tags

When a user wants to access a Web page, either by entering its URL in a browser's Address box or by clicking a link, the user's Web browser asks a Web server for the Web page in what is referred to as a(n) . a. demand b. call c. order d. request

d

Which HTML element is used to display a scalar measurement within a range? a. <range> b. <measure> c. <gauge> d. <meter>

d. <meter>

Who is making the Web standards? a. Microsoft b. Mozilla c. Google d. The World Wide Web Consortium

d. The World Wide Web Consortium

With jQuery, look at the following selector: $("div.intro"). What does it select? a. All div elements with class="intro" b. The first div element with class="intro" c. The first div element with id="intro" d. All div elements with id="intro"

a. All div elements with class="intro"

In HTML, you can embed SVG elements directly into an HTML page. a. False b. True

a. False

How do you display a border like this: The top border = 10 pixels The bottom border = 5 pixels The left border = 20 pixels The right border = 1pixel? a. border-width:10px 1px 5px 20px; b. border-width:10px 20px 5px 1px; c. border-width:5px 20px 10px 1px; d. border-width:10px 5px 20px 1px;

a. border-width:10px 1px 5px 20px;

Which jQuery method should be used to deal with name conflicts? a. noConflict() b. nameConflict() c. conflict() d.noNameConflict()

a. noConflict()

What is the correct HTML for making a text input field? a. <input type="textfield"> b. <input type="text"> c. <textfield> d. <textinput type="text">

b. <input type="text">

Choose the correct HTML element to define important text a. <i> b. <strong> c. <b> <d. important>

b. <strong>

What is the correct HTML element for playing video files? a. <media> b. <video> c. <movie>

b. <video>

In HTML, onblur and onfocus are: a. HTML elements b. Event attributes c. Style attributes

b. Event attributes

The jQuery html() method works for both HTML and XML documents a. True b. False

b. False

Is jQuery a W3C standard? a. Yes b. No

b. No

The jQuery animate() method can be used to animate ANY CSS property? a. Yes b. Only properties containing numeric values c. All properties except the shorthand properties

b. Only properties containing numeric values

How do you make a list that lists its items with squares? a. list: square; b. list-style-type: square; c. list-type: square;

b. list-style-type: square;

What is the correct jQuery code to set the background color of all p elements to red? a. $("p").css("background-color","red"); b. $("p").style("background-color","red"); c. $("p").layout("background-color","red"); d. $("p").manipulate("background-color","red");

a. $("p").css("background-color","red");

What is the correct HTML element for playing audio files? a. <audio> b. <sound> c. <mp3>

a. <audio>

What is the correct HTML for inserting a background image? a. <body style="background-image:url(background.gif)"> b. <body bg="background.gif"> c. <background img="background.gif">

a. <body style="background-image:url(background.gif)">

Look at the following selector: $(":disabled"). What does it select? a. All disabled input elements b. All elements containing the text "disabled" c. All hidden elements d. All elements that does not contain the text "disabled"

a. All disabled input elements

Is jQuery a library for client scripting or server scripting? a. Client scripting b. Server scripting

a. Client scripting

Which statement is true? a. To use jQuery, you can refer to a hosted jQuery library at Google b. To use jQuery, you must buy the jQuery library at www.jquery.com c. To use jQuery, you do not have to do anything. Most browsers (Internet Explorer, Chrome, Firefox and Opera) have the jQuery library built in the browser

a. To use jQuery, you can refer to a hosted jQuery library at Google

An <iframe> is used to display a web page within a web page. a. True b. There is no such thing as an <iframe> c. False

a. True

jQuery uses CSS selectors to select elements? a. True b. False

a. True

Graphics defined by SVG is in which format? a. XML b. HTML c. CSS

a. XML

Is it possible to use jQuery together with AJAX? a. Yes b. No

a. Yes

Which property is used to change the background color in CSS? a. background-color b. color c. bgcolor

a. background-color

Which jQuery method is used to set one or more style properties for selected elements? a. css() b. style() c. html()

a. css()

Elements that do not require a closing tag are called elements. a. closed b. empty c. permanent d. constant

b

Which doctype is correct for HTML5? a. <!DOCTYPE HTML5> b. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 5.0//EN" "http://www.w3.org/TR/html5/strict.dtd"> c. <!DOCTYPE html>

c. <!DOCTYPE html>

What scripting language is jQuery written in? a. C++ b. C# c. JavaScript d. VBScript

c. JavaScript

Which of the following are block level elements? a. em b. b c. h1 d. div

c. h1 d. div

Of which of the main parts does the HTML file consist of? a. header and footer b. eyes and mouth c. head and body d. hands and feet

c. head and body


Ensembles d'études connexes

Chapter 7 - Federal and State Laws Pertaining to Real Estate

View Set

Διάμεσος εγκέφαλος

View Set

ATI RN Targeted Med Surg Neurosensory and Musculoskeletal Online Practice 2019

View Set