WEB DEV TOUCHSTONE EXAM
PREPARATION TEST BANK WITH CORRECT
ANSWERS
●● 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(background.gif) top right;
height:662px;
}
Where on the page will the image (background.gif) 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>
PREPARATION TEST BANK WITH CORRECT
ANSWERS
●● 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(background.gif) top right;
height:662px;
}
Where on the page will the image (background.gif) 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>