Xamarin interview question & answer

Xamarin interview question & answer: It is time to learn xamarin cross-platform development and people are already started in so many organizations, because of we can deliver native iOS, Android, and Windows apps using existing skills, teams, and code(C#, xaml ) with free of cost. Many companies are started hiring the Xamarin developers, and if you are good at xamarin, they are ready to give bigger packages for you as much as possible. If you are looking for a Xamarin developer position in a new company and you may need to face interview questions on Xamarin Technology.

Below are most asked data science interview question & answer by Experts:

Q1. What is Xamarin?

Ans: It is cross-platform development technology, where we can build native user interfaces for iOS, Android and Windows Phone using single codebase with C#.

Q2. Xamarin history?

Ans: Xamarin is a Microsoft-owned San Francisco, California based software company founded in May 2011 by the engineers that created Mono, Mono for Android and MonoTouch.

  • Novell had granted a perpetual license for Mono on July 2011 for MONO 
  • On May 16, 2011: Miguel de Icaza announced on his blog that Mono would be developed and supported by Xamarin,
  • December 2012, Xamarin released Xamarin. Mac which allows developers to build C#-based applications for the Apple OS X operating system and package them for publishing via the Apple App Store.
  • Xamarin 2.0 was released in February 2013 Xamarin. Android and Xamarin.iOS that make it possible to do native Android, iOS and Windows development in C#, with either Visual Studio or Xamarin Studio.
  • Xamarin.forms: Introduced in Xamarin 3 on May 28, 2014, and allows one to use portable controls subsets that are mapped to native controls of Android, iOS and Windows Phone.
  • On February 24, 2016: Microsoft announced it signed a definitive agreement to acquire Xamarin
  • On March 30, 2016: Microsoft acquired the xamarin. And made it for all with free of cost.

Q3. What are the programming languages that support Xamarin Development?

Ans:   Xamarin is unique in this space by offering a single language – C#, class library, and runtime that works across all three mobile platforms of iOS, Android, and Windows Phone (Windows Phone’s native language is already C#)

  • Also offers xaml support for creating a user interface.

Q4. What is the difference between Native App and Cross-Platform APP?

Ans: Native App: If we want to develop native apps, we need to choose the specific native language (C#, Objective-C, Swift, and Java) for developing a specific native app for Windows, Android, iOS.

  • Cross-Platform App: This is the way to develop all three mobile apps using a single code base wrapped in a native application layer, but it always requires customization of interfaces to native languages.

Q5. Why Xaml in Xamarin.Forms?

  • XAML(Extensible Application Markup Language) allows developers to define user interfaces in Xamarin.Forms applications using markup rather than code.
  • XAML defines the visual appearance of a UI, and an associated code-behind file defines the logic. The UI design can be adjusted without necessarily making changes to the logic in code-behind. XAML in this role simplifies the workflow between individuals who might have a primary visual design responsibility and individuals who are responsible for app logic and information design.

Q6. What is the disadvantage of Xaml in Xamarin.Forms?

  • XAML cannot contain code. All event handlers must be defined in a code file.
  • XAML cannot contain loops for repetitive processing. (However, ListView —can generate multiple children based on the objects in its ItemsSource collection.)
  • XAML cannot contain conditional processing (However, a data-binding can reference a code-based binding converter that effectively allows some conditional processing.)
  • XAML generally cannot instantiate classes that do not define a parameterless constructor. (However, there is sometimes a way around this restriction.)
  • XAML generally cannot call methods. (Again, this restriction can sometimes be overcome.)

Q7. What are the IDE’s we can use for Xamarin App Development?

Ans: Xamarin Studio: This is Xamarin’s C# developer environment that runs on both Windows and Mac. Xamarin Studio has many of the features of Microsoft’s Visual Studio and uses exactly the same formats as Visual Studio: solutions (.sln) and C# projects (.csproj).

Visual Studio: Xamarin offers a Visual Studio extension/plugin for visual studio 2012, visual studio 2013 update 1. And now Xamarin development is directly available from Visual Studio 2015.

Q8. What was the major advantage of Xamarin Development?

Ans: We can deliver native iOS, Android, and Windows apps using existing skills, teams, and code(C#, xaml )

  • We can take full advantage of Native API with Xamarin Technology. And Xamarin.Forms elements map to native controls and behaviors
  • Xamarin Component Store allows adding high-quality components to your app directly from your IDE, including controls, web service APIs and more.
  • PCL/ Shared projects make very easy for developers to share the same code base across different projects.

Q9. What are the life cycle’s of Xamarin.forms app development?

Ans: Life-Cycle means a specific sequence of the application from start to finish of the application. So there are three important states in the life cycle of a Xamarin app development.
OnStart: Called when the application starts.
OnSleep: Called each time the application goes to the background.
OnResume: Called when the application is resumed, after being sent to the background.
There is no method for application termination. Under normal circumstances, (ie. not a crash) application termination will happen for the OnSleep state, without any additional notifications to your code.

Q10: How many ways we can create Xamarin applications?

Ans: There are two ways to deliver native iOS, Android, and Windows apps using Xamarin Technology
Traditional Xamarin approach: This approach can provide direct access to platform-specific API’s. And we can create platform-specific apps such as using Xamarin.iOS for iOS applications, using Xamarin. Android we can create Android applications.

Xamarin.forms: This architecture is the same as that of traditional cross-platform apps. The most used method is to implement Portable Libraries or Shared Projects to save the shared code, and then create specific applications for each platform that will consume this shared code.

Q11: When to use Xamarin.Forms vs Xamarin Native?

Ans: Xamarin.Forms:

  • Apps that require little platform-specific functionality.
  • Apps where code sharing is more important than custom UI.

Xamarin.IOS, Xamarin.Android:

  • Apps that require specialized interactions.
  • Apps with a highly polished design.
  • Apps that use many platform-specific APIs.
  • Apps where custom UI is more important than code sharing.

Q12: What are different extension output files generated from xamarin.forms?

Ans: If we run the Xamarin app, it can generate following application packages for different platforms
.xap/.Appx for windows phone 8, Windows, UWP
.ipa file for IOS
.apk file for Android

Q13. What is the different application package running modes in Xamarin?

Ans: When you compile an application, you usually choose between below two modes:
Debug: Debug mode pads the executable file with extra information used for debugging purpose. After your application is bug-free and feature-complete, there’s no longer any need to keep the debug information.
Release: Compiling in Release mode gives you a more compact (and even slightly faster) executable that doesn’t include unnecessary internal debugging symbols
Note: Packages should be in release mode, which would be provided to an App store.

Q14. How does Xamarin.Android(Mono for Android) work?

Ans: On Android, Xamarin ships a fully functional implementation of the .NET runtime, called Mono, bundled with your app so that your code executes with all of the power of C# and .NET, including JIT-compilation, memory management, reflection, and the .NET base class libraries. Developers can use any native features by interacting with .NET class libraries that provide one-to-one mappings to all of the native APIs on Android.

Q15. What is the difference between Xaml & axml in Xamarin Technology?

Ans:    AXML and XAML are two different XML specifications.

  • AXML is just supported/available for Xamarin.Android.
  • XAML is the way Xamarin Forms could standardize Cross-Platform UI based on XML specification.
  • XAML is the way Xamarin Forms could standardize Cross-Platform UI based on XML specification.
  • If you are using native Xamarin Android you will do UI using axml, if using Forms then using XAML.


data science interview question & answer


close slider

Your Name (required)

Your Email (required)

Contact Number




No Of Participant