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×

WPF MVVM Skills Assessment Test

Topics Covered

  • Data Binding
  • MVVM concepts/CodeBehind
  • Commands
  • Value Converter
  • Styles
  • Dependency Properties
  • Debugging
  • Triggers/Data Binding

Useful for hiring

  • MVVM Developer
  • WPF Developer

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

In the following XAML example, in which color will the text appear to the user?






...





...

Answer
    • Red

    • Default text color

    • Green

    • Black

Question

You are developing a WPF application and there is a need to disable the execution of a Command binded to a Button in the XAML when a the IsAvaliable property of the ViewModel is set to false. Which of the following is the recommended way to do this when using MVVM?

Answer
    • Change the IsEnabled property of the control that executes the Command in codebehind

    • Change the Execute method logic of the command so it does nothing when executed

    • Set the Command that is binded to the button to null

    • Change the CanExecute method of the binded command to return the value of IsAvaliable

Question

What is a common reason to change the UpdateSourceTrigger when binding to TextBox.Text property?

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

Answer
    • The default mode of this DependencyProperty binding is OneWay, which will not update the property in the ViewModel

    • There is no reason to change the UpdateSourceTrigger.

    • The default UpdateSourceTrigger is LostFocus, which is not useful if you need to follow changes in the text as it is entered

    • None of the mentioned

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