Google News
logo
Xamarin - Quiz(MCQ)

Xamarin : Xamarin is a Microsoft-owned San Francisco-based software company founded in May 2011 by the engineers that created Mono, Xamarin.Android (formerly Mono for Android) and Xamarin.iOS (formerly MonoTouch), which are cross-platform implementations of the Common Language Infrastructure (CLI) and Common Language Specifications (often called Microsoft .NET).

With a C#-shared codebase, developers can use Xamarin tools to write native Android, iOS, and Windows apps with native user interfaces and share code across multiple platforms, including Windows, macOS, and Linux.. Wikipedia

A)
Testing tool
B)
Web development tool
C)
Mobile App development tool
D)
None of the above

Correct Answer :   Mobile App development tool


Explanation : Xamarin is a mobile app development tool.

A)
IBM
B)
Google
C)
Amazon
D)
Microsoft

Correct Answer :   Microsoft


Explanation : Xamarin is owned by Microsoft cooperation.

A)
To develop iOS applications only
B)
To develop cross-platform applications using a single codebase
C)
To develop Android applications only
D)
To develop Windows applications only

Correct Answer :   To develop cross-platform applications using a single codebase


Explanation : Xamarin.Forms is a UI toolkit that enables developers to create native user interfaces for iOS, Android, and Windows using a single, shared codebase. It provides a set of UI controls that map to the native controls on each platform, allowing developers to create native-looking apps without having to write platform-specific code.

A)
Xamarin.iOS and Xamarin.Android are the same thing.
B)
Xamarin.iOS and Xamarin.Android are used for developing cross-platform applications.
C)
Xamarin.iOS is used for developing iOS applications, while Xamarin.Android is used for developing Android applications.
D)
Xamarin.iOS is used for developing Android applications, while Xamarin.Android is used for developing iOS applications.

Correct Answer :   Xamarin.iOS is used for developing iOS applications, while Xamarin.Android is used for developing Android applications.


Explanation : Xamarin.iOS is a toolset used for developing native iOS applications using C# and .NET. On the other hand, Xamarin.Android is a toolset used for developing native Android applications using C# and .NET.

A)
1
B)
2
C)
3
D)
4

Correct Answer :   2


Explanation : Xamarin has two approaches for app development. These are Xamarin.Forms and Xamarin Native

6 .
__________ is a tool which is used by the developers to keep an eye on the information about the particular App inside the Visual Studio.
A)
Xamarin Profiler
B)
Xamarin Forms
C)
Xamarin Insights
D)
Xamarin Analyse

Correct Answer :   Xamarin Profiler


Explaination : Xamarin Profiler is a tool which is used by the developers to keep an eye on the information about the particular App inside the Visual Studio.

A)
2
B)
3
C)
4
D)
5

Correct Answer :   3


Explanation : Xamarin supports three languages in the development of mobile applications : C#, F# and Visual Basic.NET

A)
C#
B)
Java
C)
Python
D)
None of the above

Correct Answer :   C#


Explanation : Xamarin applications are written in C#.

A)
C#
B)
Java
C)
Python
D)
.NET

Correct Answer :   .NET


Explanation : Xamarin is built on top of .NET.

10 .
Which of the following options in Xamarin is for developers who wish to create a single program for all three mobile platforms: Windows, iOS, and Android?
A)
Xamarin.forms
B)
Xamarin.native
C)
Both (A) and (B)
D)
None of the above

Correct Answer :   Xamarin.forms


Explaination : Xamarin.forms is for developers who wish to create a single program for all three mobile platforms: Windows, iOS, and Android.

11 .
When we want to construct a distinct version of the same App for multiple platforms, we utilize which of the following method?
A)
Xamarin.forms
B)
Xamarin.android
C)
Xamarin.native
D)
None of the above

Correct Answer :   Xamarin.native


Explaination : When we want to construct a distinct version of the same App for multiple platforms, we utilise Xamarin.native method.

A)
Xamarin.native
B)
Xamarin.forms
C)
Xamarin Profiler
D)
Xamarin Insights

Correct Answer :   Xamarin Insights


Explanation : Xamarin insight is a tool that allowed developers to identify and track the issue with the apps in real time.

13 .
Which of the following file includes all of the information about the Android platform that an app requires to execute correctly?
A)
API file
B)
Manifest File
C)
Android File
D)
None of the above

Correct Answer :   Manifest File


Explaination : The manifest file includes all of the information about the Android platform that an app requires to execute correctly.

A)
To provide a marketplace for Xamarin applications
B)
To provide a cloud-based IDE for developing Xamarin applications
C)
To allow developers to test their applications on a variety of physical devices
D)
To provide a cloud-based database for storing Xamarin applications

Correct Answer :   To allow developers to test their applications on a variety of physical devices


Explanation : The Xamarin Test Cloud is a cloud-based service that allows developers to test their applications on a variety of physical devices. This enables developers to identify and fix issues that may be specific to certain device types or operating system versions.

A)
To provide a marketplace for Xamarin applications
B)
To analyze the performance of Xamarin applications
C)
To test Xamarin applications on a variety of physical devices
D)
To provide a cloud-based IDE for developing Xamarin applications

Correct Answer :   To analyze the performance of Xamarin applications


Explanation : The Xamarin Profiler is a tool that enables developers to analyze the performance of their Xamarin applications. It provides detailed information on the memory usage, CPU usage, and other performance metrics of an application, allowing developers to identify and fix performance issues.

A)
To provide a marketplace for Xamarin components and plugins
B)
To test Xamarin applications on a variety of physical devices
C)
To provide a cloud-based IDE for developing Xamarin applications
D)
To provide a cloud-based database for storing Xamarin applications

Correct Answer :   To provide a marketplace for Xamarin components and plugins


Explanation : The Xamarin Component Store is an online marketplace where developers can browse and download reusable components and plugins for their Xamarin applications. These components and plugins can help developers save time and effort by providing pre-built functionality that can be easily integrated into their applications.

A)
iOS
B)
macOS
C)
Android
D)
Windows Phone

Correct Answer :   macOS


Explanation : While Xamarin does provide support for developing macOS desktop applications, it is not a supported mobile operating system for Xamarin development. Xamarin provides support for developing mobile applications for iOS, Android, and Windows Phone.

18 .
When a new Android project is established, several files are automatically added to the project. These default project files and directories are referred as ____?
A)
Config File
B)
Project Essential
C)
Android Resources
D)
None of the above

Correct Answer :   Android Resources


Explaination : When a new Android project is established, several files are automatically added to the project. These default project files and directories are referred to as Android Resources.

A)
Static folder
B)
Layout folder
C)
Main activity folder
D)
Drawable folder

Correct Answer :   Drawable folder


Explanation : Drawable folder saves all of the photographs that you want to utilize in your program.

A)
2
B)
5
C)
7
D)
8

Correct Answer :   7


Explanation : There are 7 lifecycle processes in an Android activity.

* onCreate
* onStart
* onResume
* onPause
* onStop
* onRestart
* onDestroy

A)
onStart
B)
onResume
C)
onCreate
D)
onRestart

Correct Answer :   onCreate


Explanation : When the activity is first formed, onCreate process is invoked.

A)
onStart
B)
onCreate
C)
onResume
D)
onRestart

Correct Answer :   onStart


Explanation : When the action begins and becomes visible to the user, it is termed as onStart process.

A)
Native performance
B)
Code portability across all platforms
C)
Access to native APIs and UI components
D)
Easy integration with third-party libraries

Correct Answer :   Code portability across all platforms


Explanation : While Xamarin does provide a degree of code sharing across multiple platforms, it is not possible to share 100% of the code across all platforms. Some platform-specific code may still be necessary to take full advantage of the native capabilities of each platform.

A)
To analyze the performance of iOS applications
B)
To provide a marketplace for iOS components and plugins
C)
To test iOS applications on a variety of physical devices
D)
To enable developers to design and preview iOS user interfaces in a visual editor

Correct Answer :   To enable developers to design and preview iOS user interfaces in a visual editor


Explanation : The Xamarin Designer for iOS is a visual editor that enables developers to design and preview iOS user interfaces using a drag-and-drop interface. It provides a visual representation of the user interface and allows developers to quickly iterate on their designs without having to write code.

A)
A marketplace for iOS plugins and components
B)
A visual designer for creating iOS user interfaces
C)
Access to native iOS APIs and UI components
D)
A cloud-based testing platform for iOS applications

Correct Answer :   Access to native iOS APIs and UI components


Explanation : Xamarin.iOS provides full access to the native iOS APIs and UI components, allowing developers to create fully native iOS applications using C# and the .NET framework. This enables developers to take full advantage of the native capabilities of iOS, while still using the familiar C# language and .NET framework.

A)
Access to native UWP APIs and UI components
B)
A marketplace for UWP plugins and components
C)
A visual designer for creating UWP user interfaces
D)
A cloud-based testing platform for UWP applications

Correct Answer :   Access to native UWP APIs and UI components


Explanation : Xamarin.UWP provides full access to the native UWP APIs and UI components, allowing developers to create fully native UWP applications using C# and the .NET framework. This enables developers to take full advantage of the native capabilities of UWP, while still using the familiar C# language and .NET framework.

A)
TableView
B)
ListView
C)
TupleView
D)
DatabaseView

Correct Answer :   TableView


Explanation : TableView: TableView displays the stacks of data horizontally in rows. We use this control when we need more space for rich visualization of the item to be displayed.

A)
The apps created in Xamarin have a large file size
B)
The development of user interfaces in Xamarin is Time-Consuming
C)
Even apps share the code across the platform, but there is also a need for the developer to create the linkage in the OS, which is difficult for the user
D)
All of the above

Correct Answer :   All of the above


Explanation : All of the above are the disadvantages of Xamarin Development.

A)
Yes
B)
No
C)
Can Not Say
D)
None of the above

Correct Answer :   Yes


Explanation : Yes, Fresh MVVM is a super light MVVM framework which is designed specifically for Xamarin.Forms only

A)
XAML main
B)
XAML namespace
C)
XAML header
D)
XAML constant

Correct Answer :   XAML namespace


Explanation : XAML namespace is the declaration of the namespaces on top of the XAML file.

A)
TextCell
B)
EntryCell
C)
ImageCell
D)
SwitchCell

Correct Answer :   ImageCell


Explanation : ImageCell: It is a text cell which includes the image component in the left.

A)
iOS
B)
Android
C)
Windows
D)
Linux

Correct Answer :   Linux


Explanation : While Xamarin supports multiple platforms, including iOS, Android, and Windows, it does not currently support Linux. However, developers can use the Mono runtime, which is the underlying technology behind Xamarin, to run .NET applications on Linux.

A)
onStart
B)
onCreate
C)
onRestart
D)
onResume

Correct Answer :   onRestart


Explanation : onRestart method is called after the activity has stopped, before starting again.

A)
onStop
B)
onResume
C)
onCancel
D)
onDestroy

Correct Answer :   onDestroy


Explanation : In onDestroy process, the final call before the activity is erased from memory.

A)
onStop
B)
onDestroy
C)
onResume
D)
None of the above

Correct Answer :   onStop


Explanation : When the activity is no longer visible to the user, onStop method is invoked.

A)
4
B)
3
C)
2
D)
1

Correct Answer :   3


Explanation : Here, are the three ways to build the apps in Xmarin : Xamarin.Forms, Xamarin.Android and Xamarin.iOS.

A)
To analyze the performance of Xamarin applications
B)
To test Xamarin applications on a variety of physical devices
C)
To provide a cloud-based IDE for developing Xamarin applications
D)
To allow developers to preview their Xamarin applications on a physical device without needing to build and deploy the application

Correct Answer :   To allow developers to preview their Xamarin applications on a physical device without needing to build and deploy the application


