Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
81 Cards in this Set
- Front
- Back
You would like to create a web application by using HTML5, JavaScript, and CSS3. |
Correct answers: A, B, C, and D
A. Correct: Visual Studio Professional 2012 provides web templates for creating web |
|
You would like to create a Windows 8 application by using HTML5, JavaScript, and |
Correct answers: A, B, C, and E |
|
You would like to create web applications and Windows 8 Windows Store applications |
Correct answer: D
|
|
You would like to create a Windows 8 application by using Blend and HTML5, |
Correct answers: C and D
|
|
On which panel can you see a hierarchically structured view of the DOM? |
Correct answer: A
|
|
Which panel can you use to access a list of the HTML elements, controls, and media |
Correct answer: B
A.Incorrect: The Projects panel provides a file and folder view of the projects in your |
|
You want to create an expando attribute on several tags that display vehicles forsale. The expando attribute will store the VIN (vehicle identification number) of the vehicle for sale. Which of the following is the most appropriate example of creating the expando attribute? A. 1965 VW Beetle B. 1965 VW Beetle C. 1965 VW Beetle D. 1965 VW Beetle |
Correct answer: C
|
|
Which technology is HTML5 preceded by and derived from? |
Correct answer: A
|
|
How should you start each HTML5 document? C. D. |
Correct answer: D
cannot be located at the beginning of the HTML5 document. C. Incorrect: The tag must be contained within the element, so it can- not be located at the beginning of the HTML5 document. D. Correct: The indicates to the browser that this is an HTML5 document. |
|
You want to use the disabled Boolean attribute on a text box. How can you accomplish |
Correct answers: A, B, and D
|
|
You want to embed a Flash file called myFlash.swf in your HTML document. Which is |
Correct answer: D
|
|
You want to create a drawing of a machine that Contoso, Ltd., will be selling on its |
Correct answer: A
|
|
Your application prompts the user to enter his or her age, which is placed in an age |
Correct answer: C
|
|
Which of the following represent valid variable declarations? (Choose all that apply.) |
Correct answers: B, C, D, and F
A. Incorrect: You cannot use a JavaScript keyword for a variable name, and switch is a |
|
In your application, you want to display a personalized message to the user, if the |
Correct answer: B
|
|
You are creating a new Windows 8 application, and you want to set up TDD for your |
Correct answer: B
|
|
What are the steps for TDD? |
Correct answer: B
|
|
Where should your JavaScript code be placed? B. Just before the tag. C. You should always place your JavaScript code in separate files, external to your HTML document. D. Inside the element, at the top. |
Correct answer: C
reuse, and inline code might reference elements that are not yet loaded. B. Incorrect: Placing your JavaScript code in the tag does not promote reuse. C. Correct: Placing your JavaScript code in separate files, external to your HTML document, promotes reuse. D. Incorrect: Placing your JavaScript code in the element does not promote reuse, and inline code might reference elements that are not yet loaded. |
|
You have two arrays of strings, customers and employees, and you want to combine |
Correct answer: A
|
|
You want to obtain a list of all elements whose tag name is div, and you need to |
Correct answer: C
|
|
The free editions of Visual Studio 2012 are |
the Express editions: Visual Studio |
|
MS blend Assets panel contains |
a list of all available assets in the project. |
|
MS blend Projects panel contains |
a file and folder view of the projects in the current solution. |
|
MS blend Style Rules panel contains |
a list of all style sheets attached to the current |
|
MS blend Device panel enables you to |
run the application by using simulations of different screen sizes and orientations. |
|
MS blend Live DOM panel enables you to |
select an element and apply style rules to it. |
|
An html element is composed of |
a starting tag, inner content, and an ending tag. |
|
Browsers ignore tags |
that are not recognized. |
|
HTML5 originates from |
HTML 4.01, not from XHTML. |
|
The W3C is responsible for |
developing open standards for the web. |
|
HTML elements provide_____, CSS style sheets provide_____, JavaScript provides _________ |
HTML elements provide structure, CSS style sheets provide presentation, and |
|
Attribute values should always be |
quoted using either single quotes or double quotes. |
|
Self-closing tags are |
tags whose beginning and ending tags are together to create an |
|
Self-closing tags should be used only |
with elements that can- |
|
Void elements cannot have |
content |
|
Expando attributes are |
attributes that you define and are also known as author- |
|
Are there conditional comments in html? |
You can use conditional comments to add a browser-specific source that will work with |
|
HTML entities are |
special characters and can be embedded in your HTML document |
|
Nonbreaking spaces can be used to |
ender several contiguous spaces. You can also use |
|
id attribute specifies |
a unique identifier for an element. |
|
You can use the element to |
provide reuse of HTML by embedding an HTML |
|
Use the sandbox attribute on the tag to help |
prevent malware and annoy- |
|
Use the seamless attribute on the tag to |
indicate that the source content is to |
|
The tag creates a |
hyperlink to either an external HTML document or an internal |
|
The element is |
a void element and is used to add an image reference to your |
|
JPG is best for displaying |
photos on HTML pages due to its compression |
|
GIF is best |
small images with transparency and embedded animations |
|
PNG is best for |
storage |
|
SVG is best for |
drawings due |
|
You can create a clickable image map by |
using the and elements. |
|
You can use the tag to |
provide simple content embedding. |
|
You can use the tag to |
provide content embedding with greater flexibility because it can have nested elements. |
|
JavaScript is untyped. Which means.... |
when you create a variable, you don’t need to specify its type. |
|
JavaScript defines the following built-in objects: |
the global object, the Object object, the Array object, the String object, the Boolean object, the Number object, the Math object, the Date object, the RegExp object, the JSON object, |
|
In JavaScript, all numeric values are internally represented as |
floating point values |
|
The typeof operator is a ________ that returns a string that indicates the ______ |
The typeof operator is a unary operator that returns a string that indicates the oper- |
|
Use __________for variable names. |
Use camel casing for variable names. |
|
Scoping is the context within a computer program in which a variable name |
is valid |
|
In JavaScript, there are essentially two scopes |
global and local, but you can create |
|
Use two equal signs (==) to test for |
equality |
|
use three equal signs (===) to test for |
same type and equality. |
|
The while loop executes |
zero to many times |
|
the do loop executes |
one to many |
|
The for loop executes |
zero to many times and has a counter variable. |
|
Use the break keyword to |
exit from the current loop |
|
Use the try, catch, and finally keywords |
to handle exceptions. |
|
_________can be used to perform TDD with web applications.
________can be used to perform TDD with Windows 8 applications.
__________is an open-source package management system for the .NET platform that |
QUnit can be used to perform TDD with web applications. QUnit-Metro can be used to perform TDD with Windows 8 applications. NuGet is an open-source package management system for the .NET platform that |
|
When creating tests, always create a |
failing test first, and then add code to make the |
|
Always try to keep your JavaScript code |
separate from your HTML |
|
For best performance, place the |
bottom of the HTML docu- |
|
set a breakpoint in your JavaScript by clicking the statement and pressing |
F9 |
|
You can step through code by pressing |
F11 (Debug | Step Into), F10 (Debug | Step |
|
An array is a |
collection object that has a sequence of items that you can access and |
|
Use the length property on |
retrieve the size of the array. |
|
A function that is defined on an object is called |
a method |
|
Events are based on the |
publisher or subscriber pattern |
|
To subscribe to an event, you can use the |
addEventListener function. |
|
To cancel event |
stopPropagation function on the Event object |
|
To unsubscribe |
use the removeEventListener function. |
|
To stop default behavior, call the |
preventDefault method on the Event object |
|
To add an event subscription on an HTML element, add the |
“on” prefix to the event
|