Exam Details

  • Exam Code
    :DEV-501
  • Exam Name
    :Apex and Visualforce Controllers
  • Certification
    :Salesforce Certifications
  • Vendor
    :Salesforce
  • Total Questions
    :239 Q&As
  • Last Updated
    :May 06, 2025

Salesforce Salesforce Certifications DEV-501 Questions & Answers

  • Question 131:

    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

  • Question 132:

    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

  • Question 133:

    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

  • Question 134:

    Under what profile do Webservice methods execute by default?

    A. No

    B. FALSE

    C. TRUE

    D. System

  • Question 135:

    Which statement is true about an Apex class?

    A class cannot be disabled for profiles.

    An inner class can be nested at multiple levels.

    Static methods can only be declared in a top-level class definition.

    The default access modifier for methods in a class is public.

    A.

    Salesforce-generated email address

    B.

    Manual sharing, apex sharing

    C.

    Static methods can only be declared in a top-level class definition.

    D.

    Make calls to methods using both valid and invalid inputs.

  • Question 136:

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

    A. System

    B. sObject

    C. Global

  • Question 137:

    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

  • Question 138:

    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

  • Question 139:

    Which of the following code will u use to instantiate a map called numbers that has integers as keys and strings as values?

    Map numbers = new Map;

    Map numbers = new Map;

    Map numbers = new Map;

    Map

    numbers = new Map;

    A.

    Map numbers = new Map;

    B.

    Code contained in a trigger

    C.

    Failure response settings

    D.

    Manual sharing, apex sharing

  • Question 140:

    What is the maximum size of a SOAP request or response? (No Answer)

    A. 3 MB

    B. Ids

    C. 10

    D. Java

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Salesforce exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your DEV-501 exam preparations and Salesforce certification application, do not hesitate to visit our Vcedump.com to find your solutions here.