Explanation : The Xamarin Live Player is a tool that allows developers to preview their Xamarin applications on a physical device in real-time, without needing to build and deploy the application. This enables developers to quickly test and iterate on their applications, speeding up the development process.

A)
To analyze the performance of Xamarin applications
B)
To test Xamarin applications on a variety of physical devices
C)
To allow developers to debug and inspect their Xamarin applications in real-time
D)
To provide a cloud-based IDE for developing Xamarin applications

Correct Answer :   To allow developers to debug and inspect their Xamarin applications in real-time


Explanation : The Xamarin Inspector is a tool that allows developers to inspect and debug their Xamarin applications in real-time, helping them identify and fix issues quickly. The Inspector provides a variety of tools for inspecting the user interface, debugging code, and monitoring performance.

A)
Access to native device APIs and functionality
B)
Reduced development time and cost compared to native development
C)
Ability to share code between iOS and Android applications
D)
Ability to create user interfaces using a shared XAML markup language

Correct Answer :   Reduced development time and cost compared to native development


Explanation : While Xamarin can help reduce development time and cost compared to developing separate native applications for each platform, it is not necessarily faster or cheaper than developing a single native application. However, Xamarin does provide other benefits such as the ability to share code, access to native device APIs, and a shared XAML markup language for creating user interfaces.

40 .
Which of the following is a view technique that we use for displaying a message or output in a little pop-up window?
A)
Text ()
B)
TextView ()
C)
Make.Text ()
D)
Toast.MakeText()

Correct Answer :   Toast.MakeText()


Explaination : Toast.MakeText() is a view technique that we use for displaying a message or output in a little pop-up window.

41 .
____ is a collection handler that reads data from a list collection and either returns it as a view or shows it on the screen?
A)
ArrayAdapter
B)
MakeList
C)
ListAdapter
D)
ArrayHandler

Correct Answer :   ArrayAdapter


Explaination : ArrayAdapter is a collection handler that reads data from a list collection and either returns it as a view or shows it on the screen.

A)
Frame layout
B)
Vertical Layout
C)
Relative Layout
D)
Horizontal Layout

Correct Answer :   Frame layout


Explanation : The frame layout is used to display only one item.

A)
Date
B)
Date Picker
C)
Time Picker
D)
Date Display

Correct Answer :   Time Picker


Explanation : The date Picker widget is used to display the date.

44 .
A ____ is a widget that allows you to choose one choice from a list. It is similar to a dropdown/combo box?
A)
Spinner
B)
Rolled
C)
Drop down
D)
Main menu

Correct Answer :   Spinner


Explaination : A spinner is a widget that allows you to choose one choice from a list. It is similar to a dropdown/combo box.

A)
Extensible markup language
B)
Extensile markup language
C)
Existing markup language
D)
None of the above

Correct Answer :   Extensible markup language


Explanation : XAML means Extensible markup language.

46 .
_____is a stand-alone integrated development environment (IDE) for building cross-platform mobile applications based on the open-source project Monodevelop?
A)
Xamarin analyze
B)
Xamarin Profiler
C)
Xamarin Insights
D)
Xamarin Studio

Correct Answer :   Xamarin Studio


Explaination : Xamarin Studio is a stand-alone integrated development environment (IDE) for building cross-platform mobile applications based on the open-source project Monodevelop.

A)
Visual Studio
B)
Xamarin studio
C)
Both (A) and (B)
D)
None of the above

Correct Answer :   Xamarin studio


Explanation : Xamarin Studio works on both Windows OS X environments.

A)
Module
B)
TextView
C)
Grid View
D)
List view

Correct Answer :   List view


Explanation : A Listview is a user interface element that shows scrollable lists of things.

A)
Module
B)
List view
C)
Grid View
D)
TextView

Correct Answer :   Grid View


Explanation : A gridView is a type of view group that allows programs to display material in a two-dimensional, scrollable grid.

A)
Data binding
B)
Array adapter
C)
Project portables
D)
None of the above

Correct Answer :   Data binding


Explanation : Data Binding is a mechanism for synchronizing the data source with the user interface.

A)
XAML
B)
MVVM
C)
Both (A) and (B)
D)
None of the above

Correct Answer :   Both (A) and (B)


Explanation : Xamarin.Forms use MVVM and XAML both.

52 .
Depending on the platform support, which of the following can be used to display Websites, HTML strings, Documents, and Local Files in Xamarin?
A)
Web view
B)
 List view
C)
TextView
D)
Grid View

Correct Answer :   Web view


Explaination : Depending on the platform support, webview can be used to display Websites, HTML strings, Documents, and Local Files in Xamarin.

A)
Google
B)
Xamarin
C)
Microsoft
D)
None of the above

Correct Answer :   Xamarin


Explanation : Xamarin created Mono.

A)
ICommand
B)
CommandInter
C)
Commands_interface
D)
None of the above

Correct Answer :   ICommand


Explanation : ICommand is a ViewModel attribute that allows you to use the command interface.

A)
Tabs
B)
Cells
C)
ViewTable
D)
ViewCell

Correct Answer :   ViewCell


Explanation : A ViewCell is a tiny individual element that represents a single ListView or Table item.

56 .
Among MVVMCross and MVVMlight which of the following is a .NET cross-platform MVVM framework?
A)
MVVMlight
B)
MVVMCross
C)
Can not say
D)
None of the above

Correct Answer :   MVVMCross


Explaination : MVVMCross is a .NET cross-platform MVVM framework.

A)
Mono
B)
Android
C)
Data binding
D)
None of the above

Correct Answer :   Mono


Explanation : In Xamarin, Mono Android gives access to all native Android APIs.

A)
To analyze the performance of Xamarin applications
B)
To test Xamarin applications on a variety of physical devices
C)
To provide a visual preview of Xamarin.Forms user interfaces
D)
To provide a cloud-based IDE for developing Xamarin applications

Correct Answer :   To provide a visual preview of Xamarin.Forms user interfaces


Explanation : The Xamarin.Forms Previewer is a tool that allows developers to preview their Xamarin.Forms user interfaces in real-time, without needing to run the application. This enables developers to iterate on their user interfaces more quickly, as they can see the changes they make in real-time.

59 .
Which of the following layout is used in Xamarin, When UI components must be positioned horizontally or vertically?
A)
Frame
B)
Stack Layout
C)
ScrollView
D)
ContentView

Correct Answer :   Stack Layout


Explaination : Stack layout in Xamarin is used when UI components must be positioned horizontally or vertically.

A)
2
B)
3
C)
4
D)
5

Correct Answer :   2


Explanation : There are two methods of sharing the code between the cross-platform applications:

* Portable Libraries (PCL)
* Shared Projects

A)
ListView
B)
TableView
C)
Can Not Say
D)
None of the above

Correct Answer :   ListView


Explanation : ListView control displays the stacks of data vertically.

A)
ListView
B)
TableView
C)
Can Not Say
D)
None of the above

Correct Answer :   TableView


Explanation : TableView control displays the stacks of data horizontally.

A)
MVC
B)
MVP
C)
MVVM
D)
None of the above

Correct Answer :   MVVM


Explanation : Data Binding is based on MVVM (Model-View-ViewModel) Architecture.

A)
2
B)
3
C)
4
D)
6

Correct Answer :   6


Explanation : There are 6 types of pages available in Xamarin Forms: Carousel Page, Content Page, MasterDetail Page, Navigation Page, Tabbed Page, and Template Page.

65 .
Assists developers in creating a single cross-platform API for their mobile applications, which can be accessed via common code?
A)
Xamarin Studio
B)
Xamarin Profiler
C)
Xamarin Insights
D)
Xamarin.Essentials

Correct Answer :   Xamarin.Essentials


Explaination : Xamarin.Essentials assist developers in creating a single cross-platform API for their mobile applications, which can be accessed via common code.

A)
Xamarin.forms
B)
Xamarin.native
C)
Can Not Say
D)
None of the above

Correct Answer :   Xamarin.forms


Explanation : Xamarin.forms are used in a situation where Less platform-specific code is required.