C777 Web Development Applications Pre-Assessment

C777 Web Development Applications Pre-Assessment

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

What is the basic code you would need to define a named function that returns a value?

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

6

All-time users

6

Favorites

0

Last updated

4 years ago

Date created

Mar 1, 2020

Cards (55)

Section 1

(50 cards)

What is the basic code you would need to define a named function that returns a value?

Front

function myFunction() { return value; }

Back

Occasionally, you will want to declare a variable that can be accessed by more than one function or script block in your program. You will need to declare that variable outside of any function definition, usually at the start of your script. What term is used to describe this type of variable?

Front

Global variable

Back

Ezra wants to use an image to completely cover the background in a Web page. He wants to fill the entire background while maintaining the aspect ratio of the image. Which value should he assign to the CSS3 background-size property?

Front

cover

Back

Which of the following is a key difference between responsive site design and mobile site design?

Front

Content on a responsive site is easier to update and maintain because the site is not separate

Back

What does the optional CSS3 font-stretch property do?

Front

It specifies how the font should be spaced: expanded or condensed

Back

Which of the following is an event handler for the button object?

Front

onclick

Back

What can you use in CSS if you want to customize your own HTML element styles?

Front

The class and id selectors

Back

Ellen wants to make her existing HTML 4.01 Web page code easily adaptable to XML technologies, which she knows her company will be adopting in the near future. How can she accomplish this?

Front

By applying the stricter syntax rules of XML to her existing code to upgrade the code from HTML to XHTML

Back

You can use a CSS style sheet rule to override styles specified in a linked external style sheet. Which term is used to describe this style sheet behavior?

Front

Inheritance

Back

In your HTML5 form, you want users to enter a date in the Date field using a specific format, such as mm/dd/yyyy. Which HTML5 <input> element attribute can you use to require the specified format?

Front

pattern

Back

What HTML5 API can you use to provide location-based services, such as mapping?

Front

The Geolocation API

Back

What is the main purpose of Responsive Web Design (RWD)?

Front

To create sites that adapt gracefully to many different devices and screen sizes

Back

Liza wants to add continuous animation to her Web site, but she does not want to require users to install a browser plug-in. Which CSS3 property should she use to accomplish this?

Front

animation

Back

As a Web designer, you use the CSS Box Model to help configure the space around each HTML element so that the elements will not overlap or lay against one another when users render your Web pages in a browser. What constitutes the full size of an HTML element?

Front

The content plus the padding, border and margin surrounding it

Back

In JavaScript, what is casting?

Front

A technique for variable control in which a variable's value is changed from one data type to another

Back

Many Web designers try to control the way that Web page elements will render on the screen. A designer who uses a liquid layout:

Front

ensures that the page elements will change dynamically depending on the size of the browser window

Back

The principle of responsive design is essential for today's user interface designers. The term "responsive design" describes the ability to create pages that:

Front

respond to user screen size

Back

Consider the following code: var emeraldGreen = true; What variable data type does this snippet of code represent?

Front

Boolean

Back

CSS3 allows you to create rounded navigation menus without the use of:

Front

JavaScript or images

Back

The HTML5 File API can be used to:

Front

create preview thumbnail images during image uploads

Back

What two keys are created by the HTML5 <keygen> element?

Front

A private key and a public key

Back

Which type of CSS effect allows an element to gradually change styles from one to another?

Front

Transition

Back

Which of the following examples describes a syntax error?

Front

Forgetting to close the curly braces that designate a block of code for execution

Back

Mobile Web sites have several advantages over mobile apps. However, mobile apps make sense:

Front

with services such as gaming that use special features of the smartphone or device

Back

Prior to HTML5, what did Web developers use to conduct inline validation in HTML forms?

Front

JavaScript

Back

Rosa is creating a Web site that contains forms with HTML5 input types. What should she do before publishing the Web site?

Front

Test her pages on various browsers to see how they appear and perform

Back

Alya checked her code to verify that it complies with the syntax rules for her chosen HTML standard. In which process did Alya engage?

Front

Code validation

Back

