Home » [Free] Get all latest Microsoft 70-484 Actual Tests Case Study: 3 – Scenario 3

[Free] Get all latest Microsoft 70-484 Actual Tests Case Study: 3 – Scenario 3

Ensurepass

Case Study: 3 – Scenario 3

Background

You are developing a Windows Store news aggregator app that will retrieve data from RSS feeds and social networks based on the user’s subscriptions.

 

Application Structure

The app will run locally on the user’s device. User preferences will be available locally.

When a user starts the app, the app will load the RSS feed and social network information.

The app will retrieve data from RSS feeds by using the FeedRetriever class. The app will authenticate to and retrieve data from social networks by using the SocialRetriever class.

By default, data is presented in a ListView control.

Relevant portions of the app files are shown. (Line numbers are included for reference only and include a two-character prefix that denotes the specific file to which they belong.)

 

Technical Background

The design team has provided a custom XAML code segment for the itemTemplate attribute of the GridView control that displays RSS feeds. The custom item template is named newTem plate. It will not be used in other GridView controls.

 

Requirements

Business Requirements

The app must enable users to perform the following tasks:

 

– Define a feed title.

– Define a list of RSS feeds that the users want to subscribe to.

– View information about topics that are popular on the users’ selected social networks.

– Share content that is aggregated by the app.

– Search aggregated content by using only the Search charm.

– Share RSS feed content by using the Share charm.

– Display general help information by using the Settings charm. The app must list the name of each social network to which the user subscribes. The app must indicate whether the user is authenticated to that social networking site.

 

The available data sources will be expanded to include JSON data from a third-party social networking site that is hosted by Litware, Inc. An SSL connection to the Litware social network is available.

 

Technical Requirements

The app has the following technical requirements:

 

– Retrieve user data from the social network services by using the authentication credentials.

– When making an HTTP request for content, read all content prior to acting on the response.

– When SSL is available, use SSL to retrieve data from social network providers.

 

The code that is used to retrieve data from RSS feeds must be reusable.

The app must display the information about the user’s social network subscriptions in a layout control. The app must display authentication screens from the social networking sites when an authentication screen is available.

The custom XAML code that was provided by the design team must be available for all ListView controls in the app.

Data from the FeedRetriever class must be presented in a data control.

Two developers will create the SocialRetriever class, with the following assignments:

 

– Developerl must update methods for getting data.

– Developed must implement three new methods for exposing data to the user interface.

– All methods must be self-contained and must not affect other methods in the SocialRetriever class.

– Multiple developers must not work in the same file at the same time.

clip_image001

 

 

clip_image002

 

 

clip_image004

 

 

clip_image006

 

 

QUESTION 24

You need to retrieve data from the third-party social networking site.

Which code segment should you use?

 

clip_image008

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: A

Explanation:

* Scenario: The available data sources will be expanded to include JSON data from a third-party social networking site that is hosted by Litware, Inc. An SSL connection to the Litware social network is available.

* await GetAsync Example:

// Read response asynchronously as JsonValue and write out top facts for each country

15: JsonArray content = await response.Content.ReadAsAsync<JsonArray>();

 

 

QUESTION 25

The App.xaml.cs file includes the following code segment. (Line numbers are included for reference only.)

 

01

02 (x) => {

03 DisplaySettingsPopup(x.Id);

04 }) ;

05 arga.Request.ApplicationCoiracanda.Add(cmd) ;

 

You need to configure the Settings charm.

Which code segment should you insert at line 01?

 

clip_image009

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: A

Explanation:

* Display general help information by using the Settings charm

* SettingsCommand Example:

SettingsCommand helpCommand = new SettingsCommand(“helpPage”, “Help”, handler); eventArgs.Request.ApplicationCommands.Add(helpCommand);

 

 

QUESTION 26

You need to create a custom template for a Listview control that will be located on a page that has the NewsSource object bound to the DataContext property.

Which code segment should you use?

 

clip_image011

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: C

 

 

QUESTION 27

You need to identify alternative methods of displaying information from the FeedRetriever class.

Which data controls can you use to achieve this goal? (Each correct answer presents a complete solution.

Choose all that apply.)

 

A.

stackPanel

B.

WrapGrid

C.

GridView

D.

FlipView

 

Correct Answer: AC

Explanation:

* From scenario:

The app will retrieve data from RSS feeds by using the FeedRetriever class. Data from the FeedRetriever class must be presented in a data control.

By default, data is presented in a ListView control.

The design team has provided a custom XAML code segment for the itemTemplate attribute of the GridView control that displays RSS feeds.

* StackPanel Class

Arranges child elements into a single line that can be oriented horizontally or vertically.

* GridView Class

Displays the values of a data source in a table where each column represents a field and each row represents a record. The GridView control enables you to select, sort, and edit these items.

Incorrect:

* WrapGrid class

Applies to Windows and Windows Phone

Positions child elements sequentially from left to right or top to bottom. When elements extend beyond the container edge, elements are positioned in the next row or column. Can only be used to display items in an ItemsControl.

