MCSD Developing Windows Store Apps 2 — Questions and Answers
Question 1: What does the Windows Store app sandbox model restrict?
- Rendering graphics
- Direct access to system resources without declared capabilities (Correct answer)
- Displaying notifications
- Using the XAML framework
Correct answer: Direct access to system resources without declared capabilities
The sandbox model restricts apps from accessing system resources (files, cameras, etc.) unless declared in the app manifest.
Question 2: Which Windows Store app lifecycle state means the app is visible and receiving input?
- Suspended
- Terminated
- Running (Correct answer)
- Not Running
Correct answer: Running
The Running state means the app is in the foreground, fully active, and receiving user input.
Question 3: What is the purpose of the `async`/`await` pattern in Windows Store apps?
- To enable multithreading
- To keep the UI responsive while waiting for long operations to complete (Correct answer)
- To encrypt network calls
- To deploy the app to the Store
Correct answer: To keep the UI responsive while waiting for long operations to complete
Using `async`/`await` in Windows Store apps prevents the UI thread from blocking during I/O or network operations.
Question 4: What is a Windows Store app tile used for?
- A layout container in XAML
- The app's live icon on the Start screen that can display dynamic content (Correct answer)
- A navigation control
- A database table
Correct answer: The app's live icon on the Start screen that can display dynamic content
App tiles are the Start screen icons for Windows Store apps and can display live, updating content via live tiles.
Question 5: Which API is used to send toast notifications in Windows Store apps?
- NotificationService
- ToastNotificationManager (Correct answer)
- MessageDialog
- PushNotificationChannel
Correct answer: ToastNotificationManager
`ToastNotificationManager` is the WinRT class used to create and display toast pop-up notifications.
Question 6: In a Windows Store app, what is the recommended way to store app settings?
- A custom XML file in the app folder
- ApplicationData.Current.LocalSettings or RoamingSettings (Correct answer)
- A SQL Server database
- The Windows Registry
Correct answer: ApplicationData.Current.LocalSettings or RoamingSettings
`ApplicationData.Current.LocalSettings` and `RoamingSettings` provide structured storage for app settings in Windows Store apps.
What does the Windows Store app sandbox model restrict?