Exam Details

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

Salesforce Salesforce Certifications DEV-501 Questions & Answers

  • Question 91:

    The System.runAs() functionality can be used to test and verify proper data sharing and data access. However, System.runAs() does NOT validate CRUD or Field Level Security permissions.

    A. True

    B. False

  • Question 92:

    The system method, System.runAs(), lets you write test methods that change user contexts to either an existing user or a new user.

    A. True

    B. False

  • Question 93:

    The system method, ___________, lets you write test methods that change user contexts to either an existing user or a new user.

    A. System.testAs()

    B. System.testAsUser

    C. System.runAsUser()

    D. System.impersonateUser()

    E. System.runAs()

    F. None of these

  • Question 94:

    Apex is available in which Salesforce Editions? (Select all that apply)

    A. Professional Edition

    B. Unlimited Edition

    C. Enterprise Edition

    D. Developer Edition

    E. Database.com

    F. None of these`|`A. Professional Edition

    G. Unlimited Edition

    H. Enterprise Edition

    I. Developer Edition

    J. Database.com

  • Question 95:

    Apex code can be initiated in what ways? (Select all that apply)

    A. Web service requests.

    B. Triggers on objects.

    C. More?? Is "Button Clicks" a valid choice?

  • Question 96:

    If the error message contains HTML markup, the escaped markup displays as text and isn't rendered in the user interface. (Select all that apply)

    A. Strongly Typed.

    B. Object Oriented.

    C. Uses Java-like syntax.

    D. Acts like database stored procedures.

  • Question 97:

    How are Apex triggers stored?

    A. As static resources.

    B. As metadata in the application, under the object with which they are associated.

    C. As .trigger files in the /code directory of your organization's public files.

    D. As compiled bytecode in the Salesforce platform Apex app server.

    E. As resource files in the Developer Console.

    F. None of these

  • Question 98:

    Which access modifier should u specify for a class containing the webService keword?

    Public

    Private

    Protected

    Global

    A.

    FALSE

    B.

    3 MB

    C.

    Global

    D.

    6

  • Question 99:

    How are programmatic cusomizations done in Salesforce?

    A. Apex, Visualforce, and APIs

    B. Apex classes

    C. Apex process classes

    D. Dates, Ids, Numbers

  • Question 100:

    What trigger method is used to help prevent completion of a DML event?

    A. addError

    B. Ids

    C. No

    D. TRUE

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.