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?
- Web development tool
- Mobile App development tool
- Testing tool
Answer: B Mobile App development tool
Explanation: Xamarin is a mobile app development tool.
3. Which of the following company owns Xamarin?
- IBM
- Amazon
- Microsoft
Answer: D Microsoft
Explanation: Xamarin is owned by Microsoft cooperation.
4. In which language Xamarin applications are written?
- C#
- Python
- Java
Answer: A C#
Explanation: Xamarin applications are written in C#.
5. XAMARIN is built on top of ____?
- C#
- Python
- .NET
- Java
Answer: C .NET
Explanation: Xamarin is built on top of .NET.
6. 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.
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.
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.
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.
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.
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.
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.
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
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
27. What is XAML?
- Extensible markup language
- Extensile markup language
- 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?
- 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.
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.
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:
- Default
- One way
- Two way
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.
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.
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.
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.
35. Xamarin.Forms uses ____.
- MVVM
- XAML
- Only A
- Only B
- 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?
- 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.
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.
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.
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
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.
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.
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.
43. Data Binding is based on ____?
- MVP
- MVC
- 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?
- 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.
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.
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.
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.
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.
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.
50. Which company created mono?
- Xamarin
- Microsoft
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?
- 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.
