InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What is use of ICommand in xamarin forms? |
|
Answer» ICommand is a PROPERTY in a ViewModel that is used to access the COMMAND interface. For this, a ViewModel must REFER a CLASS that can implement the ICommand interface. When used with Windows Class, it ALLOWS you to share your ViewModels between Xamarin.Forms and Windows App. |
|
| 2. |
Explain the differences between mono and Xamarin? |
||||||
Answer»
|
|||||||
| 3. |
What is mono Android in xamarin? |
|
Answer» Mono Android in Xamarin PROVIDES an access to all INDIGENOUS Android API's. This is POSSIBLE because a mono runtime is ported to the Android OS. |
|
| 4. |
What is shared code? |
|
Answer» A shared code ALLOWS you to write a common code that refers to numerous DIFFERENT APPLICATION PROJECTS. It incorporates platform-specific functionality when compiler DIRECTIVES are included in shared code. |
|
| 5. |
What are the different code sharing techniques in xamarin forms? |
|
Answer» There are 3 code sharing techniques in xamarin forms:
|
|
| 6. |
What is the purpose of XAML compiler in Xamarin? |
|
Answer» It notifies users about any error during the compile-TIME checking of XAML. It eliminates the load and indirect REFERENCING time for XAML elements. It doesn't include the FINAL ASSEMBLY hence reduces the file SIZE. |
|
| 7. |
Explain Data Binding in Xamarin. |
|
Answer» A technique that automatically synchronizes the user INTERFACE with its SOURCE of data is KNOWN as data binding. After data binding, any change made on the business MODEL or data gets automatically reflected in the UI and vice VERSA. |
|
| 8. |
What are the advantages in using xamarin for development? |
|
Answer» They can deliver native iOS, Windows, and Android APPS using existing skills, teams, and CODE(C# XAML).
|
|
| 9. |
What is Android Callable Wrappers? |
|
Answer» When the ANDROID runtime needs to call managed code, we use Android Callable Wrappers. These wrappers are needed because it is not POSSIBLE to register CLASSES with Android runtime during a runtime. Thus WHENEVER there is a lack of runtime type registration support needed, Android Callable Wrappers come into play. |
|
| 10. |
What is Xamarin.Essentials? |
|
Answer» Xamarin Essentials helps developers to establish a single cross-platform API for their mobile applications like Android, iOS, and any UWP applications or Xamarin.Forms that can be accessed from shared CODE. This library APIS SAVE a lot of TIME and money for developers and facilitates the RAPID prototyping process. |
|
| 11. |
What is view to view binding? |
|
Answer» View to view bindings means LINKING of the properties of two views on the same page just like data bindings which LINK properties of two objects, called SOURCE and TARGET. |
|
| 12. |
What is ResourceDictionary? |
|
Answer» A RESOURCE dictionary is a repository for XAML RESOURCES that your application uses, such as styles. You define resources in XAML and retrieve it using two MARKUP EXTENSIONS. Static and Theme resource. You can also retrieve it using a code. |
|
| 13. |
How many types of pages are available in Xamarin forms? |
|
Answer» There are 6 types of PAGES available in XAMARIN Forms: Carousel PAGE, CONTENT Page, MasterDetail Page, Navigation Page, Tabbed Page, and Template Page. |
|
| 14. |
What are the types of layout control in the Xamarin.Forms? |
|
Answer» There are 5 TYPES of LAYOUT CONTROL in Xamarin.Forms:
|
|
| 15. |
What is the lifecycle of Xamarin.Forms apps? |
|
Answer» FOUR events occur during the Xamarin.Forms LifeCycle: |
|
| 16. |
What are the Effects and when should they be used? |
|
Answer» Effects SIMPLIFY the CUSTOMIZATION of controls, are reusable, and further parameters can be added in the future to increase its reuse. It allows us to customize the traditional or native controls on each platform. An Effect is recommended when we change the PROPERTIES of a platform-specific CONTROL that is ACHIEVING the desired result. |
|
| 17. |
What is data binding in Xamarin? |
|
Answer» Data Binding is based on MVVM (Model-View-ViewModel) Architecture. It links the properties of two objects. This ALLOWS changes in one property to automatically reflect in the other one. It can be IMPLEMENTED either with XAML or with code. It is WISE to use it with XAML as it REDUCES the code-behind file size. |
|
| 18. |
What is the difference between TableView and ListView in Xamarin? |
||||||||
Answer»
|
|||||||||
| 19. |
Explain the working of Xamarin.IOS. |
|
Answer» Xamarin uses a fully FUNCTIONAL implementation of the .NET runtime known as Mono, which compiles the app into a native ARM which helps to execute the code using all the functionalities of C#. It uses all the features of C# and .NET such as memory management, .NET BASE class libraries, and reflection. Developers then use any of the features of the provided programming languages to create native APIs on iOS while taking CARE of Apple’s privacy policies. |
|
| 20. |
What are the ways in which Xamarin applications can be created? |
|
Answer» Using XAMARIN Technology, there are two ways in which we can deliver native iOS, Android or Windows apps:
|
|
| 21. |
Differentiate between Xamarin Studio and Visual Studio. |
Answer»
|
|
| 22. |
State the disadvantages of Xaml in Xamarin.Forms. |
|
Answer» There are several disadvantages of Xaml in Xamarin. Forms which can be explained by the following points
|
|
| 23. |
State the Programming languages that support Xamarin Development. |
|
Answer» Xamarin is very unique as it uses only one language, and that language is C#, it has a class library and runtime that WORK throughout all the three platforms of iOS, Android and WINDOWS PHONE( The native language of Xamarian is already C#). It ALSO offers Xami support for creating a user interface. Also Read: Most FREQUENTLY Asked React Native Interview Questions |
|
| 24. |
Define Xamarin? |
|
Answer» Xamarin is basically a cross-platform technology that uses a SINGLE codebase with C# where the user can build suitable native user interfaces as well as native applications for platforms such as Windows, macOS, etc. It is a one-stop platform whose TOOLS can be used in any of the operating systems and thus various applications can be developed which can run on these platforms without any kind of SIGNIFICANT change in the code. |
|
| 25. |
Differentiate between Native App and Cross-platform App |
|
Answer» Native App: Specific native LANGUAGE(C#, Objective C, Swift, JAVA) is needed to develop a specific native app for Windows, Android or IOS. These are all needed if we are looking forward to developing a native app Cross-platform App: Using a cross-platform, a DEVELOPER can develop an app for all three mobile platforms. It uses a single code base wrapping in a native APPLICATION LAYER. Customization of interfaces to native languages is always required. |
|
| 26. |
Why AOT is used for Xamarin.iOS? |
|
Answer» Apple has put a security feature on iOS where it DISALLOWS any dynamically generated codes on that device. Xamarin.iOS understands this safety RESTRICTION and USES Ahead of TIME compiler also known as AOT and compiles the managed codes of Microsoft Intermediate Language (MSIL) and produces a NATIVE iOS binary code. |
|
| 27. |
What is difference between xamarin forms and native? |
||||||||||||
Answer»
|
|||||||||||||