DEV-501 Exam Questions

Total 237 Questions

Last Updated Exam : 22-Oct-2024

Which keywords do developers use to handle exceptions in Apex?


A.

Through class itself


B.

Throw, try, catch, finally


C.

Static and final


D.

GET, POST, PUT, DELETE





D.
  

GET, POST, PUT, DELETE



Which invocation method occurs when triggers are called by the Force.com platform during the
save process?
Explicit invocation
Implicit invocation
Explicit invocation using anonymous blocks
External API invocation


A.

RETURNING


B.

Implicit invocation


C.

Primitive


D.

SOQL for loops





B.
  

Implicit invocation



What two methods of customization are available to create applications in salesforce?


A.

Implicit invocation


B.

SOQL for loops


C.

Record level access


D.

declarative, programmatic





A.
  

Implicit invocation



How should one prevent soql injection when using dynamic soql?


A.

Database class method


B.

code contained in a trigger


C.

Utilize the String.escapeSingleQuotes(string) method


D.

 with sharing keyword





C.
  

Utilize the String.escapeSingleQuotes(string) method



What components of apex are available to improve the processing of data in Salesforce?


A.

Database class method


B.

GET, POST, PUT, DELETE


C.

Batch apex, apex scheduler.


D.

Internal and external





A.
  

Database class method



Which trigger context variable cannot be deleted?


A.

addError


B.

System


C.

@ReadOnly


D.

Trigger.new





D.
  

Trigger.new



What are two key tools to debug code in Salesforce?


A.

Dates, Ids, Numbers


B.

Logs, anonymous blocks


C.

Debug logs, email logs


D.

List of List Objects





B.
  

Logs, anonymous blocks



Which trigger context variable is not saved in the after trigger and causes an exception to be
thrown?


A.

Trigger.new


B.

addError


C.

Primitive


D.

 TRUE





A.
  

Trigger.new



What statements are used to retrieve records from an sObject in the Force.com database?


A.

Exceptions


B.

On-demand


C.

Map, List, Set


D.

SOQL statements





D.
  

SOQL statements



What is the size of the batches in which triggers execute?


A.

No


B.

 200


C.

FALSE


D.

Java





B.
  

 200




Page 12 out of 24 Pages
Previous