• +91 9723535972
  • info@interviewmaterial.com

Xamarin Interview Questions and Answers

Xamarin Interview Questions and Answers

Question - 81 : - What is difference between Margin & Padding property?

Answer - 81 : -

Margin is applied to the outside of you element hence effecting how far your element is away from other elements. Padding is applied to the inside of your element hence effecting how far your element’s content is away from the border.

Question - 82 : - What is Xamarin.Android?

Answer - 82 : -

Xamarin.Android allows us to create native Android applications using the same UI controls we would in Java,except with the flexibility and elegance of a modern language(C#),the power of the .NET Base Class Library(BCL).

Question - 83 : - Can we develop Windows mobile application using xamarin Studio in mac OS?

Answer - 83 : -

No.We need Windows machine for develop windows based application.

Question - 84 : - What is use of MOBILE conditional compilation?

Answer - 84 : -

Xamarin projects always define MOBILE Which is true for both iOS and Android application projects

  • #if_MOBILE_
  • //Xamarin iOS or Android specific code
  • #endif

Question - 85 : - Why we need to use Model-View-ViewModel(MVVM) pattern in Xamarin?

Answer - 85 : -

The Model-View-ViewModel pattern can be used on all XAML platforms. Its intent is to provide a clean separation of concerns between the user interface controls and their logic.

Question - 86 : - Name few widely used Layout Controls

Answer - 86 : -

  • Frame: It contains a single element as a child having a default padding of 20.
  • Grid: It is used when UI components are to be arranged into Rows & Columns.
  • StackLayout: It is used when UI components are to be arranged either horizontally or vertically.
  • ScrollView: It enables the scrolling for a child element if required. It has one child only.
  • There are other Layout Controls too like AbsoluteLayout, RelativeLayout, ContentView, ContentPresenter, etc.

Question - 87 : - What are the life cycle’s of Xamarin.forms app development?

Answer - 87 : -

  • 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.

Question - 88 : - What is NuGet and how it can help in Xamarin App Development?

Answer - 88 : -

NuGet is the most popular package manager for .NET development. It is built in to Xamarin Studio 5 and Visual Studio. You can easily search for and add packages/third party libraries to your Xamarin.Forms using either IDE.


NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners