Salesforce DEV501 Exam
Apex & Visualforce Controllers (Page 13 )

Updated On: 1-Feb-2026

In what code is the webservice keyword not allowed to be used?

  1. Class, trigger
  2. Implicit invocation
  3. Code contained in a trigger
  4. Queues, time triggers

Answer(s): C



What types of sharing are available to developers to share records?

  1. Failure response settings
  2. Manual sharing, apex sharing
  3. Dates, Ids, Numbers
  4. Apex, Visualforce, and APIs

Answer(s): B



List the HTTP classes available in Salesforce?

  1. GET, POST, PUT, DELETE
  2. Failure response settings
  3. Queues, time triggers
  4. HTTPRequest, HTTPResponse, HTTP

Answer(s): D



Which environments can developers write code? (Select all that apply.) Developer edition production org
Enterprise edition production org
Enterprise edition sandbox org
Professional edition sandbox org

  1. Salesforce-generated email address
  2. Apex code, Visualforce pages, and controllers
  3. Developer edition production org, Enterprise edition sandbox org
  4. Encapsulation principles

Answer(s): C



What is the list of steps to match regular expressions using the Pattern and Matcher classes?

  1. A template from which objects are created
  2. 1.Instantiate a pattern object from the expression you wish to match.
    2. Instantiate a matcher object from the pattern that contains the string you want to check.
    3. Use the matcher object to detect if the matcher matches the pattern.
  3. HTTPRequest, HTTPResponse, HTTP
  4. Primitive, sObject, Collections, Null

Answer(s): B



Viewing page 13 of 49
Viewing questions 61 - 65 out of 239 questions



Post your Comments and Discuss Salesforce DEV501 exam prep with other Community members:

Join the DEV501 Discussion