PrepAway - Latest Free Exam Questions & Answers

Category: 70-481

Exam 70-481: Essentials of Developing Windows Store Apps using HTML5 and JavaScript

Which code segment should you use to replace the code in line EJ04?

Case Study: 1, Scenario 1
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 customer-service 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 searchresults
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 itemson 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 customer-service 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 shouldbe
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 aweb 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 handwrittennotes 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 unsavedchanges 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 plaintext.
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.)




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 code segment should you insert at line CM13?

Case Study: 2 Scenario 2
Background
You are developing a Windows Store app by using HTML5, JavaScript, and CSS3. The app will be used to
access details about products that your company sells.
Business Requirements
The app must do all of the following:
Be available to customers in many different countries.
Display a list of product categories.
Display the products for a selected category.
Display details of a selected product.
Display images of each product one at a time in avertical presentation.
Provide a link to an About section in the Settings pane.
Update product data on a daily basis.
Allow the user to view the last selected product while the app is offline.
Be deployed in the Windows Store.
Technical Requirements
General
When the user restarts the app, the app must start in the state it was in when it was last used.
App settings controls must be 346 pixels wide.
The app must optimize bandwidth use and performance.
Security
The app must use an enterprise certificate.
The user must provide valid credentials to accessthe app.
After user authentication, the app must use stored credentials.
User accounts will be validated against a pre-existing enterprise service.
App Architecture
Service calls must be separated from the user interface.
The app must follow the MVC design pattern.
Service classes can be written in C++, C#, VB, orJavaScript.
The app must communicate with pre-existing enterprise services.
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.)


You need to implement the getStoredCredentialsFull method. Which code segment should you insert at line
CM13?

Which attribute should you add to the DIV element in line AB07?

Case Study: 2 Scenario 2
Background
You are developing a Windows Store app by using HTML5, JavaScript, and CSS3. The app will be used to
access details about products that your company sells.
Business Requirements
The app must do all of the following:
Be available to customers in many different countries.
Display a list of product categories.
Display the products for a selected category.
Display details of a selected product.
Display images of each product one at a time in avertical presentation.
Provide a link to an About section in the Settings pane.
Update product data on a daily basis.
Allow the user to view the last selected product while the app is offline.
Be deployed in the Windows Store.
Technical Requirements
General
When the user restarts the app, the app must start in the state it was in when it was last used.
App settings controls must be 346 pixels wide.
The app must optimize bandwidth use and performance.
Security
The app must use an enterprise certificate.
The user must provide valid credentials to accessthe app.
After user authentication, the app must use stored credentials.
User accounts will be validated against a pre-existing enterprise service.
App Architecture
Service calls must be separated from the user interface.
The app must follow the MVC design pattern.
Service classes can be written in C++, C#, VB, orJavaScript.
The app must communicate with pre-existing enterprise services.
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.)


You need to ensure that the about.html page is displayed according to the requirements. Which attribute
should you add to the DIV element in line AB07?

Which tool should you use to validate the app?

Case Study: 2 Scenario 2
Background
You are developing a Windows Store app by using HTML5, JavaScript, and CSS3. The app will be used to
access details about products that your company sells.
Business Requirements
The app must do all of the following:
Be available to customers in many different countries.
Display a list of product categories.
Display the products for a selected category.
Display details of a selected product.
Display images of each product one at a time in avertical presentation.
Provide a link to an About section in the Settings pane.
Update product data on a daily basis.
Allow the user to view the last selected product while the app is offline.
Be deployed in the Windows Store.
Technical Requirements
General
When the user restarts the app, the app must start in the state it was in when it was last used.
App settings controls must be 346 pixels wide.
The app must optimize bandwidth use and performance.
Security
The app must use an enterprise certificate.
The user must provide valid credentials to accessthe app.
After user authentication, the app must use stored credentials.
User accounts will be validated against a pre-existing enterprise service.
App Architecture
Service calls must be separated from the user interface.
The app must follow the MVC design pattern.
Service classes can be written in C++, C#, VB, orJavaScript.
The app must communicate with pre-existing enterprise services.
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.)


You are preparing to deploy the app. You need to ensure that the app meets the deployment requirements.
Which tool should you use to validate the app?

Which code segment should you insert at line CM06?

Case Study: 2 Scenario 2
Background
You are developing a Windows Store app by using HTML5, JavaScript, and CSS3. The app will be used to
access details about products that your company sells.
Business Requirements
The app must do all of the following:
Be available to customers in many different countries.
Display a list of product categories.
Display the products for a selected category.
Display details of a selected product.
Display images of each product one at a time in avertical presentation.
Provide a link to an About section in the Settings pane.
Update product data on a daily basis.
Allow the user to view the last selected product while the app is offline.
Be deployed in the Windows Store.
Technical Requirements
General
When the user restarts the app, the app must start in the state it was in when it was last used.
App settings controls must be 346 pixels wide.
The app must optimize bandwidth use and performance.
Security
The app must use an enterprise certificate.
The user must provide valid credentials to accessthe app.
After user authentication, the app must use stored credentials.
User accounts will be validated against a pre-existing enterprise service.
App Architecture
Service calls must be separated from the user interface.
The app must follow the MVC design pattern.
Service classes can be written in C++, C#, VB, orJavaScript.
The app must communicate with pre-existing enterprise services.
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.)


You need to implement the saveCredentials method. Which code segment should you insert at line CM06?

Which type of object should you create?

Case Study: 2 Scenario 2
Background
You are developing a Windows Store app by using HTML5, JavaScript, and CSS3. The app will be used to
access details about products that your company sells.
Business Requirements
The app must do all of the following:
Be available to customers in many different countries.
Display a list of product categories.
Display the products for a selected category.
Display details of a selected product.
Display images of each product one at a time in avertical presentation.
Provide a link to an About section in the Settings pane.
Update product data on a daily basis.
Allow the user to view the last selected product while the app is offline.
Be deployed in the Windows Store.
Technical Requirements
General
When the user restarts the app, the app must start in the state it was in when it was last used.
App settings controls must be 346 pixels wide.
The app must optimize bandwidth use and performance.
Security
The app must use an enterprise certificate.
The user must provide valid credentials to accessthe app.
After user authentication, the app must use stored credentials.
User accounts will be validated against a pre-existing enterprise service.
App Architecture
Service calls must be separated from the user interface.
The app must follow the MVC design pattern.
Service classes can be written in C++, C#, VB, orJavaScript.
The app must communicate with pre-existing enterprise services.
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.)


You are designing the architecture for the app. Youneed to ensure that the logical design fulfills the design
pattern requirements. Which type of object should you create?

Which code segment should you insert at line DF13?

Case Study: 2 Scenario 2
Background
You are developing a Windows Store app by using HTML5, JavaScript, and CSS3. The app will be used to
access details about products that your company sells.
Business Requirements
The app must do all of the following:
Be available to customers in many different countries.
Display a list of product categories.
Display the products for a selected category.
Display details of a selected product.
Display images of each product one at a time in avertical presentation.
Provide a link to an About section in the Settings pane.
Update product data on a daily basis.
Allow the user to view the last selected product while the app is offline.
Be deployed in the Windows Store.
Technical Requirements
General
When the user restarts the app, the app must start in the state it was in when it was last used.
App settings controls must be 346 pixels wide.
The app must optimize bandwidth use and performance.
Security
The app must use an enterprise certificate.
The user must provide valid credentials to accessthe app.
After user authentication, the app must use stored credentials.
User accounts will be validated against a pre-existing enterprise service.
App Architecture
Service calls must be separated from the user interface.
The app must follow the MVC design pattern.
Service classes can be written in C++, C#, VB, orJavaScript.
The app must communicate with pre-existing enterprise services.
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.)


You need to ensure that the about page is displayed. Which code segment should you insert at line DF13?

Which attribute should you add to the DIV element in line AB07?

Case Study: 2 Scenario 2
Background
You are developing a Windows Store app by using HTML5, JavaScript, and CSS3. The app will be used to
access details about products that your company sells.
Business Requirements
The app must do all of the following:
Be available to customers in many different countries.
Display a list of product categories.
Display the products for a selected category.
Display details of a selected product.
Display images of each product one at a time in avertical presentation.
Provide a link to an About section in the Settings pane.
Update product data on a daily basis.
Allow the user to view the last selected product while the app is offline.
Be deployed in the Windows Store.
Technical Requirements
General
When the user restarts the app, the app must start in the state it was in when it was last used.
App settings controls must be 346 pixels wide.
The app must optimize bandwidth use and performance.
Security
The app must use an enterprise certificate.
The user must provide valid credentials to accessthe app.
After user authentication, the app must use stored credentials.
User accounts will be validated against a pre-existing enterprise service.
App Architecture
Service calls must be separated from the user interface.
The app must follow the MVC design pattern.
Service classes can be written in C++, C#, VB, orJavaScript.
The app must communicate with pre-existing enterprise services.
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.)


You need to ensure that the settings for the About page meet the business requirements. Which attribute
should you add to the DIV element in line AB07?


Page 6 of 7« First...34567