Lecture 2-WSA Flashcards

(12 cards)

1
Q

What was the main architectural shift introduced with Windows 8 and 10 for app development?

A

Windows 8: Introduced a unified kernel across devices (PC, Xbox, Windows Phone)

Windows 10: Enabled platform convergence – write once, run on many device types (HoloLens, IoT, etc.)
➡️ Apps must be adaptive and responsive to varying screen sizes, inputs, and architectures.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is Windows Runtime (WinRT) and how does it relate to Windows Store Applications (WSA)?

A

WinRT is the modern API layer that powers WSAs.
It provides:

Sandboxing

Modern APIs

Language support (C++, C#, JS)

Lifecycle control (suspend/resume)
➡️ WSAs run on WinRT, using AppX packages and declared permissions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How are WSAs sandboxed, and what does that mean for resource access?

A

WSAs run in a sandboxed environment:

Registry access is blocked

File system access is restricted (only AppData unless permission granted)

Network access must be declared in the manifest
➡️ This ensures security, stability, and efficient resource management.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How does the OS manage WSA activity when apps are minimized or idle?

A

The app is:

Throttled when out of focus

Suspended/unloaded when minimized
This saves battery and memory, but may disrupt long-running tasks like timers or games.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are App Contracts in WSAs, and why are they necessary?

A

App Contracts are safe integration points that let sandboxed apps participate in OS-wide features like:

Sharing content (Share Source/Target)

Handling searches (Search Contract)

Accessing files via File Picker

Providing services (App Services)
➡️ Must be explicitly declared in the app’s manifest.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Name and describe two modern features of WSAs that allow rich interaction despite sandboxing.

A

Push Notifications → App receives updates even when not open

Protocol Activation → App can be launched via custom URI like myapp://view?id=42

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is Windows 10 IoT Core and why is it used?

A

A lightweight Windows version for embedded/IoT devices:

Can run headless (no screen) or with GUI

Supports GPIO access to control hardware (e.g., sensors, LEDs)
➡️ Runs WSAs using WinRT on devices like Raspberry Pi.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How does WinRT improve on traditional Win32 API in terms of architecture and development?

A

WinRT offers:

Object-oriented APIs

Sandboxing and lifecycle control

Language interoperability (C++, C#, JS)
Compared to Win32:

WinRT is modern, safer, more scalable, and suited for UWP apps.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Compare the .NET Framework with .NET Core / .NET 5+ in terms of platform support and modern features.

A

.NET Framework .NET Core / .NET 5+
Windows-only Cross-platform (Linux, macOS, Windows)
Closed source Open source, modular
Moderate speed Faster, leaner
Maintenance only Actively developed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the key differences between WinForms, WPF, and UWP in Windows application development?

A

These are three major UI frameworks provided by Microsoft for building Windows applications, but they were designed for different eras and goals.

WinForms is the oldest (from 2002), based on a simple, pixel-based UI system. It uses drag-and-drop UI design, is fast to build with, but lacks support for modern UI, animation, and hardware acceleration. It runs only on Windows and is best for basic desktop tools.

WPF (Windows Presentation Foundation) came in 2006 and introduced XAML-based, vector-driven UI. It supports rich graphics, animations, data binding, and hardware acceleration using DirectX. It’s great for desktop apps that need custom visuals and follows the MVVM pattern. Also Windows-only.

UWP (Universal Windows Platform) is the modern approach introduced with Windows 10. It also uses XAML, but it’s designed to run across many device types: PCs, Xbox, HoloLens, IoT, etc. UWP apps are sandboxed, packaged as .appx, and usually distributed via the Microsoft Store. They support adaptive layouts and permissions-based access to system resources.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What do the terms “WSA”, “UWP app”, and “Windows Store App” mean, and how are they related?

A

Windows Store Apps (WSAs): Introduced in Windows 8, built with WinRT + XAML, and installed from the Windows Store.

UWP Apps (Universal Windows Platform): The evolution of WSAs in Windows 10, designed to run on any Windows 10+ device (PC, Xbox, HoloLens, IoT, etc.) using a single codebase.

Both are sandboxed, use AppX packaging, and rely on WinRT for secure, adaptive, and cross-device behavior.

➡️ Summary: WSA (Windows 8) → UWP (Windows 10) — same concept, newer name, more devices supported.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly