Skip to main content

Xamarin Interview Questions and Answers

1.       What Is Xamarin?
2.      Difference between Xamarin.Forms & Xamarin Native?
3.      What is Xamarin.Forms and what are the benefits of using it?
4.      Which Languages are supported for Xamarin development?
5.      What is the basic architecture of Xamarin.Forms project?
6.      What is the project structure of Xamarin.Forms?
7.      How many ways can we share the code?
8.      What is the difference between PCL & Shared Project?
9.      What is App.cs class?
10.   Explain Lifecycle methods of Xamarin.Forms app.
11.    What is the purpose of XAML Compiler (XAMLC)?
12.   What is XAML namespace declaration?
13.   What is XAML Markup Extensions?
14.   How many types of different XAML Markup Extensions do you know?
15.   What is ResourceDictionary?
16.   When would you use the NavigationPage as a MainPage?
17.   What is the purpose of InitializeComponent() method in Page?
18.   What are the different kinds of Pages in Xamarin.Forms?
19.   How will you navigate from one page to another?
20.  Can we access Navigation property in ViewModel?
21.   So, how do we perform navigation from ViewModel?
22.  How many LayoutOptions do we have?
23.  What are the layout controls available in Xamarin.Forms?
24.  So, what is the special meaning with "AndExpand" Suffix with each LayoutOptions?
25.  What is the difference between Margin and Padding properties?
26.  What is the Type of Margin and Padding Properties?
27.  How to add / draw a separator line between two controls?
28.  Which best practices to follow while designing the XAML Page?
29.  What is Views?
30.  What is is the difference between ListView & TableView?
31.   How to increase the ListView performance?
32.  What is ViewCell and How many types of built-in Cells are available?
33.  Why do we need to create a Custom ViewCell?
34.  How to render different types of ViewCell in the same ListView during runtime?
35.  How to draw rectangle in Xamarin.Forms?
36.  How to store simple Key-Value data?
37.  What is difference between Margin & Padding property?
38.  What is difference between Entry and EntryCell in Xamarin.Forms?
39.  What is Behaviors and give some examples where we should use Behaviors?
40. How to Bind View's event with Command?
41.   Can we bind a Command on Image tap?
42.  How to display alert in Xamarin.Forms?
43.  What is difference between DisplayAlert and DisplayActionSheet?
44. What is Custom Renderers and what is its purpose?
45.  What is Effects and When should we use it over Custom Renderers?
46. What is difference between ControlTemplate & DataTemplate?
47.  What are Triggers? How many types of Triggers are available?
48. How to display static HTML string in Xamarin.Forms?
49. What is DependencyService? Describe steps for the implementation.
50.  How do we provide Platform specific styling or values in XAML?
51.   How to perform Binding in Code Behind?
52.  What is View-to-View Binding?
53.  How many ways you can Bind a ViewModel with XAML?
54.  Is there any benefit in binding a ViewModel in backend .cs file?
55.  Can we really declare Parametrized ViewModel instance as BindingContext in XAML?
56.  How many ways we can Bind data?
57.  What is the purpose of INotifyPropertyChanged?
58.  What is MessagingCenter?
59.  So, what is the difference between MessagingCenter and Events?
60. How to call a specific method for some specific Platform only?
Reference links -
By Anil Singh | Rating of this article (*****)

Popular posts from this blog

React | Encryption and Decryption Data/Text using CryptoJs

To encrypt and decrypt data, simply use encrypt () and decrypt () function from an instance of crypto-js. Node.js (Install) Requirements: 1.       Node.js 2.       npm (Node.js package manager) 3.       npm install crypto-js npm   install   crypto - js Usage - Step 1 - Import var   CryptoJS  =  require ( "crypto-js" ); Step 2 - Encrypt    // Encrypt    var   ciphertext  =  CryptoJS . AES . encrypt ( JSON . stringify ( data ),  'my-secret-key@123' ). toString (); Step 3 -Decrypt    // Decrypt    var   bytes  =  CryptoJS . AES . decrypt ( ciphertext ,  'my-secret-key@123' );    var   decryptedData  =  JSON . parse ( bytes . toString ( CryptoJS . enc . Utf8 )); As an Example,   import   React   from   'react' ; import   './App.css' ; //Including all libraries, for access to extra methods. var   CryptoJS  =  require ( "crypto-js" ); function   App () {    var   data

