PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which code segment should you insert at line NJ03?

###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 user can annotate news items according to the requirements.
Which code segment should you insert at line NJ03?

Which event handler should you add to newsltem.js?

###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 code to meet the requirements for handling changes in the
annotation area of the newsItem.html page.
Which event handler should you add to newsltem.js?

How should you build the code segment?

DRAG DROP
You are creating a function by using JavaScript. The function accepts an object as the parameter and
returns a string that identifies the data type of the object.
You have the following requirements:
The function must return “Number” if the object is a number
The function must return “String” if the object is a string
The function must return “Unknown” if the object is neither a number nor a string
You need to implement the function to meet the requirements.
How should you build the code segment? (To answer, drag the appropriate word to the correct
location in the code segment. Each word 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 segment should you insert at line NP04?

###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 navigation requirements for displaying news items are met.
Which code segment should you insert at line NP04?

Which line of code should you use?

DRAG DROP
You are creating a web worker for an HTML5 application.
The following tasks must be performed from within the web worker:
Register an event listener for the web worker
Start and stop the web worker
You need to define a function that performs the required tasks.
Which line of code should you use? (To answer, drag the appropriate line or lines of code to the
correct location or locations. 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 segment or segments should you use?

DRAG DROP
You are developing an application for an online retailer. The company ships only to certain countries.
The application must:
Store a list of country codes in an array
Validate the country code of the shipping address against the countries array
Include a Boolean value in the array that indicates whether or not you can ship to the country
Display a list of countries that can be shipped to if the user inputs a code for a country that the
retailer cannot ship to
You need to develop the application to meet the requirements.
Which code segment or segments should you use? (To answer, drag the appropriate code segment
or segments from the list of code segments to the correct location or locations in the work 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 or scroll to view content.)

Which code segment should you insert at line NP19?

###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 code to meet the requirements for displaying content from
search results.
Which code segment should you insert at line NP19?