Home » 
        MCQs
    
        
    Xamarin Multiple-Choice Questions (MCQs)
    
    
        
    Xamarin is an open-source platform for building modern and performant applications for iOS, Android, and Windows with .NET.
    Xamarin MCQs: This section contains multiple-choice questions and answers on the various topics of Xamarin. Practice these MCQs to test and enhance your skills on Xamarin.
        
    List of Xamarin MCQs
    1. What is XAMARIN?
    
      - Web development tool
 
      - Mobile App development tool
 
      - Testing tool
 
    
    Answer: B) Mobile App development tool
    Explanation:
    Xamarin is a mobile app development tool.
    
        Discuss this Question
    
    
    
	2. Which of the following company owns Xamarin?
    
      - IBM
 
      - Google
 
      - Amazon
 
      - Microsoft
 
    
    Answer: D) Microsoft
    Explanation:
    Xamarin is owned by Microsoft cooperation.
    
        Discuss this Question
    
    
    
	3. In which language Xamarin applications are written?
    
      - C#
 
      - Python
 
      - Java
 
    
    Answer: A) C#
    Explanation:
    Xamarin applications are written in C#.
    
        Discuss this Question
    
    
    
	4. XAMARIN is built on top of ____?
    
      - C#
 
      - Python
 
      - .NET
 
      - Java
 
    
    Answer: C) .NET
    Explanation:
    Xamarin is built on top of .NET.
    
        Discuss this Question
    
    
    
	5. Using Xamarin can we create apps for IOS?
    
      - Yes
 
      - No
 
    
    Answer: A) Yes
    Explanation:
    Using the same codebase, we can construct apps for iOS, Android, and Windows.
    
        Discuss this Question
    
    
    
	6. 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?
    
      - Xamarin.forms
 
      - Xamarin.native
 
      - 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.
    
        Discuss this Question
    
    
    
	7. When we want to construct a distinct version of the same App for multiple platforms, we utilize which of the following method?
    
      - Xamarin.forms
 
      - Xamarin.native
 
      - 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.
    
        Discuss this Question
    
    
    
	8. ____is a tool that developers use to keep track of information about a specific app inside Visual Studio?
    
      - Xamarin.forms
 
      - Xamarin.native
 
      - Xamarin analyze
 
      - Xamarin Profiler
 
      - 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.
    
        Discuss this Question
    
    
    
	9. ____is a tool that allowed the developers to identify and track the issue with the apps in real-time?
    
      - Xamarin.forms
 
      - Xamarin.native
 
      - Xamarin analyze
 
      - Xamarin Profiler
 
      - 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.
    
        Discuss this Question
    
    
    
	10. Which of the following file includes all of the information about the Android platform that an app requires to execute correctly?
    
      - API file
 
      - Android File
 
      - 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.
    
        Discuss this Question
    
    
    
	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 ____?
    
      - Android Resources
 
      - Config File
 
      - 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.
    
        Discuss this Question
    
    
    
	12. Which of the following folder saves all of the photographs that you want to utilize in your program?
    
      - Layout folder
 
      - Drawable folder
 
      - Main activity folder
 
      - Static folder
 
    
    Answer: B) Drawable folder
    Explanation:
    Drawable folder saves all of the photographs that you want to utilize in your program.
    
        Discuss this Question
    
    
    
	13. How many processes are included in an Android activity?
    
      - 2
 
      - 5
 
      - 7
 
      - 8
 
    
    Answer: C) 7
    Explanation:
    There are 7 lifecycle processes in an Android activity.
    
      - onCreate 
 
      - onStart 
 
      - onResume 
 
      - onPause 
 
      - onStop 
 
      - onRestart
 
      - onDestroy
 
    
    
        Discuss this Question
    
    
    
	14. When the activity is first formed, which of the following process is invoked?
    
      - onCreate 
 
      - onStart 
 
      - onResume 
 
      - onRestart
 
    
    Answer: A) onCreate
    Explanation:
    When the activity is first formed, onCreate process is invoked.
    
        Discuss this Question
    
    
    
	15. When the action begins and becomes visible to the user, this process is known as ____?
    
      - onCreate 
 
      - onStart 
 
      - onResume 
 
      - onRestart
 
    
    Answer: B) onStart
    Explanation:
    When the action begins and becomes visible to the user, it is termed as onStart process.
    
        Discuss this Question
    
    
    
	16. Which of the following method is called after the activity has stopped, before starting again?
    
      - onCreate 
 
      - onStart 
 
      - onResume 
 
      - onRestart
 
    
    Answer: D) onRestart
    Explanation:
    onRestart method is called after the activity has stopped, before starting again.
    
        Discuss this Question
    
    
    
	17. Which of the following method is the final call before the activity is erased from memory?
    
      - onCancel
 
      - onDestroy
 
      - onStop
 
      - onResume
 
    
    Answer: B) onDestroy
    Explanation:
    In onDestroy process, the final call before the activity is erased from memory.
    
        Discuss this Question
    
    
    
	18. Which of the following method is called when the activity is no longer visible to the user?
    
      - onDestroy
 
      - onStop
 
      - onResume
 
    
    Answer: B) onStop
    Explanation:
    When the activity is no longer visible to the user, onStop method is invoked.
    
        Discuss this Question
    
    
    
	19. Which of the following component is primarily used for displaying texts on an Android screen?
    
      - TextView
 
      - Units
 
      - Module
 
      - Text
 
    
    Answer: A) TextView
    Explanation:
    TextView following component is primarily used for displaying texts on an Android screen.
    
    
        Discuss this Question
    
    
    
	20. Which of the following is a view technique that we use for displaying a message or output in a little pop-up window?
    
      - TextView ()
 
      - Toast.MakeText()
 
      - Make.Text ()
 
      - 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.
    
        Discuss this Question
    
    
    
	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?
    
      - ListAdapter
 
      - ArrayHandler
 
      - MakeList
 
      - 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.
    
        Discuss this Question
    
    
    
	22. In which of the following layout's views the location of the child view is relative to its parent or sibling view?
    
      - Horizontal Layout
 
      - Vertical Layout
 
      - Relative Layout
 
      - 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.
    
        Discuss this Question
    
    
    
	23. The ____layout is used to display only one item?
    
      - Horizontal Layout
 
      - Vertical Layout
 
      - Relative Layout
 
      - Frame layout
 
    
    Answer: D) Frame layout
    Explanation:
    The frame layout is used to display only one item.
    
        Discuss this Question
    
    
    
	24. In which of the following layout, the view is arranged into rows and columns?
    
      - Horizontal Layout
 
      - Table Layout
 
      - Relative Layout
 
      - Frame layout
 
    
    Answer: B) Table Layout
    Explanation:
    In the table layout, the view is arranged into rows and columns.
    
        Discuss this Question
    
    
    
	25. Which of the following widget is used to display the date?
    
      - Date Picker
 
      - Date Display
 
      - Date
 
      - Time Picker
 
    
    Answer: D) Time Picker
    Explanation:
    The date Picker widget is used to display the date.
    
        Discuss this Question
    
    
    26. A ____ is a widget that allows you to choose one choice from a list. It is similar to a dropdown/combo box?
    
      - Drop down
 
      - Main menu
 
      - Spinner
 
      - 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.
    
        Discuss this Question
    
    
    
	27. What is XAML?
    
      - Extensible markup language
 
      - Extensile markup language
 
      - Schema markup language
 
    
    Answer: A) Extensible markup language
    Explanation:
    XAML means Extensible markup language.
    
        Discuss this Question
    
    
    
	28. ____is a stand-alone integrated development environment (IDE) for building cross-platform mobile applications based on the open-source project Monodevelop?
    
      - Xamarin analyze
 
      - Xamarin Profiler
 
      - Xamarin Insights
 
      - 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.
    
        Discuss this Question
    
    
    
	29. Which of the following works on both Windows OS X environments?
    
      - Xamarin studio
 
      - Visual Studio
 
    
    Answer: A) Xamarin studio
    Explanation:
    Xamarin Studio works on both Windows OS X environments.
    
        Discuss this Question
    
    
    
	30. How many types of binding modes does Xamarin supports?
    
      - 4
 
      - 2
 
      - 5
 
      - 3
 
    
    Answer: D) 3
    Explanation:
    Xamarin supports 3 types of binding modes:
    
    
        Discuss this Question
    
    
    
	31. A ____is a user interface element that shows scrollable lists of things?
    
      - List view
 
      - TextView
 
      - Grid View
 
      - Module
 
    
    Answer: A) List view
    Explanation:
    A Listview is a user interface element that shows scrollable lists of things.
    
        Discuss this Question
    
    
    
	32. A ____is a type of view group that allows programs to display material in a two-dimensional, scrollable grid?
    
      - List view
 
      - TextView
 
      - Grid View
 
      - 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.
    
        Discuss this Question
    
    
    
	33. ____is a mechanism for synchronizing the data source with the user interface.
    
      - Array adapter
 
      - Data binding
 
      - Project portables
 
    
    Answer: B) Data binding
    Explanation:
    Data Binding is a mechanism for synchronizing the data source with the user interface.
    
        Discuss this Question
    
    
    
	34. We can test the mobile application on numerous devices thanks to the ____cloud.
    
      - Xamarin Profiler
 
      - Xamarin Insights
 
      - Xamarin Studio
 
      - Xamarin test
 
    
    Answer: D) Xamarin test
    Explanation:
    We can test the mobile application on numerous devices thanks to the Xamarin test cloud.
    
        Discuss this Question
    
    
    
	35. Xamarin.Forms uses ____.
    
      - MVVM
 
      - XAML
 
      - Only A
 
      - Only B
 
      - Both
 
    
    Answer: E) Both
    Explanation:
    Xamarin.Forms use MVVM and XAML both.
    
        Discuss this Question
    
    
    
	36. Depending on the platform support, which of the following can be used to display Websites, HTML strings, Documents, and Local Files in Xamarin?
    
      - List view
 
      - TextView
 
      - Web view
 
      - 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.
    
        Discuss this Question
    
    
    
	37. Which of the following layout is used in Xamarin, When UI components must be positioned horizontally or vertically?
    
      - Stack Layout
 
      - ContentView
 
      - Frame
 
      - ScrollView
 
    
    Answer: A) Stack Layout
    Explanation:
    Stack layout in Xamarin is used when UI components must be positioned horizontally or vertically.
    
        Discuss this Question
    
    
    
	38. How many approaches does Xamarin provides to create an application?
    
      - 4
 
      - 5
 
      - 3
 
      - 2
 
    
    Answer: D) 2
    Explanation:
    Xamarin provides two approaches to create an application:
