PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which code segment should you use?

You are developing an application that consumes an external web service that returns the latest stock rate.
The application has two methods:
The getResults() method makes an AJAX web service request
The ShowRate() method displays the stock rate from the web service response
You need to ensure that the ShowRate() method always displays the latest stock rate.
Which code segment should you use?

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 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.)