C# Mastery Hub
Home
Challenges
Discussion
Lessons
Core Topics
C# Fundamentals
Console Applications
Classes & OOP
Windows Forms
ASP.NET Core
SQL Server
VS & SQL Connection
RDLC Reports
.NET MAUI
Getting Started
Getting Started
Website Development
SEO Guide
Security
Project Workflow
Extra Topics
Cloud & Deployment
AWS Cloud
Deployment
About
Contact
Test Your Knowledge
.NET MAUI (Full Section) Quiz
Answer all questions to test your understanding
1
What does MAUI stand for?
Multi-platform App UI
Mobile App User Interface
Modern Application UI
Microsoft App UI
2
Which platforms does .NET MAUI support?
Android, iOS, Windows, macOS
Android only
iOS only
Windows only
3
What percentage of code can be shared across platforms with .NET MAUI?
Up to 50%
Up to 70%
Up to 90%
100%
4
What is the minimum Android API level supported by .NET MAUI?
API 19 (Android 4.4)
API 21 (Android 5.0)
API 23 (Android 6.0)
API 26 (Android 8.0)
5
What is the minimum iOS version supported by .NET MAUI?
iOS 10
iOS 11
iOS 13
iOS 15
6
What is XAML in .NET MAUI?
A programming language
A markup language for defining UI
A database
A web framework
7
Which version of Visual Studio is required for .NET MAUI development?
Visual Studio 2019
Visual Studio 2022 (17.3+)
Visual Studio Code only
Visual Studio for Mac only
8
Which command installs the .NET MAUI workload?
dotnet install maui
dotnet workload install maui
dotnet add maui
dotnet new maui
9
What is the environment variable for the Android SDK path?
ANDROID_SDK_ROOT
ANDROID_HOME
ANDROID_PATH
SDK_ROOT
10
Which tool is required for iOS development on macOS?
Android Studio
Xcode
Eclipse
IntelliJ IDEA
11
How do you verify that .NET MAUI is installed correctly?
dotnet --version
dotnet workload list
dotnet --info
All of the above
12
Which Visual Studio workload is required for .NET MAUI?
.NET MAUI App Development
Mobile development with .NET
Universal Windows Platform development
All of the above
13
What does XAML stand for?
eXtensible Application Markup Language
eXtensible Application Modeling Language
XML Application Markup Language
eXtensible Markup Application Language
14
What is the root element of a .NET MAUI page?
<Page>
<ContentPage>
<View>
<Layout>
15
What is the purpose of the x:Class attribute in XAML?
Defines the namespace
Specifies the code-behind class
Defines a style
Creates a resource
16
What is data binding in XAML?
Connecting UI elements to data sources
Styling UI elements
Animating UI elements
Positioning UI elements
17
Which syntax is used for binding in XAML?
{Binding}
[Binding]
{{Binding}}
@Binding
18
What is the purpose of the x:Name attribute in XAML?
Sets the page title
Defines a name for accessing the element in code-behind
Creates a style
Defines a resource
19
Which layout arranges children vertically or horizontally?
Grid
StackLayout
FlexLayout
AbsoluteLayout
20
Which layout is best for creating complex, table-like structures?
StackLayout
Grid
FlexLayout
RelativeLayout
21
Which control is used for single-line text input?
Editor
Entry
Label
SearchBar
22
Which control displays a list of items with scrolling?
StackLayout
ListView
Grid
CollectionView
23
Which property controls how elements are spaced in a StackLayout?
Margin
Padding
Spacing
Gap
24
What is the purpose of a ListView.ItemTemplate?
Defines the layout of each item
Sets the data source
Adds items to the list
Removes items from the list
25
What is Shell in .NET MAUI?
A navigation container
A UI control
A database
A styling system
26
Which navigation pattern does Shell support?
Flyout menu only
Tab bar only
Both flyout and tab navigation
Modal navigation only
27
How do you navigate to a page in Shell?
await Navigation.PushAsync()
await Shell.Current.GoToAsync()
await Navigate.ToAsync()
Page.Navigate()
28
What is the purpose of QueryProperty in Shell navigation?
To pass data between pages
To define page routes
To create navigation stacks
To style pages
29
Which Shell element is used for menu items?
FlyoutItem
TabBar
ShellContent
MenuItem
30
How do you create a tab bar in Shell?
Using FlyoutItem
Using TabBar
Using MenuItem
Using Tab
31
What does MVVM stand for?
Model-View-ViewModel
Model-View-Controller
Model-View-Presenter
Model-View-View
32
What is the role of the ViewModel in MVVM?
Handles UI rendering
Contains business logic and data
Bridges the Model and View
Stores user preferences
33
What is the purpose of ObservableObject in MVVM?
To create observable collections
To implement INotifyPropertyChanged
To handle navigation
To manage resources
34
What is a RelayCommand used for?
Data binding
Handling user actions
Styling controls
Navigation
35
Which attribute is used with ObservableProperty in Community Toolkit?
[ObservableProperty]
[NotifyPropertyChanged]
[Bindable]
[DataMember]
36
What is the benefit of using MVVM?
Better separation of concerns
Improved testability
Easier maintenance
All of the above
37
Which class is used to make HTTP requests in .NET MAUI?
WebClient
HttpClient
HttpWebRequest
RestClient
38
Which database is commonly used for local storage in .NET MAUI?
SQL Server
MySQL
SQLite
PostgreSQL
39
What is the purpose of JsonSerializer in .NET MAUI?
To format JSON data
To convert JSON to objects and vice versa
To validate JSON
To compress JSON
40
Which NuGet package is used for SQLite in .NET MAUI?
System.Data.Sqlite
sqlite-net-pcl
Microsoft.EntityFrameworkCore.Sqlite
Both B and C
41
How do you handle network errors in a MAUI app?
Ignoring them
Using try-catch blocks
Using Task.Result
Using async void
42
What is the best practice for storing sensitive data in MAUI?
In appsettings.json
In a text file
In secure storage
In a database
43
What file format is used for Android distribution on Google Play?
APK only
AAB only
Both APK and AAB
IPA
44
What is required to publish to the Apple App Store?
Google Play account
Apple Developer account
Microsoft Partner account
No account required
45
What is the purpose of a keystore in Android publishing?
To store user data
To sign the app
To store app settings
To cache images
46
Which command builds an Android app in Release mode?
dotnet build -c Debug
dotnet build -c Release
dotnet publish -c Debug
dotnet publish -c Release
47
What is App Store Optimization (ASO)?
Optimizing app performance
Optimizing app store listing for visibility
Optimizing code quality
Optimizing database queries
48
What is the minimum requirement for publishing to the Microsoft Store?
Microsoft Partner Center account
Google Play account
Apple Developer account
No account required
Submit Quiz