stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
HTML5 Application Development Fundamentals, Exam 98-375 Flashcards | StudBud
Explore
/
HTML5 Application Development Fundamentals, Exam 98-375
HTML5 Application Development Fundamentals, Exam 98-375
88 terms
·
StudBud Administration
·
87 plays
HTML5 Application Development Fundamentals, Exam 98-375
Flashcards
88 cards
F
Practice quiz
P
Host live
L
Questions
88
Answers
1
How can we make a form more user friendly?
Add background colors
Add placeholder text
Add images
2
Which of the following codes a comment within CSS?
// ...
/* ... */
# ...d.
<!-- ... -->
3
Which of the following is the most common way to code JavaScript with a delayed effect?
wait()
setTimeout()
delay()
sleep()
4
Which JavaScript command is used to dynamically add new elements?
createNewTag(tag);
createElement(tag);
new element(tag);
5
Which of the following can you use to show and hide elements in a JavaScriptprogram?
show command
display attribute
show-hide attribute
innerHTML
6
Which new tag is designed to be self-contained content?
<header>
<article>
<section>
7
What mouse event handler triggers the JavaScript code when the user presses the mouse button?
onmousedown
onmousemove
onmouseover
8
Which API enables you to upload images and immediately display thumbnails in HTML documents?
Geolocation
WebSocket.
Web Workers
File
9
An individual statement in JavaScript ends in a ________.
semicolon
hash mark
closing parenthesis
period
10
If the <font> tag is not supported in HTML5, how is the font family for text changed?
All text must be displayed as Times New Roman
With cascading style sheets (CSS)
By using the <font-family> tag
11
What are valid prefixes for Firefox, Internet Explorer®, and Safari?
–moz-, -ms-, -webkit
–Ffox-, -Msoft-, -Saf-
-firefox-, –microsoft-, -safari-
12
Where is the correct place to insert a JavaScript?
The <head> section
The <body> section
Both the <head> section and the <body> section are correct
13
Which variable name is valid in JavaScript?
1January
todaysDate
First!Name
14
Which three code fragments define an HTML input control? *(More Than one Answer)*
<input type="search">
<input type="tel">
<input type="url">
<input type="optionbutton">
15
What does it mean - HTTP is a stateless protocol?
HTTP saves only form data.
HTTP does not retain data from session to session.
HTTP saves information for one session only
16
To apply a 60% transparency to an image or element, which property do you use?
transparency: 40
transparency: 0.4
opacity: 40
opacity: 0.4
17
What CSS style can be used to wrap text and other content around specific elements?
box-align
positioned-floats
wrap-text
18
JavaScript uses which property to change the current content of HTML elements?
innerHTML
modInnerHTML
HTMLinner
changeHTML
19
Which HTML5 element enables you to highlight blocks of text in an HTML document?
<yellow>
<mark>
<malk>
<highlight>
20
Which of the following enables you to adapt an HTML document to end-user devices?
The grid-template property
@import
The CSS Box model
Media queries
21
What command is used to write the drawing to the canvas?
context.moveTo(0,0);
context.lineTo(70,-70);
context.stroke( );
22
What technology will enable a Light Company to identify the current location of its customers?
gpslocator
geolocation
webSockets
23
How does a WHILE loop start?
while (i <= 10; i++)
while i = 1 to 10
while (i <= 10)
24
Which API uses ws rather than http when referencing URLs?
Geolocation
WebSocket
Web Workers
File
25
The GeoLocation API is used to find the latitude and longitude of a web user
True
False
26
Which Javascript code fragment returns
regular update
of user location
getCurrentPosition();
clearWatch();
watchPosition();
27
How can the developer validate the new HTML5 code?
If the code compiles with no errors, it is validated.
Use the W3C code validators.
Use an online simulator.
28
What properties can be set to control overflow when using block flow?
Height, width
Scroll, visible, hidden
Yes, no
29
What is the new syntax for the doctype declaration?
<!DOCTYPE HTML>
<HTML DOCTYPE>
30
SVG is an acronym for Scale Vector Graphic.
False
True
31
Which flexbox property makes child boxes flexible by height and width?
flex-wrap
flex-align
flex-child
flex
32
What CSS3 property creates rounded borders?
border-radius
border-rounded
border-size
33
How do you write "Hello World" in an alert box?
msgBox("Hello World");
alert("Hello World");
msg("Hello World");
alertBox("Hello World");
34
What can the developer use to test for the rotation of the physical device?
orientationchange
changedirection
onrotate
35
What change in HTML5 has changed how data is persistent across user sessions?
Media queries
Use of localStorage and sessionStorage
Use of improved cookies
36
Which code fragment prepares the HTML5 application to be used offline?
<html manifest="app.appcache">
<!DOCTYPE html>
<html lang="en">
37
The external JavaScript file must contain the <script> tag.
True
False
1
0
38
The canvas element requires JavaScript to create shapes.
True
False
39
Creating an SVG object in HTML5 does not require JavaScript.
False
True
40
When HTML links to CSS you have written, which is most likely to be a useful partof the link?
type = "style/CSS"
type = ‘text/css’
Web = "style/css"
CSS = “SOME_NAME.css”
41
In JavaScript, the touch object detects input from touch-enabled devices.
False
True
42
Which JavaScript built-in function tests for a numeric value?
isNaN()
isNumber()
isValid()
43
HTML
Hypertext Mark Language
Hypertext Markup Language
Hypertell Markup Language
Hypertext Markup Literature
44
Which two are valid JavaScript variables*(More than one answer)*
_int
1xyz
.Int
xyz1
45
A deprecated element or attribute is one that has been outdated by newer constructs.
True
False
46
What HTML5 features assist in handling various device sizes?
Cookies
Media queries
Plug-ins
47
Which of the following is not a data type used by JavaScript?
number
string
composite
Boolean
48
What are the parts of the CSS Box Model?
Content, padding, margin, and border
Float, absolute
Overflow, scrolling, visible, hidden
49
Which one of these is a Javascript library?
All Of Them
JQuery
React
Angular
50
The
<section>
tag defines sections in a document, such as chapters.
False
True
51
How to write an IF statement for executing some code if "i" is NOT equal to 5?
if (i != 5)
if i =! 5 then
if i <> 5
if (i <> 5)
52
What is the benefit of using animation libraries to add animations to a site?
No knowledge of JavaScript is required.
Does not require any additional programming.
Reduces development time by reusing existing functions.
53
Which Javascript code fragment fetches current position of a user?
clearWatch();
watchPosition();
getCurrentPosition();
54
How do you call a function named "myFunction"?
myFunction()
call function myFunction()
call myFunction()
55
What are some touch-enabled best practices to test for?
Prevent zooming, prevent scrolling, and render carefully.
Allow email and messaging.
Use as many new HTML5 features as possible.
56
The
<header>
tag specifies an introduction or a group of navigation elements for a document
0
1
False
True
57
What optional attribute can be added to automatically start the video?
autoplay
preload
play
58
Javascript is a
All Of The Above
Scripting Language
Markup Language
Style Sheet Language
59
Which JavaScript command is used to locate and access an element on the page?
getHTMLTag(tagname)
getElementById(idname)
getElement(name)
60
Which tag is used to display multiple levels of headings and subheadings?
<header>
<section>
<hgroup>
61
How can you display a static image in place of the video while the video is downloading
Add a poster attribute to the video tag.
Add an image attribute to the video tag
Add an src attribute
62
HTML has responsibility for content, and CSS for _______.
Content
Style
Coding
63
Inside which HTML element do we put the JavaScript?
<javascript>
<js>
<script>
<scripting>
64
What API can be used to provide a chat application?
JavaScript
web workers
WebSockets
65
Which of the following is the general format of the video element?
<movie src="file.mp4" width="X" height="Y">
<video href="file.mp4" width="X" height="Y">
<video src="file.mp4" width="X" height="Y">
<movie href="file.mp4" width="X" height="Y">
66
How does a FOR loop start?
for (i <= 5; i++)
for i = 1 to 5
for (i = 0; i <= 5; i++)
for (i = 0; i <= 5)
67
What is the format for the HTML5 tag to validate an email address?
<input type = “text” id = “email”>
<input type = “url” name = “email”>
<input type = “email” name = “email”>
68
How do you create a function in JavaScript?
function = myFunction()
function:myFunction()
function myFunction()
69
An HTML tag that doesn't require an end tag is called a(n)_____________ tag.
Special
em
None
Empty
70
What is the correct syntax for referring to an external script called "win.js"?
<script src="win.js">
<script href="win.js">
<script name="win.js">
71
Which of the following is the syntax for creating a hyperlink in HTML?
<link>http://www.example.com</link >
<link href="http://www.example.com">link</a>
<http://www.example.com>
<a href="http://www.example.com"> link text</a>
72
What technique registers that the user is rotating an image on the screen?
A gesture, which is touching the screen with two fingers.
users cannot rotate an image using touch-enable technology.
Touch events to indicate the start and stop of the rotation.
73
What is the new syntax for the canvas tag?
<canvas id = “directions” width = “400” height = “500”>
<canvas name = “directions”>
<canvas width = “400” height = “500”>
74
The J in AJAX stands for
Java
JQuery
Javascript
JSON
75
Which of the following tags are required on every Web page?*(More Than One Answer)*
<head>
<title>
<body>
<html>
76
Which of the following is the general format of the audio element?
<sound src="sample.mp3" controls>
<audio href="sample.mp3" controls>
<sound href="sample.mp3" controls="controls">
<audio src="sample.mp3" controls="controls">
77
How does the developer draw on the canvas?
Inserting a previously created image.
Using a script, such as JavaScript.
Using native HTML5 commands.
78
Both canvas and SVG require which of the following?
Microsoft Silverlight
A large amount of storage space or bandwidth
JavaScript
An external drawing program, such as Microsoft Paint
79
What allows HTML5 applications to work in an offline state?
AppCache
Cookies
HTTP
80
What is the correct syntax for defining a new variable in JavaScript?
new var firstName;
var int number;
var lastName;
81
How to write an IF statement in JavaScript?
if (i == 5)
if i = 5{}
if i == 5 then
if i = 5 then
82
Which tag is used with the <figure> tag to display an image?
<src>
<a>
<img>
<fig>
83
What does it mean when a tag has been deprecated?
It is new to HTML5.
It is outdated and no longer supported.
It has been replaced by another tag.
84
Which statement should Mark use to include a font that is not pre-installed on client machines?
@font-face
font-family
includeFont
85
AppCache, localStorage, and sessionStorage are forms of
Namespaces
Web storage
Standards
HTML commands
86
CSS
Cache Style Sheets
Cascading Style Sheets
Style Sheets
Cascading Script Sheets
87
What box property is used to set the direction of the content?
box-orient
box-direction
box-align
88
What does "V" stand for in the file type SVG?
Vector
Vertical
Video
Variable