List of Countries, Nationalities and their Code In Excel File

Download JSON file for this List - Click on JSON file    Countries List, Nationalities and Code Excel ID Country Country Code Nationality Person 1 UNITED KINGDOM GB British a Briton 2 ARGENTINA AR Argentinian an Argentinian 3 AUSTRALIA AU Australian an Australian 4 BAHAMAS BS Bahamian a Bahamian 5 BELGIUM BE Belgian a Belgian 6 BRAZIL BR Brazilian a Brazilian 7 CANADA CA Canadian a Canadian 8 CHINA CN Chinese a Chinese 9 COLOMBIA CO Colombian a Colombian 10 CUBA CU Cuban a Cuban 11 DOMINICAN REPUBLIC DO Dominican a Dominican 12 ECUADOR EC Ecuadorean an Ecuadorean 13 EL SALVADOR

Angular 7 and 8 Validate Two Dates - Start Date & End Date

In this example, I am sharing “ How to compare or validate two dates in Angular? ” using custom validation function in Angular 7 and Angular 8 . Here, I’m validating the two dates  - a start date and end date. The end date should be greater than the Start date”. Let’s see the example :- import { Component , OnInit } from '@angular/core' ; import { UserRequest } from '../model/user' ; @ Component ({   selector: 'User_Cal' ,   templateUrl: './usercal.component.html' ,   styleUrls: [ './usercal.component.css' ] }) export class UserCalComponent implements OnInit {   constructor ( private EncrDecr : EncrDecrService , private   http :  HttpClient ,               private datePipe : DatePipe ) {                            }   //model class   model = new UserRequest ( null , null , null , null , null );   //Error Display   error : any ={ isError: false , errorMessage: '' };   isValid

Encryption and Decryption Data/Password in Angular

You can use crypto.js to encrypt data. We have used 'crypto-js'.   Follow the below steps, Steps 1 –  Install CryptoJS using below NPM commands in your project directory npm install crypto-js --save npm install @types/crypto-js –save After installing both above commands it looks like  – NPM Command  1 ->   npm install crypto-js --save NPM Command  2 ->   npm install @types/crypto-js --save Steps 2  - Add the script path in “ angular.json ” file. "scripts" : [                "../node_modules/crypto-js/crypto-js.js"               ] Steps 3 –  Create a service class “ EncrDecrService ” for  encrypts and decrypts get/set methods . Import “ CryptoJS ” in the service for using  encrypt and decrypt get/set methods . import  {  Injectable  }  from   '@angular/core' ; import   *   as   CryptoJS   from   'crypto-js' ; @ Injectable ({    providedIn:   'root' }) export   class   EncrDecrS

23 Best Key Features of MVC 6 and MVC 5

What’s new In MVC 6? The Added Key Features as following as, 1. The Microsoft makes a bundle of MVC, Web API, WebPages, SignalR, that bundle we called  MVC6 . 2. The MVC 6   added new cloud computing optimization system of MVC, web API, SignalR and entity framework. 3. In MVC 6, Microsoft removed the dependency of system.web.dll from MVC 6 because it's so expensive. Typically it consumes 30K memory per request/response. 4. Right now, in MVC 6 consume 2K memory per request response. It's too small memory consume. 5. Most of the problem solved using the  Roslyn Compiler . 6 . It’s added a  Start-up  class that replaces to  global.asax  file. 7. The Session state and caching adjusts our behavior depending on your hosting environment. 8. Host agnostic and its true side-by-side deployment 9. The vNext is a cross platform and open source and it's also supported to Mac, Linux, etc. 10. It’s also added to TagHeaplers use to creating an