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
modify the 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 line or lines of code should you use?
DRAG DROP
You are developing an airline reservation website by using HTML5 and JavaScript. A page on the site
allows users to enter departure and destination airport information and to search for tickets.
You have the following requirements:
Users must be able to save information in the application about their favorite destination airport.
The airport information must be displayed in the destination text box whenever the user returns to
the page.
You need to develop the site to meet the requirements.
Which line or lines of code should you use? (To answer, drag the appropriate command or
commands from the list of commands to the correct location or locations in the work area. Each line
of code 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.)
Which code segments should you use?
###BeginCaseStudy###
Case Study: 1
Southbridge Videos
Background
Southbridge Video rents and sells video games, movies, and other multimedia content. The
company is currently expanding its operations. Southbridge video is developing a Windows
Store news reader and social media app. Users will be able to view and interact with news
stories that are related to the video game, entertainment, and related industries. Southbridge
Video employees will also use the app to manage sales leads, order fulfillment, and customerservice related activities.
Business Requirements
The app has the following requirements.
Email
Users must be able to email news items to their contacts.
Navigation
• Easy navigation access must be available to move to the next and previous pages.
• Users searching for specific news items must be able to navigate directly to an item
from the search results pane.
News items
• When a user selects a news item on newsPage.html, the news item should be
displayed in the newsltem.html page.
• The app must periodically retrieve new news items on the newsPage.html page.
• The app must allow the user to save annotated news.
• The app must display a short title for each news item.
Search capabilities
• The app must allow users to search within available news items to locate articles of
interest.
• The app must provide search suggestions for users.
Authentication
• Employees must be able to view the sales leads, order fulfillment, and customerservice related pages.
• Authenticated users must be able to save news items to read at a later time.
• Authenticated users must be able to add and save handwritten notes to the news items.
• The app must allow users to choose whether their credentials will be saved after they first log in. User credentials must be saved by default.
Technical Requirements
Email
• When a user clicks the To button to email news items, only contacts that have email
addresses should be displayed.
• When multiple contacts are selected, the email addresses must be displayed in the To
text box as a semi-colon-delimited string.
News items
The app must periodically retrieve new items from a web service. The app must display a
progress indicator while retrieving new items.
The news feed service must respond to all requests within 15 seconds. The app must not
throw an error if the service does not respond within the allotted time.
Titles for news items must not overflow into other elements on the page.
Authenticated users must be able to add handwritten notes to the news items by using a stylus
or the mouse. The app must support saving annotations along with the news item. The app
must cancel the navigation from newsltem.html to newsPage.html if there are unsaved
changes in the annotations area.
Search capabilities
The app must retrieve a list of phrases from the news service and provide them as search
suggestions to users.
Authentication
• Users connected to the corporate network must authenticate against an Active
Directory server.
• Users outside of the corporate network must authenticate by using forms-based
authentication.
• User credentials must not be transmitted in plain text.
Application Structure
Relevant portions of the app files are shown below. (Line numbers in the code segments are
included for reference only and include a two-character prefix that denotes the specific file to
which they belong.)
###EndCaseStudy###
You need to ensure that the requirements for capturing user input on the newsltem.html
page are met.
Which code segments should you use? (Each correct answer presents part of the solution.
Choose all that apply.)
Which tag should you use?
You are modifying a blog site to improve search engine readability.
You need to group relevant page content together to maximize search engine readability.
Which tag should you use?
Which layout should you choose?
###BeginCaseStudy###
Case Study: 1
Southbridge Videos
Background
Southbridge Video rents and sells video games, movies, and other multimedia content. The
company is currently expanding its operations. Southbridge video is developing a Windows
Store news reader and social media app. Users will be able to view and interact with news
stories that are related to the video game, entertainment, and related industries. Southbridge
Video employees will also use the app to manage sales leads, order fulfillment, and customerservice related activities.
Business Requirements
The app has the following requirements.
Email
Users must be able to email news items to their contacts.
Navigation
• Easy navigation access must be available to move to the next and previous pages.
• Users searching for specific news items must be able to navigate directly to an item
from the search results pane.
News items
• When a user selects a news item on newsPage.html, the news item should be
displayed in the newsltem.html page.
• The app must periodically retrieve new news items on the newsPage.html page.
• The app must allow the user to save annotated news.
• The app must display a short title for each news item.
Search capabilities
• The app must allow users to search within available news items to locate articles of
interest.
• The app must provide search suggestions for users.
Authentication
• Employees must be able to view the sales leads, order fulfillment, and customerservice related pages.
• Authenticated users must be able to save news items to read at a later time.
• Authenticated users must be able to add and save handwritten notes to the news items.
• The app must allow users to choose whether their credentials will be saved after they first log in. User credentials must be saved by default.
Technical Requirements
Email
• When a user clicks the To button to email news items, only contacts that have email
addresses should be displayed.
• When multiple contacts are selected, the email addresses must be displayed in the To
text box as a semi-colon-delimited string.
News items
The app must periodically retrieve new items from a web service. The app must display a
progress indicator while retrieving new items.
The news feed service must respond to all requests within 15 seconds. The app must not
throw an error if the service does not respond within the allotted time.
Titles for news items must not overflow into other elements on the page.
Authenticated users must be able to add handwritten notes to the news items by using a stylus
or the mouse. The app must support saving annotations along with the news item. The app
must cancel the navigation from newsltem.html to newsPage.html if there are unsaved
changes in the annotations area.
Search capabilities
The app must retrieve a list of phrases from the news service and provide them as search
suggestions to users.
Authentication
• Users connected to the corporate network must authenticate against an Active
Directory server.
• Users outside of the corporate network must authenticate by using forms-based
authentication.
• User credentials must not be transmitted in plain text.
Application Structure
Relevant portions of the app files are shown below. (Line numbers in the code segments are
included for reference only and include a two-character prefix that denotes the specific file to
which they belong.)
###EndCaseStudy###
You need to ensure that the layout for newsPage.html meets the requirements.
Which layout should you choose?
Which code segment should you use?
Which code segment should you insert at line GC04?
###BeginCaseStudy###
Case Study: 1
Southbridge Videos
Background
Southbridge Video rents and sells video games, movies, and other multimedia content. The
company is currently expanding its operations. Southbridge video is developing a Windows
Store news reader and social media app. Users will be able to view and interact with news
stories that are related to the video game, entertainment, and related industries. Southbridge
Video employees will also use the app to manage sales leads, order fulfillment, and customerservice related activities.
Business Requirements
The app has the following requirements.
Email
Users must be able to email news items to their contacts.
Navigation
• Easy navigation access must be available to move to the next and previous pages.
• Users searching for specific news items must be able to navigate directly to an item
from the search results pane.
News items
• When a user selects a news item on newsPage.html, the news item should be
displayed in the newsltem.html page.
• The app must periodically retrieve new news items on the newsPage.html page.
• The app must allow the user to save annotated news.
• The app must display a short title for each news item.
Search capabilities
• The app must allow users to search within available news items to locate articles of
interest.
• The app must provide search suggestions for users.
Authentication
• Employees must be able to view the sales leads, order fulfillment, and customerservice related pages.
• Authenticated users must be able to save news items to read at a later time.
• Authenticated users must be able to add and save handwritten notes to the news items.
• The app must allow users to choose whether their credentials will be saved after they first log in. User credentials must be saved by default.
Technical Requirements
Email
• When a user clicks the To button to email news items, only contacts that have email
addresses should be displayed.
• When multiple contacts are selected, the email addresses must be displayed in the To
text box as a semi-colon-delimited string.
News items
The app must periodically retrieve new items from a web service. The app must display a
progress indicator while retrieving new items.
The news feed service must respond to all requests within 15 seconds. The app must not
throw an error if the service does not respond within the allotted time.
Titles for news items must not overflow into other elements on the page.
Authenticated users must be able to add handwritten notes to the news items by using a stylus
or the mouse. The app must support saving annotations along with the news item. The app
must cancel the navigation from newsltem.html to newsPage.html if there are unsaved
changes in the annotations area.
Search capabilities
The app must retrieve a list of phrases from the news service and provide them as search
suggestions to users.
Authentication
• Users connected to the corporate network must authenticate against an Active
Directory server.
• Users outside of the corporate network must authenticate by using forms-based
authentication.
• User credentials must not be transmitted in plain text.
Application Structure
Relevant portions of the app files are shown below. (Line numbers in the code segments are
included for reference only and include a two-character prefix that denotes the specific file to
which they belong.)
###EndCaseStudy###
You need to ensure that employees are authenticated across public networks according to
the requirements.
Which code segment should you insert at line GC04?
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 topographic image
You need to ensure that the topographic images display according to the requirements.
Which HTML5 element should you use?
Which code segment should you use to replace the code in line EJ04?
###BeginCaseStudy###
Case Study: 1
Southbridge Videos
Background
Southbridge Video rents and sells video games, movies, and other multimedia content. The
company is currently expanding its operations. Southbridge video is developing a Windows
Store news reader and social media app. Users will be able to view and interact with news
stories that are related to the video game, entertainment, and related industries. Southbridge
Video employees will also use the app to manage sales leads, order fulfillment, and customerservice related activities.
Business Requirements
The app has the following requirements.
Email
Users must be able to email news items to their contacts.
Navigation
• Easy navigation access must be available to move to the next and previous pages.
• Users searching for specific news items must be able to navigate directly to an item
from the search results pane.
News items
• When a user selects a news item on newsPage.html, the news item should be
displayed in the newsltem.html page.
• The app must periodically retrieve new news items on the newsPage.html page.
• The app must allow the user to save annotated news.
• The app must display a short title for each news item.
Search capabilities
• The app must allow users to search within available news items to locate articles of
interest.
• The app must provide search suggestions for users.
Authentication
• Employees must be able to view the sales leads, order fulfillment, and customerservice related pages.
• Authenticated users must be able to save news items to read at a later time.
• Authenticated users must be able to add and save handwritten notes to the news items.
• The app must allow users to choose whether their credentials will be saved after they first log in. User credentials must be saved by default.
Technical Requirements
Email
• When a user clicks the To button to email news items, only contacts that have email
addresses should be displayed.
• When multiple contacts are selected, the email addresses must be displayed in the To
text box as a semi-colon-delimited string.
News items
The app must periodically retrieve new items from a web service. The app must display a
progress indicator while retrieving new items.
The news feed service must respond to all requests within 15 seconds. The app must not
throw an error if the service does not respond within the allotted time.
Titles for news items must not overflow into other elements on the page.
Authenticated users must be able to add handwritten notes to the news items by using a stylus
or the mouse. The app must support saving annotations along with the news item. The app
must cancel the navigation from newsltem.html to newsPage.html if there are unsaved
changes in the annotations area.
Search capabilities
The app must retrieve a list of phrases from the news service and provide them as search
suggestions to users.
Authentication
• Users connected to the corporate network must authenticate against an Active
Directory server.
• Users outside of the corporate network must authenticate by using forms-based
authentication.
• User credentials must not be transmitted in plain text.
Application Structure
Relevant portions of the app files are shown below. (Line numbers in the code segments are
included for reference only and include a two-character prefix that denotes the specific file to
which they belong.)
###EndCaseStudy###
You need to implement the requirements for sending news items to multiple contacts.
Which code segment should you use to replace the code in line EJ04?
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?