DEV-501 Exam Questions

Total 237 Questions

Last Updated Exam :

What are the two types of logs? (No Answer)


A.

System, debug


B.

TRUE


C.

On-demand


D.

3 MB





A.
  

System, debug



Which of the following code will u use to instantiate a map called numbers that has integers as
keys and strings as values?
Map<SLrng, :nLeger> numbers = new Map<String, Integer>;
Map<ThLeyer, SLring> numbers = new Map<Integer, String>;
Map<nLeger> numbers = new Map<String>;
Map<Slring> numbers = new Map<Integer>;


A.

Map<Integer, String> numbers = new Map<Integer, String>;


B.

Code contained in a trigger


C.

Failure response settings


D.

Manual sharing, apex sharing





A.
  

Map<Integer, String> numbers = new Map<Integer, String>;



Which trigger context variable allows you to modify field values before they are written to the
database in the before trigger? (No Answer)


A.

Trigger.new


B.

Trigger.old


C.

@ReadOnly


D.

TRUE





A.
  

Trigger.new



What are the four ways to deploy Apex code? (No Answer)


A.

Force.com IDE for developers, force.com migration tool, changesets, third-party tools


B.

A template from which objects are created


C.

Through UI, Force.com IDE project


D.

Developer edition production org, Enterprise edition sandbox org





A.
  

Force.com IDE for developers, force.com migration tool, changesets, third-party tools



What datatype is used for standard or custom objects that store record data? (No Answer)


A.

System


B.

sObject


C.

Global





B.
  

sObject



Under what profile do Webservice methods execute by default?


A.

No


B.

 FALSE


C.

TRUE


D.

System





D.
  

System



What are the three ways to run unit tests?


A.

Salesforce ui, force.com ide, runTests web service


B.

Dates, Ids, Numbers


C.

FALSE, they must be static


D.

System-defined, user-defined





A.
  

Salesforce ui, force.com ide, runTests web service



What is the default return type of a sosl statement?


A.

Apex process classes


B.

Apex classes


C.

List of List Objects


D.

SOQL for loops





C.
  

List of List Objects



Which trigger context variable allows you to modify field values before they are written to the
database in the before trigger?


A.

@ReadOnly


B.

RETURNING


C.

Webservice


D.

Trigger.new





D.
  

Trigger.new



How are static methods and attributes access?


A.

Map, List, Set


B.

Class, trigger


C.

Apex classes


D.

Through class itself





D.
  

Through class itself




Page 11 out of 24 Pages
Previous