C777 Web Development Applications Post-Assessment Correct 100%
Which of the following statements about HTML5 is true? - ANSWER HTML5 does not require third-party plug-ins for video and audio content What is the purpose of using the output element in a Web form? - ANSWER It displays the result of a calculation in the form Why are syntax errors so common when writing JavaScript code? - ANSWER Because JavaScript is case-specific What CSS3 property can be used to create rounded corners on an image or other element? - ANSWER border-radius What type of JavaScript expression evaluates to true or false? - ANSWER Logical Which statement is true about JavaScript? - ANSWER JavaScript is widely used for client-side and server-side scripts You have created a Web page using the HTML5 nav structural element to define a navigation area. Consider the following external style sheet code: nav { float:left; width:165px; background:#d8d8d8 url() top right; height:662px; } Where on the page will the image () appear? - ANSWER At the top right of the nav section Kate has created a complex script that she wants to attach to multiple HTML files, but she also wants to add a simple script to only certain sections of one page. What must she do to apply both scripts? - ANSWER She must use separate script elements to call the external script file and to embed a separate script Vivi is creating a Web page that will allow her employees to upload their timesheets to the company intranet. What HTML5 API can she use to restrict uploads to a specific file type? - ANSWER The File API Which method of form input validation is sometimes referred to as "pogo-sticking" and may lead to users becoming frustrated or impatient with the form? - ANSWER Requiring users to click Submit before validation occurs Which HTML5 attribute can help users input valid form data in the textarea element by providing the user with a hint identifying the expected input in the field? - ANSWER The placeholder attribute Consider the following code: script var v1 = "Blue"; function f () { v1 = "Green"; alert (v1); } f(); alert (v1); /script What is the expected result when this script is run in the browser? - ANSWER Two alert boxes, both displaying the message Green You are a novice Web developer, and your mentor has suggested that you familiarize yourself with HTML5 and Cascading Style Sheets (CSS). Being somewhat unfamiliar with CSS, you discover that it is: - ANSWER a Web design technology that enables you to determine how the HTML elements in your Web pages will display Which CSS property can create rectangles with rounded corners around text? - ANSWER border-radius Which CSS property defines how text should be handled when it extends beyond its allotted area? - ANSWER text-overflow Which JavaScript event occurs when the mouse pointer leaves from a link, image or other visible element on the page? - ANSWER mouseout Which CSS3 selector can you use to apply a style to the first paragraph of every container in a Web page? - ANSWER p:first-of-type What is another common name for the technique of requesting and reusing data using the JavaScript XMLHttpRequest object with HTML pages and CSS? - ANSWER AJAX To allow users to change the size of elements on a Web page, such as a div element, you can add which CSS3 property? - ANSWER resize Which of the following is a JavaScript event that occurs when a page opens in the browser? - ANSWER load Which DOM method is used by the canvas element to return a context object, which provides properties and methods that can be used to draw and manipulate images on the canvas? - ANSWER getContext() What HTML5 form element provides users with a drop-down menu of pre-defined choices and an autocomplete feature that filters choices while they type? - ANSWER The datalist element You are creating a mobile version of a community discussion site for busy moms. Users post questions and other topics for discussion. Some days there are as many as 20 new discussion threads. Considering your audience, what might be the best way to lay out navigation elements on the home page? - ANSWER Create a small, collapsible navigation bar at the top of the home page so users can see new topics without scrolling Which CSS3 property can
Información del documento
- Subido en
- 27 de enero de 2024
- Número de páginas
- 10
- Escrito en
- 2023/2024
- Tipo
- Examen
- Contiene
- Preguntas y respuestas