Consider the following Cascading Style Sheets (CSS) rule: body {background-color: #008080;} Which is the "selector" portion of this rule?

Front

The portion that reads "body"

Back

Which technique can developers use to keep images from exceeding the screen width of users' mobile devices?

Front

Fluid images

Back

What does the term "user agent" mean?

Front

Any application, such as a Web browser or help engine, that renders HTML for display to users

Back

Which of the following is a global HTML5 attribute that can be used with the <button> element to specify whether form input will be sent to the server using get or post?

Front

formmethod

Back

HTML5 includes additions that are intended to help users enter information into forms when using touchscreen keyboards and small mobile device screens. Form fields should also be clearly defined so users know exactly what input is expected. These improvements should increase form completion rates. Which of these HTML5 additions are built-in processes that can check and guide user input into form fields before form submission?

Front

Validation tools

Back

For what purpose should Arnold use Cascading Style Sheets (CSS) when designing his Web pages?

Front

To determine how the HTML elements in his Web pages will appear

Back

You are creating a Web page that will display game graphics on the fly. You do not want to rely on browser plug-ins or third-party JavaScript libraries. Which of the following should you use?

Front

The Canvas API

Back

Consider the following code: <script> function mySum(a, b) { ...(your selection here) } alert(mySum(2,3)); </script> Which code properly supplies the alert with the sum of the two numbers?

Front

return a+b;

Back

The HTML5 specification for the <audio> element does not require a specific audio codec to be supported, but it does support three audio formats: MP3, Ogg and WAV. Which major browser supports all three audio formats?

Front

Chrome

Back

You are developing pages for your company's Web site. You create an HTML5 search field using the following code: <input type="search" name="search"> When you test the page on various browsers, the first browser supports the new input type and displays the search field. The second browser does not support this new input type and gracefully degrades. What type of field does the second browser display?

Front

A text box

Back

What makes a scripting language, such as JavaScript, different from a full programming language, such as C, C++ and Java?

Front

Scripting languages are generally interpreted without the explicit compilation step that full programming languages need to run

Back

You are reviewing HTML5 markup code that your co-worker created. You notice several <object> tags that reference external stand-alone, mini-applications. Which language did your co-worker most likely use to create these mini-applications?

Front

Java

Back

Kwan is using JavaScript extensively to add interactivity to his Web site. Contained within his script is a counter object that calculates a date based on a number input by the user. Which term describes the calculation process that Kwan's counter object performs?

Front

Method

Back

The <label> element enables you to add a label to a form field, such as an <input> element. What attribute of the <label> element is used to bind it with the associated form field?

Front

The for attribute

Back

You can use CSS to align images to text. Which property should you use if you do not want floating images to appear before or after text?

Front

The clear property

Back

What is the default value for the CSS3 transition-duration property?

Front

0

Back

Which technology can be defined as a vendor-neutral, cross-platform API that specifies how objects in a Web document can be referred to and manipulated through scripting languages?

Front

DOM

Back

What is the term for a piece of data that is to be operated upon or manipulated in some manner?

Front

Operand

Back

You are creating a mobile Web site for your company's polling service. Users will be completing polls and surveys about various topics. How can you simplify the page layout to increase this site's usability on mobile devices?

Front

Use radio buttons, check boxes and drop-down lists instead of text boxes wherever possible

Back

In general, what can you use the XMLHttpRequest object to do in your Web pages?

Front

Update content on Web pages without reloading them

Back

What is the term for a value containing data or code that is passed on to a function or procedure?

Front

Argument

Back

You are embedding a video in your HTML5 page and want to incorporate the Play, Pause, Rewind and Volume video controls. Which attribute is needed to accomplish this?

Front

controls="controls"

Back

One of the most important and most used features in any programming language is variables. You can use a variable to:

Front

store a value that can be accessed repeatedly in your script

Back

Section 2

(5 cards)

What should be your general goal as a Web developer?

Front

For all users to have a quality experience at your site, regardless of the size of their display

Back

You want to add the same functionality to various Web sites you have created for your school district without having to add the script to each HTML page. Where should you place your JavaScript code to accomplish this in the most efficient manner?

Front

In an external text file with the .js file name extension

Back

What selector could you use to select every <a> element whose href attribute value begins with mailto:?

Front

a[href^="mailto:" ]

Back

Which of the following HTML input types is designed specifically for users to enter rational integers or float values?

Front

number

Back

Which JavaScript event handler runs when a user closes a browser window?

Front

onunload

Back