Xamarin.forms and Xamarin.native.
    
        Discuss this Question
    
    
    
	39. How many code-sharing techniques does Xamarin.forms provides?
    
      - 2
 
      - 4
 
      - 5
 
      - 3
 
    
    Answer: A) 2
    Explanation:
    There are two methods of sharing the code between the cross-platform applications:
    
      - Portable Libraries (PCL)
 
      - Shared Projects
 
    
    
        Discuss this Question
    
    
    
	40. Which of the following view control displays the stacks of data vertically?
    
      - ListView
 
      - TableView
 
    
    Answer: A) ListView
    Explanation:
    ListView control displays the stacks of data vertically.
    
        Discuss this Question
    
    
    
	41. Which of the following view control displays the stacks of data horizontally?
    
      - ListView
 
      - TableView
 
    
    Answer: B) TableView
    Explanation:
    TableView control displays the stacks of data horizontally.
    
        Discuss this Question
    
    
    
	42. Which of the following is used in a situation where Less platform-specific code is required?
    
      - Xamarin.native
 
      - Xamarin.forms
 
    
    Answer: B) Xamarin.forms
    Explanation:
    Xamarin.forms are used in a situation where Less platform-specific code is required.
    
        Discuss this Question
    
    
    
	43. Data Binding is based on ____?
    
      - MVP
 
      - MVC
 
      - MVVM
 
    
    Answer: C) MVVM
    Explanation:
    Data Binding is based on MVVM (Model-View-ViewModel) Architecture.
    
        Discuss this Question
    
    
    
	44. How many types of pages are available in Xamarin Forms?
    
      - 5
 
      - 6
 
      - 2
 
      - 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.
    
        Discuss this Question
    
    
    
	45. Assists developers in creating a single cross-platform API for their mobile applications, which can be accessed via common code?
    
      - Xamarin Profiler
 
      - Xamarin Insights
 
      - Xamarin Studio
 
      - 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.
    
        Discuss this Question
    
    
    
	46. In Xamarin, ____Android gives access to all native Android APIs?
    
      - Mono
 
      - Android
 
      - Data binding
 
    
    Answer: A) Mono
    Explanation:
    In Xamarin, Mono Android gives access to all native Android APIs.
    
        Discuss this Question
    
    
    
	47. Among MVVMCross and MVVMlight which of the following is a .NET cross-platform MVVM framework?
    
      - MVVMCross
 
      - MVVMlight
 
    
    Answer: A) MVVMCross
    Explanation:
    MVVMCross is a .NET cross-platform MVVM framework.
    
        Discuss this Question
    
    
    
	48. A ____ is a tiny individual element that represents a single ListView or Table item.
    
      - Cells
 
      - Tabs
 
      - ViewTable
 
      - ViewCell
 
    
    Answer: D) ViewCell
    Explanation:
    A ViewCell is a tiny individual element that represents a single ListView or Table item.
    
        Discuss this Question
    
    
    
	49. ____is a ViewModel attribute that allows you to use the command interface.
    
      - Commands_interface
 
      - ICommand
 
      - CommandInter
 
    
    Answer: B) ICommand
    Explanation:
    ICommand is a ViewModel attribute that allows you to use the command interface.
    
        Discuss this Question
    
    
    
	50. Which company created mono?
    
      - Xamarin
 
      - Microsoft
 
      - Google
 
    
    Answer: A) Xamarin
    Explanation:
    Xamarin created Mono.
    
        Discuss this Question
    
    
    
    
  
    Advertisement
    
    
    
  
  
    Advertisement