Free DEV-450 Exam Braindumps (page: 2)

Page 1 of 95

What are two valid options for iterating through each Account in the collection List<Account> named AccountList? (Choose two.)

  1. for (Account theAccount : AccountList) {...}
  2. for(AccountList) {...}
  3. for (List L : AccountList) {...}
  4. for (Integer i=0; i < AccountList.Size(); i++) {...}

Answer(s): A,D



Which statement results in an Apex compiler error?

  1. Map<Id,Leas> lmap = new Map<Id,Lead>([Select ID from Lead Limit 8]);
  2. Date d1 = Date.Today(), d2 = Date.ValueOf(`2018-01-01');
  3. Integer a=5, b=6, c, d = 7;
  4. List<string> s = List<string>{`a',`b',`c');

Answer(s): D



A developer wants to override a button using Visualforce on an object.
What is the requirement?

  1. The controller or extension must have a PageReference method.
  2. The standardController attribute must be set to the object.
  3. The action attribute must be set to a controller method.
  4. The object record must be instantiated in a controller or extension.

Answer(s): B



Which approach should a developer use to add pagination to a Visualforce page?

  1. A StandardController
  2. The Action attribute for a page
  3. The extensions attribute for a page
  4. A StandardSetController

Answer(s): D






Post your Comments and Discuss Salesforce DEV-450 exam with other Community members:

DEV-450 Discussions & Posts