Development Using C#
Finals Assessment Review
(Questions & Solutions)
2025
©2025
,Case Context for All Questions:
You are part of a software engineering team developing a cross-platform
mobile application using C# and Xamarin.Forms / .NET MAUI. The app
targets iOS, Android, and Windows devices and includes complex UI
interactions, data persistence, cloud integration, performance
optimization, and security features.
Multiple Choice Questions (MCQ)
Which of the following is the recommended .NET framework for building
cross-platform mobile apps with C# in 2024?
A) Xamarin.Forms
B) .NET MAUI
C) MonoTouch
D) .NET Framework 4.8
ANS: B) .NET MAUI
Rationale: .NET MAUI is the modern evolution of Xamarin.Forms and is
the recommended framework for cross-platform mobile development in
.NET 6 and later.
In a C# mobile app using MVVM, which component is responsible for
handling business logic and data binding?
A) Model
B) View
C) ViewModel
D) Controller
ANS: C) ViewModel
Rationale: MVVM separates UI (View) from business logic (ViewModel),
enabling better maintainability and testability.
Which NuGet package would you primarily use to implement Entity
Framework Core in a Xamarin/.NET MAUI app for local SQLite data
storage?
A) Microsoft.EntityFrameworkCore.SqlServer
©2025
, B) Microsoft.EntityFrameworkCore.Sqlite
C) Microsoft.EntityFrameworkCore.InMemory
D) Microsoft.Data.SqlClient
ANS: B) Microsoft.EntityFrameworkCore.Sqlite
Rationale: The SQLite provider is used for local database storage in
mobile scenarios.
What is the primary role of DependencyService in Xamarin.Forms/.NET
MAUI apps?
A) To navigate between pages
B) To implement platform-specific services via dependency injection
C) To manage application state persistence
D) To optimize app performance
ANS: B) To implement platform-specific services via dependency
injection
Rationale: DependencyService allows calling native platform APIs from
shared code.
To improve app responsiveness during heavy computation in mobile apps
with C#, which feature is most appropriate?
A) Async/Await
B) Synchronous blocking calls
C) Thread.Sleep
D) Task.Wait
ANS: A) Async/Await
Rationale: Async/await prevents UI blocking by running tasks
asynchronously.
Fill-in-the-Blank Questions
In .NET MAUI, the __________ control allows creating adaptive user
interfaces that can run on various device form factors such as phones,
tablets, and desktops.
ANS: FlexLayout
Rationale: FlexLayout provides flexible and responsive layout handling.
©2025