Are you a candidate looking to sharpen your skills? Try our practice tests or view sample interview questions & Get hired by the best. Click Here×

Xamarin MVVM Online Test

Topics Covered

  • StringFormat attribute
  • Xamarin Forms
  • DataContext
  • ViewModel
  • MVVM Frameworks
  • ValueConverter in XAML

Useful for hiring

  • Xamarin Developer - MVVM

Start hiring job-fit candidates using this assessment

GET A DEMO

"Finding quality talent is a challenge more so when you consider the sheer number of resumes we get each year. To top this, the time we spent on our recruitment process was humongous. Interview Mocha helped us to cut down on our candidate filtration time by 40%, making it our preferred assessment tool."

Pedro Furtado, Altran,
Capacity Manager
Question

You have a requirement to format Decimal values using the Currency string format in Labels, which of the following are the correct ways to do this?

Note: There can be multiple correct answers to this question.

Answer
    • Set the StringFormat in the Style of all controls that need this behavior

    • Use a ValueConverter to format the output and use it in the binding declaration of the Content property

    • User a the StringFormat parameter to format the output in the binding declaration of the Content property

    • None of the mentioned

Question

Which of the following can you use to simplify the INotifyPropertyChanged implementation and usage?

Note: There can be multiple correct answers to this question.

Answer
    • Use [CallerMemberName] in the parameter declaration of the method that calls the PropertChangedEvent so that you don't need to explicitly declare the name of the property.

    • Use a base class that already has the INotifyPropertyChanged interface implementation.

    • Use assembly weavers like Fody and PostSharp that can handle this implementation at build time for you.

    • None of the mentioned

Question

You want to create a Command that is binded to a Button. This button can only be enabled if the thebooleanCanContinue property you have in your ViewModel is true. Which is the best alternative on how can you do this using MVVM?

Answer
    • Create an "if" statement in the Execute command method that returns if the CanContinue value is false

    • Use an EventHandler for the Click event and in this handler create an "if" statement in the that returns if the CanContinue value is false

    • return the CanContinue value in the CanExecute method of the command you created

    • Bind the CanContinue value to the IsEnabled property of the button

Good News! You can customize this test as per your requirement

  • Choose and add questions from Interview Mocha question libraries

  • Add your own set of questions

  • Customize test settings like duration, number of questions, passing score, web proctoring and much more

  • Mail us at support@interviewmocha.com to create a custom test

Looking for a tailor-made test, to suit your assessment needs?

Get in touch

Global companies using Mocha assessments

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • akamai

How Mocha assessments are brewed

Speed up your IT recruitment with Interview Mocha

  • 500+ IT skill tests
  • 20+ coding languages
  • 50+ domain knowledge tests
  • 100+ digital 2.0 skill tests
  • Customer focus aptitude tests
  • Enterprise ready features & more...
GET A DEMO

Why hiring managers and recruiters across the globe love Interview Mocha

Take your first step to hire job fit candidates

GET A DEMO