* FlipView class

Represents an items control that displays one item at a time, and enables “flip” behavior for traversing its collection of items.

 

 

QUESTION 28

You need to ensure that Developer1 and Developed meet the requirements.

How should you design the process?

 

A.

Developer1 should build the UI components to expose the data.

Developed should implement the data collection component of the SocialRetriever class.

B.

Developer1 should implement the data collection component of the SocialRetriever class.

Developer2 should build the UI components to expose the data.

C.

Developer1 should develop the new code. Developed should perform the testing process.

D.

Developer1 should design the test cases. Developed should develop the new code.

 

Correct Answer: B

Explanation:

From scenario:

Two developers will create the SocialRetriever class, with the following assignments:

Developerl must update methods for getting data.

Developed must implement three new methods for exposing data to the user interface.

 

 

QUESTION 29

You need to implement the custom code for the RSS feed Gridview control.

What should you do?

 

A.

Clear the ItemTemplate attribute.

Add the custom XAML to the Gridview control as an inline Data Template element.

B.

Clear the ContentPresenterTemplate attribute.

Add the custom XAML to the ContentPresenterTemplate attribute as a string.

C.

Add a DataTemplate attribute to the Gridview control.

Assign the custom XAML as the value of the DataTemplate attribute.

D.

Add the custom XAML to the Gridview control as an inline DataContext element.

 

Correct Answer: A

Explanation:

The design team has provided a custom XAML code segment for the itemTemplate attribute of the GridView control that displays RSS feeds. The custom item template is named newTem plate. It will not be used in other GridView controls.

 

 

QUESTION 30

You need to authenticate to a social networking site.

Which code segments should you insert at line SR40? (Each correct answer presents part of the solution. Choose all that apply.)

 

A.

WebAuthenticationOptions.SilentMode,

B.

source.RequescUri,

C.

source.RequescUri.SecureScrlng,

D.

WebAuthenticationOptions.None,

 

Correct Answer: AC

Explanation:

A (not D): Scenario: Retrieve user data from the social network services by using the authentication credentials.

C (not B): Scenario: When SSL is available, use SSL to retrieve data from social network providers.

 

 

QUESTION 31

You need to implement storage for the user preferences.

Which storage solutions can you use to meet the specification for the app? (Each correct answer presents a complete solution. Choose all that apply.)

 

A.

TheWindows.Storage.StorageItemType object

B.

TheWindows.Storage.ApplicationData.Current.RoamingSettings object

C.

Windows Azure

D.

The await Windows.Storage.ApplicationData.Current.LocalFolder method

 

Correct Answer: AD

Explanation:

* Scenario: The app will run locally on the user’s device. User preferences will be available locally.

 

 

QUESTION 32

The App.xaml.cs file includes the following code segment. (Line numbers are included for reference only.)

 

02 (x) => {

03 DisplaySettingsPopup(x.Id);

04 }) ;

05 arga.Request.ApplicationCoiracanda.Add(cmd) ;

 

You need to configure the Settings charm. Which code segment should you insert at line 01?

 

clip_image012

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: A

Explanation:

* Display general help information by using the Settings charm

* SettingsCommand Example:

SettingsCommand helpCommand = new SettingsCommand(“helpPage”, “Help”, handler); eventArgs.Request.ApplicationCommands.Add(helpCommand);

 

 

QUESTION 33

You need to implement the custom code for the RSS feed GridViewcontrol.

What should you do?

 

A.

Add an itemTemplate attribute to the GridView control.

Create a string that contains the custom XAML.

Assign the string as the value of the ItemTemplate attribute.

B.

Leave the ItemTemplate attribute unchanged.

Add the custom XAML to the GridView control as an inline Data Template element.

C.

Clear the ItemTemplate attribute.

Add the custom XAML to the GridView control as an inline Data Template element.

D.

Clear the ItemTemplate attribute.

Add the custom XAML to the ItemsSource attribute as a string.

 

Correct Answer: C

Explanation:

* Scenario: The design team has provided a custom XAML code segment for the itemTemplate attribute of the GridView control that displays RSS feeds. The custom item template is named newTem plate. It will not be used in other GridView controls.

 

 

QUESTION 34

You need to add a SocialSource object to the switch statement to support the third-party data feed. Which three code segments should you insert in sequence at line SR58? (To answer, move the appropriate code segments from the list of code segments to the answer area and arrange them in the correct order.)

 

clip_image014

 

Correct Answer:

 

clip_image016

Explanation:

HttpResponseMessage ResponseContentRead

* HttpCompletionOption

/ ResponseContentRead

The operation should complete after reading the entire response including the content.

/ ResponseHeadersRead

The operation should complete as soon as a response is available and headers are read. The content is not read yet.

 

Instant Access to Download Testing Software & PDF File for Microsoft 70-484 Real Exam

Instant Access to Try Microsoft 70-484 Free Demo

HOT EXAM!

Name of author

Name: admin