Question 31

A developer considers the following snippet of code:

Based on this code, what is the value of x?
  • Question 32

    A developer is asked to write negative tests as part of the unit testing for a method that calculates a person's age based on birth date. What should the negative tests include?
  • Question 33

    Universal Containers wants Opportunities to no longer be editable when reaching the Closed/Won stage.
    How should a developer accomplish this?
  • Question 34

    A sales manager wants to make sure that whenever an opportunity stage is changed to 'Closed Won', a new case will be of created for the support team to collect necessary information from the customer. How should a developer accomplish this?
  • Question 35

    A developer has the controller class below.

    Which code block will run successfully in an execute anonymous window?
    myFooController m = new myFooController();