wrong for cert

¡Supera tus tareas y exámenes ahora con Quizwiz!

What is the result when this script is run in the browser assuming the item count is 15?

What is the result when this script is run in the browser assuming the item count is 15? • "Order more items" appears in the browser document.• Nothing, there is a load-time error in the script. (correct answer)• Nothing, there is a run-time error in the script.• "Inventory status is good" appears in the browser document. (your response)

Which HTML code should be used to create a click-to-call link for a mobile website?

• <a href="sms:18005551212">Call Us Now!</a> (your response) • <a href="tel:18005551212">Call Us Now!</a> (correct answer) • <a href="call:18005551212">Call Us Now!</a> • <a tel="18005551212">Call Us Now!</a>

Which choice lists the new HTML5 structure elements?

• <header>, <footer>, <body>, <nav>, <section>, <article> and <aside> (your response) • <header>, <footer>, <main>, <nav>, <section>, <article> and <aside> (correct answer) • <!DOCTYPE>, <html>, <body>, <div>, <CSS>, <link> and <table> • <head>, <!DOCTYPE>, <main>, <div>, <blockquote>, <table> and <div>

Consider the following CSS code that is used to position an image relative to text on an HTML page. How would you reference this code in HTML? .floatright{ float: right; }

• <img src="floatright" "class="images/fastcars.png" alt="Picture of fast car" /> • <img src="images/fastcars.png" class=".floatright" alt="Picture of fast car" /> (your response) • <p style="floatright"><src="images/fastcars.png" alt="Picture of fast car" /></p> • <img src="images/fastcars.png" class="floatright" alt="Picture of fast car" /> (correct answer)

Which new HTML5 structure element is intended to mark up the page's primary content, which is directly related to the page's subject?

• <section> • <body> (your response) • <main> (correct answer) • <div>

Your company uses a custom font for the company Web site. To add the custom font to your department's intranet Web site, which at-rule is correct?

• @font-family {font-face: customfont; src: url("../media/customfont.ttf");} • @font-face {font-family: customfont; src: url("../media/customfont.ttf");} (correct answer) • @font-family {name: customfont; src: url("../media/customfont.ttf");} • @font-face {name: customfont; src: url("../media/customfont.ttf");}

Which of the following statements best describes an external CSS stylesheet?

• An embedded code block in an HTML page that contains scripting instructions to control the layout of elements on the page. • A text file that contains CSS formatting instructions to define the font, color and position of elements on a webpage. (correct answer) • A scripting language used with web pages to provide better interaction than HTML can do alone. (your response) • An HTML file that contains CSS formatting instructions to define the font, color and position of elements on a webpage.

Manuel was hired to develop a mobile website that includes functionality to locate the user's position. He plans to use the Geolocation API to do this but is concerned about respecting the privacy of the website visitors. What should he consider regarding this?

• Browsers will identify the user's location by default when using the API, but will send the user a request to use the information in the web application. • Browsers will allow the API to function by default, so Manuel should add a JavaScript alert informing users how to disable the API in the browser if they do not want their location identified. (your response) • Depending on the user's security settings, browsers will send the user a request by default to approve this action before the API identifies the user's location. (correct answer) • Depending on the user's security settings, browsers will send the user a JavaScript alert by default when using the API, stating that the Web application is identifying their location.

How should an HTML5 webpage perform calculations, such as for a income tax return, and display the results?

• Calculations should be performed by <input> elements, and calculation results should be displayed in the HTML5 <output> element • Calculations should be performed by a script, and calculation results should be displayed in the HTML5 <output> element. (correct answer) • Calculations should be performed by <input> elements, and calculation results should be displayed in the HTML5 <datalist> element • Calculations should be performed by a script, and calculation results should be displayed in the HTML5 <datalist> element. (your response)

In JavaScript, you need to convert a string value into a numeric value for the purpose of calculations. What JavaScript technique can perform this conversion?

• Casting (correct answer) • Floating-point calculation • Operator precedence (your response) • Pass by reference

Mannie wants to add rounded navigation menus and buttons to the front-end design for his company's website. He plans to use CSS3. What would he have needed to use prior to CSS3 to accomplish the same effect?

• HTML or Java • Java or images • JavaScript or images (correct answer) • JavaScript or HTML (your response)

Which statement conveys an advantage of mobile apps versus mobile websites?

• Mobile apps are cheaper and faster to develop than mobile websites. (your response) • Mobile apps can be accessed and installed from any software provider on the web .• Mobile apps run within a mobile device browser and do not need to be installed. • Mobile apps have full access to all device components, such as address book and calendar. (correct answer)

Which statement regarding the compatibility of forms built using the HTML5 elements and attributes is correct?

• Modern browsers support HTML5 forms and display them the same a legacy browsers. • Modern browsers provide limited support for HTML5 forms. (your response) • Modern browsers support HTML5 forms but different browsers may display the same form differently. (correct answer) • Modern browsers support HTML5 forms and display them consistently.

In JavaScript, what is the term for a container that holds a value, which you can then access repeatedly in your script?

• Operator • Expression (your response) • Variable (correct answer) • Operand

What does the HTML5 <output> element do?

• Provides choices for a <datalist> selection • Displays the results of a calculation (correct answer) • Renders output of the <canvas> element • Opens hyperlinks in a new tab

You are designing a Web page. You want to position an image so it appears to FLOAT ABOVE THE DOCUMENT AND CAN BE REPOSITIONED AS NEEDED. Which CSS positioning scheme can accomplish this task?

• Relative • Fixed • Static (your response) • Absolute (correct answer)

The following code produces an unexpected mathematical result. Which type of error is present in the code? var x = 80; var y = 100; var total = 2; var average = x + y / total;document.write(average);

• Syntax error (your response) • Run-time error • Load-time error • Logic error (correct answer)

Webpages that use the Offline AppCache API must point the HTML pages that will be cached to a manifest file. Which HTML element do you add the manifest attribute to?

• The <!DOCTYPE> element (your response) • The <body> element • The <html> element (correct answer) • The <meta> element

Webpages that use the Offline AppCache API must point the HTML pages that will be cached to a manifest file. Which HTML element do you add the manifest attribute to?

• The <body> element • The <!DOCTYPE> element (your response) • The <html> element (correct answer) • The <meta> element

The web developer for Sanderson Acres has converted all of the company's Flash files to MP4 files, however, the company's target audience is slow to transition to HTML5-compliant web browsers. The web developer wants to inform visitors if their browsers do not support the provided video format. Which HTML5 code should he insert in the video page to display a text notice in place of the video if it is not supported?

• The <video></video> tags (correct answer) • The <source></source> tags nested in the <video> element (your response) • The type attribute • The poster attribute

Hermani is creating a mobile website but is having a problem with content getting pushed off the screen at smaller resolutions. What is the most likely cause of this issue?

• The use of pixels to specify fixed sizes for elements (correct answer) • The use of flexible-sized elements using percentages • The use of responsive web design to adapt to smaller screens • The use of relative measurement units for layout and image sizes (your response)

Carolyne is a junior web designer who was instructed to use a tool called MobileOK Checker. What is the purpose of the MobileOK Checker tool?

• To determine the websites level of mobile device friendliness. (correct answer) • To display how a page will render on various mobile platforms. • To validate the website for mobile device plug-in compatibility. (your response) • To show how a page will render in various accessibility clients.

Carolyne is a junior web designer who was instructed to use a tool called MobileOK Checker. What is the purpose of the MobileOK Checker tool?

• To show how a page will render in various accessibility clients .• To display how a page will render on various mobile platforms. • To validate the website for mobile device plug-in compatibility. (your response) • To determine the websites level of mobile device friendliness. (correct answer)

You are creating an HTML5 API that includes JavaScript. You need to create a calculation in JavaScript for an object to perform. What is the scripting term used to describe the actions that an object can be made to perform?

• Values (your response) • Methods (correct answer) • Value • Properties

Janice is a recently hired web designer who is familiarizing herself with the current code for a website. She encounters the following code but does not know what the pattern checks for. What does it check? <input type="text" pattern="\d{5}">

• a date (your response) • a price • a country code • digits (correct answer)

Which CSS3 property allows users to alter elements using values such as horizontal, vertical and none?

• box-sizing • outline-offset (your response) • appearance • resize (correct answer)

Which CSS positioning scheme represents the default or normal layout of elements on an HTML page?

• fixed (your response) • static (correct answer) • relative • absolute

You are creating an HTML5 form. You need numbers and dates to be submitted in a specific format. Which technique accomplishes this task?

• formaction• • Inline validation (correct answer) • Semantic input types • formmethod

You are using the HTML5 <button> element to create a Submit for a form. You need to specify where to send user input when the form is submitted. Which attribute will accomplish this task?

• formmethod (your response) • formtarget • formaction (correct answer) • formenctype

Which JavaScript code segment correctly declares a function in JavaScript?

• function totalAmount {} • function totalAmount() {} (correct answer) • function totalAmount() {}; (your response) • function totalAmount {};

The Geolocation API can be used to retrieve periodic updates about the current geographic location of a user's device. Which method is used for this?

• getCurrentPosition() • clearWatch() • getContext() (your response) • watchPosition() (correct answer)

The Geolocation API can be used to retrieve periodic updates about the current geographic location of a user's device. Which method is used for this?

• getCurrentPosition() • watchPosition() (correct answer) • clearWatch() • getContext() (your response)

Which History API method can be used to add a URL to the history stack?

• history.replaceState() • history.go() (your response) • history.pushState() (correct answer) • history.back()

Which user event occurs when a user moves to a different page or closes a web page in the browser?

• onchange • onunload (your response) • change • unload (correct answer)

Jared is examining the following code. <img id="logo" src="images\logo.gif" alt="Logo" draggable="true" ondragstart="drag(event)" width="202" height="89"> Which part of the code refers to the event listener that indicates that the image can be dragged on the screen?

• ondragstart="drag(event)" (correct answer) • id="logo" • src="images\logo.gif" • draggable="true"

Which of the following CSS3 properties is used to control the way that certain elements fit into a specific area?

• outline-offset • box-sizing (your response) • appearance • resize (correct answer)

You want to change an element from one style to another style. The transition will be triggered when an image is selected by the end user. Which CSS3 transition properly accomplishes this task?

• transform: transition(180deg); (your response) • transition: width 3s, height 3s, transform 3s; (correct answer) • transition-property: width 3s, height 3s, transform 3s; • transition-duration: width 3s, height 3s, transform 3s;

What type of effect is the @keyframes rule used to define?

• transitions (your response) • 2D transformations • animations (correct answer) • 3D transformations

What are gender, name and age examples of in the following JavaScript code?

• values (your response) • objects • parameters • properties (correct answer)

Which code should be used to create an XMLHttpRequest object?

• var xmlhttp = "new" "XMLHttpRequest()"; • var xmlhttp = XMLHttpRequest(); (your response) • var xmlhttp ="XMLHttpRequest"()"; • var xmlhttp = new XMLHttpRequest(); (correct answer)


Conjuntos de estudio relacionados

Ch.6 Adaptations to aerobic endurance training

View Set

Physical Education chp 1,2,3,and 4

View Set

Operations Management Chapter 13

View Set

Les Niouzz du jeudi 26 janvier ...

View Set