exam questions

Exam 70-357 All Questions

View all questions & answers for the 70-357 exam

Exam 70-357 topic 1 question 18 discussion

Actual exam question from Microsoft's 70-357
Question #: 18
Topic #: 1
[All 70-357 Questions]

You have a Universal Windows Platform (UWP) app. The app has a page that includes the following XAML markup. Line numbers are included for reference only.

Users report that the page takes a long time to refresh.
You need to improve the load time for the page while maintaining the same layout and functionality.
What should you do?

  • A. Move the attributes from the BORDER element at line 02 to the GRID element at line 03. Then, remove the BORDER elements at line 02 and line 11.
  • B. Replace the TEXTBLOCK element at line 09 with a TEXTBOX element.
  • C. Swap the markup at line 02 with the markup at line 03. Swap the markup at line 10 with the markup at line 11.
  • D. Move the Fill and Opacity attributes and value from the RECTANGLE element at line 08 to the GRID element at line 03. Then, Remove the RECTANGLE element.
Show Suggested Answer Hide Answer
Suggested Answer: Explanation 🗳️
Use single-cell grids for overlapping UI
A common UI requirement is to have a layout where elements overlap each other. Typically padding, margins, alignments, and transforms are used to position the elements this way. The XAML Grid control is optimized to improve layout performance for elements that overlap.
Reference: https://docs.microsoft.com/en-us/windows/uwp/debug-test-perf/optimize-your-xaml-layout

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Humuh
3 years, 11 months ago
I think the right answer is remove line 03-07 based on https://docs.microsoft.com/en-us/windows/uwp/debug-test-perf/optimize-your-xaml-layout#use-single-cell-grids-for-overlapping-ui
upvoted 1 times
...
Ofer
4 years, 8 months ago
D is wrong, as the opacity should be on the 2nd column. A is correct.
upvoted 2 times
...
Andrej
4 years, 8 months ago
Correct is A, Rectangle fills only column one what is not possible to move to grid.
upvoted 3 times
...
dsvirdi
4 years, 9 months ago
Correct Ans is D
upvoted 2 times
...
Szilveszter
4 years, 10 months ago
The correct answer is A., not D, the grid control has no Opacity property.
upvoted 2 times
course104
3 years, 11 months ago
All UI elements has Opacity!
upvoted 1 times
...
...
jacclc
5 years, 5 months ago
Answer: D
upvoted 2 times
...
liconnotalo
5 years, 7 months ago
What is the answer?
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago