300+ TOP Xamarin MCQs and Answers Quiz

Xamarin Multiple Choice Questions

1. Which of the following are the advantage of Xamarin Development?

A. The user interface is simple and native
B. Developers can use Xamarin to make cross-platform apps
C. Xamarin has powerful community support
D. All of the above

Answer: D

Explanation: All of the statement are the advantage of Xamarin Development.

2. What is XAMARIN?

  1. Web development tool
  2. Mobile App development tool
  3. Testing tool

Answer: B Mobile App development tool

Explanation: Xamarin is a mobile app development tool.

3. Which of the following company owns Xamarin?

  1. IBM
  2. Google
  3. Amazon
  4. Microsoft

Answer: D Microsoft

Explanation: Xamarin is owned by Microsoft cooperation.

4. In which language Xamarin applications are written?

  1. C#
  2. Python
  3. Java

Answer: A C#

Explanation: Xamarin applications are written in C#.

5. XAMARIN is built on top of ____?

  1. C#
  2. Python
  3. .NET
  4. Java

Answer: C .NET

Explanation: Xamarin is built on top of .NET.

6. Using Xamarin can we create apps for IOS?

  1. Yes
  2. No

Answer: A Yes

Explanation: Using the same codebase, we can construct apps for iOS, Android, and Windows.

7. When we want to construct a distinct version of the same App for multiple platforms, we utilize which of the following method?

  1. Xamarin.forms
  2. Xamarin.native
  3. Xamarin.android

Answer: B Xamarin.native

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

8. ____is a tool that developers use to keep track of information about a specific app inside Visual Studio?

  1. Xamarin.forms
  2. Xamarin.native
  3. Xamarin analyze
  4. Xamarin Profiler
  5. Xamarin Insights

Answer: D Xamarin Profiler

Explanation: Xamarin Profiler is a tool that developers use to keep track of information about a specific app inside Visual Studio.

9. ____is a tool that allowed the developers to identify and track the issue with the apps in real-time?

  1. Xamarin.forms
  2. Xamarin.native
  3. Xamarin analyze
  4. Xamarin Profiler
  5. Xamarin Insights

Answer: E) Xamarin Insights

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

10. Which of the following file includes all of the information about the Android platform that an app requires to execute correctly?

  1. API file
  2. Android File
  3. Manifest File

Answer: C Manifest File

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

11. When a new Android project is established, several files are automatically added to the project. These default project files and directories are referred as ____?

  1. Android Resources
  2. Config File
  3. Project Essential

Answer: A Android Resources

Explanation: 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.

12. Which of the following folder saves all of the photographs that you want to utilize in your program?

  1. Layout folder
  2. Drawable folder
  3. Main activity folder
  4. Static folder

Answer: B Drawable folder

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

13. How many processes are included in an Android activity?

  1. 2
  2. 5
  3. 7
  4. 8

Answer: C 7

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

  • onCreate
  • onStart
  • onResume
  • onPause
  • onStop
  • onRestart
  • onDestroy

14. When the activity is first formed, which of the following process is invoked?

  1. onCreate
  2. onStart
  3. onResume
  4. onRestart

Answer: A onCreate

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

15. When the action begins and becomes visible to the user, this process is known as ____?

  1. onCreate
  2. onStart
  3. onResume
  4. onRestart

Answer: B onStart

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

16. Which of the following method is called after the activity has stopped, before starting again?

  1. onCreate
  2. onStart
  3. onResume
  4. onRestart

Answer: D onRestart

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

17. Which of the following method is the final call before the activity is erased from memory?

  1. onCancel
  2. onDestroy
  3. onStop
  4. onResume

Answer: B onDestroy

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

18. Which of the following method is called when the activity is no longer visible to the user?

  1. onDestroy
  2. onStop
  3. onResume

Answer: B onStop

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

19. Which of the following component is primarily used for displaying texts on an Android screen?

  1. TextView
  2. Units
  3. Module
  4. Text

Answer: A TextView

Explanation: TextView following component is primarily used for displaying texts on an Android screen.

20. Which of the following is a view technique that we use for displaying a message or output in a little pop-up window?

  1. TextView ()
  2. Toast.MakeText()
  3. Make.Text ()
  4. Text ()

Answer: B Toast.MakeText()

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

21. ____ is a collection handler that reads data from a list collection and either returns it as a view or shows it on the screen?

  1. ListAdapter
  2. ArrayHandler
  3. MakeList
  4. ArrayAdapter

Answer: D ArrayAdapter

Explanation: 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.

22. In which of the following layout’s views the location of the child view is relative to its parent or sibling view?

  1. Horizontal Layout
  2. Vertical Layout
  3. Relative Layout
  4. Frame layout

Answer: C Relative Layout

Explanation: In the Relative layout view the location of the child view is relative to its parent or sibling view.

23. The ____layout is used to display only one item?

  1. Horizontal Layout
  2. Vertical Layout
  3. Relative Layout
  4. Frame layout

Answer: D Frame layout

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

24. In which of the following layout, the view is arranged into rows and columns?

  1. Horizontal Layout
  2. Table Layout
  3. Relative Layout
  4. Frame layout

Answer: B Table Layout

Explanation: In the table layout, the view is arranged into rows and columns.

25. Which of the following widget is used to display the date?

  1. Date Picker
  2. Date Display
  3. Date
  4. Time Picker

Answer: D Time Picker

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

26. A ____ is a widget that allows you to choose one choice from a list. It is similar to a dropdown/combo box?

  1. Drop down
  2. Main menu
  3. Spinner
  4. Rolled

Answer: C Spinner

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

27. What is XAML?

  1. Extensible markup language
  2. Extensile markup language
  3. Schema markup language

Answer: A Extensible markup language

Explanation: XAML means Extensible markup language.

28. ____is a stand-alone integrated development environment (IDE) for building cross-platform mobile applications based on the open-source project Monodevelop?

  1. Xamarin analyze
  2. Xamarin Profiler
  3. Xamarin Insights
  4. Xamarin Studio

Answer: D Xamarin Studio

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

29. Which of the following works on both Windows OS X environments?

  1. Xamarin studio
  2. Visual Studio

Answer: A Xamarin studio

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

30. How many types of binding modes does Xamarin supports?

  1. 4
  2. 2
  3. 5
  4. 3

Answer: D 3

Explanation: Xamarin supports 3 types of binding modes:

  • Default
  • One way
  • Two way

31. A ____is a user interface element that shows scrollable lists of things?

  1. List view
  2. TextView
  3. Grid View
  4. Module

Answer: A List view

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

32. A ____is a type of view group that allows programs to display material in a two-dimensional, scrollable grid?

  1. List view
  2. TextView
  3. Grid View
  4. Module

Answer: C Grid View

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

33. ____is a mechanism for synchronizing the data source with the user interface.

  1. Array adapter
  2. Data binding
  3. Project portables

Answer: B Data binding

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

34. We can test the mobile application on numerous devices thanks to the ____cloud.

  1. Xamarin Profiler
  2. Xamarin Insights
  3. Xamarin Studio
  4. Xamarin test

Answer: D Xamarin test

Explanation: We can test the mobile application on numerous devices thanks to the Xamarin test cloud.

35. Xamarin.Forms uses ____.

  1. MVVM
  2. XAML
  3. Only A
  4. Only B
  5. Both

Answer: E) Both

Explanation: Xamarin.Forms use MVVM and XAML both.

36. Depending on the platform support, which of the following can be used to display Websites, HTML strings, Documents, and Local Files in Xamarin?

  1. List view
  2. TextView
  3. Web view
  4. Grid View

Answer: C Web view

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

37. Which of the following layout is used in Xamarin, When UI components must be positioned horizontally or vertically?

  1. Stack Layout
  2. ContentView
  3. Frame
  4. ScrollView

Answer: A Stack Layout

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

38. How many approaches does Xamarin provides to create an application?

  1. 4
  2. 5
  3. 3
  4. 2

Answer: D 2

Explanation: Xamarin provides two approaches to create an application:
Xamarin.forms and Xamarin.native.

39. How many code-sharing techniques does Xamarin.forms provides?

  1. 2
  2. 4
  3. 5
  4. 3

Answer: A 2

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

  • Portable Libraries (PCL)
  • Shared Projects

40. Which of the following view control displays the stacks of data vertically?

  1. ListView
  2. TableView

Answer: A ListView

Explanation: ListView control displays the stacks of data vertically.

41. Which of the following view control displays the stacks of data horizontally?

  1. ListView
  2. TableView

Answer: B TableView

Explanation: TableView control displays the stacks of data horizontally.

42. Which of the following is used in a situation where Less platform-specific code is required?

  1. Xamarin.native
  2. Xamarin.forms

Answer: B Xamarin.forms

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

43. Data Binding is based on ____?

  1. MVP
  2. MVC
  3. MVVM

Answer: C MVVM

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

44. How many types of pages are available in Xamarin Forms?

  1. 5
  2. 6
  3. 2
  4. 3

Answer: C 2

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

45. Assists developers in creating a single cross-platform API for their mobile applications, which can be accessed via common code?

  1. Xamarin Profiler
  2. Xamarin Insights
  3. Xamarin Studio
  4. Xamarin.Essentials

Answer: D Xamarin.Essentials

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

46. In Xamarin, ____Android gives access to all native Android APIs?

  1. Mono
  2. Android
  3. Data binding

Answer: A Mono

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

47. Among MVVMCross and MVVMlight which of the following is a .NET cross-platform MVVM framework?

  1. MVVMCross
  2. MVVMlight

Answer: A MVVMCross

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

48. A ____ is a tiny individual element that represents a single ListView or Table item.

  1. Cells
  2. Tabs
  3. ViewTable
  4. ViewCell

Answer: D ViewCell

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

49. ____is a ViewModel attribute that allows you to use the command interface.

  1. Commands_interface
  2. ICommand
  3. CommandInter

Answer: B ICommand

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

50. Which company created mono?

  1. Xamarin
  2. Microsoft
  3. Google

Answer: A Xamarin

Explanation: Xamarin created Mono.

51. 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?

  1. Xamarin.forms
  2. Xamarin.native
  3. Both

Answer: A Xamarin.forms

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

Xamarin Objective Questions with Answers Pdf Download

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top