MCSD Developing Windows Store Apps 1 — Questions and Answers
Question 1: Which programming language is NOT supported for developing Windows Store apps?
- C#
- VB.NET
- PHP (Correct answer)
- C++
Correct answer: PHP
Windows Store apps support C#, VB.NET, C++, and JavaScript/HTML, but not PHP.
Question 2: What file in a Windows Store app project declares the app's capabilities and identity?
- App.xaml
- Package.appxmanifest (Correct answer)
- MainPage.xaml
- AssemblyInfo.cs
Correct answer: Package.appxmanifest
The `Package.appxmanifest` file declares the app's identity, capabilities, entry points, and visual assets.
Question 3: In Windows Store apps, which class represents the entry point for application lifecycle events?
- MainPage
- CoreWindow
- Application (Correct answer)
- Frame
Correct answer: Application
The `Application` class handles app lifecycle events like `OnLaunched`, `OnSuspending`, and `OnResuming`.
Question 4: What is the WinRT API in the context of Windows Store apps?
- A web framework for Windows
- The Windows Runtime API providing access to OS features for Store apps (Correct answer)
- A testing framework
- A graphics rendering engine
Correct answer: The Windows Runtime API providing access to OS features for Store apps
WinRT (Windows Runtime) is the core API for Windows Store apps, providing access to OS capabilities like sensors and notifications.
Question 5: Which layout panel in XAML arranges children in a single row or column?
- Grid
- Canvas
- StackPanel (Correct answer)
- WrapGrid
Correct answer: StackPanel
`StackPanel` arranges its child elements in a single line, either horizontally or vertically.
Question 6: What is data binding in XAML-based Windows Store apps?
- Connecting a database to the app
- Linking UI elements to data sources so the UI updates automatically (Correct answer)
- Serializing objects to JSON
- Defining app capabilities in the manifest
Correct answer: Linking UI elements to data sources so the UI updates automatically
Data binding in XAML automatically synchronizes UI elements with data sources, reducing manual UI update code.
Which programming language is NOT supported for developing Windows Store apps?