Which two code segments should you use?
You are creating a class named Sedan that must inherit from the Car class. The Sedan class must modifythe
inherited fourDoor () method.
The Car class is defined as follows.
Future instances of Sedan must be created with the overridden method. You need to write the code to
implement the Sedan class.
Which two code segments should you use? (Each correct answer presents part of the solution. Choose two.)
Which tag should you use?
You are modifying a blog site to improve search engine readability.
You need to group relevant page content together tomaximize search engine readability.
Which tag should you use?
Which code segment should you use?
You are developing application web form by using HTML5 and JavaScript.
You need to prevent users from submitting form datamore than once.
Which code segment should you use?
Which HTML5 element should you use?
You are developing an HTML5 web application for a surveyor company that displays topographic images.
The application must:
Display the topographic images at different zoom levels without loss of detail
Print the topographic images without loss of detail
Work from only one source file for each topographicimage
You need to ensure that the topographic images display according to the requirements.
Which HTML5 element should you use?
Which tag should you use?
You are modifying a website.
The body of the page will be divided into two sections:
A content section will contain blog posts and comments.
An area on the right-hand side will contain advertisements.
The page is defined by the following HTML.
The site must conform to HTML5 standards and must use HTML5 semantic tags.
You need to ensure that the advertisements are on the rightmost section of the page.
Which tag should you use?
Which expression should you insert into each function?
You are validating user input by using JavaScript and regular expressions.
A group of predefined regular expressions will validate two input fields:
An email address in a function named validateEmail
A nine-digit number that allows optional hyphens after the second and fifth character in a function
named validateSSN
You need to use the correct expression to validate the input.
Which expression should you insert into each function?
(To answer, drag the appropriate regular expressionstatement to the correct location. Each regular expression
statement may be used once, more than once, or not at all. You may need to drag the split bar between panes
or scroll to view content.)
How should you develop the form?
You are developing a form that captures a user’s email address by using HTML5 and jQuery.
The form must capture the email address and return it as a query string parameter. The query string
parameter must display the @ symbol that is used inthe email address.
You need to implement this functionality.
How should you develop the form?
(To answer, drag the appropriate code segment to the correct target or targets in the answer area. Each code
segment may be used once, more than once, or not atall. You may need to drag the split bar between panes or
scroll to view content.)
You need to ensure that the slider control meets the requirements
You are developing a web page for runners who register for a race. The page includes a slider control that
allows users to enter their age.
You have the following requirements:
All runners must enter their age.
Applications must not be accepted from runners lessthan 18 years of age or greater than 90 years.
The slider control must be set to the average age (37) of all registered runners when the page is first
displayed.
You need to ensure that the slider control meets the requirements.
What should you do? (To answer, drag the appropriate word or number to the correct location in the answer
area. Each word or number may be used once, more than once, or not at all. You may need to drag the split
bar between panes or scroll to view content.)
How should you write the code?
You are developing an online shopping application that accepts credit cards for payment.
If the credit card number is invalid, the application must:
Generate an error
Assign “200” to the error number
Assign “Invalid” to the error description
You need to write the code that meets the requirements.
How should you write the code? (To answer, drag theappropriate code segment or segments to the correct
location in the answer area. Each code segment may be used once, more than once, or not at all.
You may need to drag the split bar between panes orscroll to view content.)
How should you write the code?
You are developing an online shopping application that accepts credit cards for payment.
If the credit card number is invalid, the application must:
Generate an error
Assign “200” to the error number
Assign “Invalid” to the error description
You need to write the code that meets the requirements.
How should you write the code? (To answer, select the appropriate option from the drop-down list in the answer
area.)