0% found this document useful (0 votes)
171 views41 pages

Salesforce PD-1 Questions Bank

The document contains a series of questions related to Salesforce PD-1 Exam, focusing on Apex programming, SOQL queries, triggers, and Lightning components. Each question provides multiple-choice answers to test knowledge on various Salesforce development concepts. It serves as a study guide for individuals preparing for the Salesforce PD-1 certification exam.

Uploaded by

Gagan verma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
171 views41 pages

Salesforce PD-1 Questions Bank

The document contains a series of questions related to Salesforce PD-1 Exam, focusing on Apex programming, SOQL queries, triggers, and Lightning components. Each question provides multiple-choice answers to test knowledge on various Salesforce development concepts. It serves as a study guide for individuals preparing for the Salesforce PD-1 certification exam.

Uploaded by

Gagan verma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 41

Salesforce PD-1 Exam questions

Developer Fundamental: -

1. What is Apex?

a. A) A programming language for Salesforce

b. B) A database management system

c. C) A user interface framework

d. D) A reporting tool

2. Which of the following is a valid way to declare a variable in Apex?

a. A) Integer num = 10;

b. B) num Integer = 10;

c. C) 10 = Integer num;

d. D) Integer num: 10;

3. What is the purpose of a trigger in Salesforce?

a. A) To automate email notifications

b. B) To execute code before or after data manipulation

c. C) To create custom reports

d. D) To manage user permissions

4. Which of the following is NOT a type of trigger?

a. A) Before Insert

b. B) After Update

c. C) Before Delete

d. D) After Execute

5. What is SOQL used for?

a. A) To create new records

b. B) To query Salesforce data

c. C) To update existing records

d. D) To delete records

6. Which of the following is a valid SOQL query?


a. A) SELECT Name FROM Account WHERE Id = '001'

b. B) SELECT * FROM Account

c. C) SELECT Account.Name FROM Account

d. D) SELECT Name, Id FROM Account WHERE Id = '001'

7. What is the purpose of the @isTest annotation in Apex?

a. A) To mark a class as a test class

b. B) To indicate that a method is a test method

c. C) To enable debug logging

d. D) To prevent code from executing in production

8. Which of the following is a valid way to handle exceptions in Apex?

a. A) try { // code } catch (Exception e) { // handle }

b. B) catch (Exception e) { // handle }

c. C) throw new Exception('Error');

d. D) try { // code } finally { // cleanup }

9. What is a custom object in Salesforce?

a. A) A standard Salesforce object

b. B) An object created by users to store data

c. C) A report type

d. D) A dashboard component

10. How do you create a custom field in Salesforce?

a. A) By using Apex code

b. B) By modifying the object schema in Setup

c. C) By creating a Visualforce page

d. D) By using SOQL

11. What is the difference between a lookup relationship and a master-detail relationship?

a. A) Lookup relationships are one-to-one; master-detail are one-to-many.

b. B) Master-detail relationships enforce data integrity; lookup does not.

c. C) Lookup relationships allow for roll-up summary fields; master-detail does not.

d. D) There is no difference.

12. What is a Visualforce page?

a. A) A page that displays data in a tabular format


b. B) A custom user interface framework for Salesforce

c. C) A report generation tool

d. D) A dashboard component

13. Which of the following is a valid way to create a Visualforce page?

a. A) <apex:page>My Page</apex:page>

b. B) <page:apex>My Page</page:apex>

c. C) <apex:page name="MyPage">

d. D) <apex:page>My Page</apex:page>

14. What is the purpose of the @AuraEnabled annotation?

a. A) To enable a method to be called from Lightning components

b. B) To mark a class as a Lightning component

c. C) To enable debug logging

d. D) To create a custom object

15. What is Lightning Web Components (LWC)?

a. A) A framework for building mobile applications

b. B) A programming language for Salesforce

c. C) A UI framework for building web applications

d. D) A reporting tool

16. Which of the following is a valid way to declare a method in Apex?

a. A) public void myMethod() { // code }

b. B) void myMethod() public { // code }

c. C) myMethod() public void { // code }

d. D)

17. What is the maximum number of records that can be returned by a SOQL query?

a. A) 10,000

b. B) 50,000

c. C) 100,000

d. D) 1,000,000

18. Which of the following is a valid way to define a class in Apex?

a. A) class MyClass { // code }


b. B) public class MyClass { // code }

c. C) MyClass class { // code }

d. D) class: MyClass { // code }

19. What is the purpose of the @future annotation in Apex?

a. A) To run a method asynchronously

b. B) To mark a method as deprecated

c. C) To create a future date

d. D) To schedule a job

20. Which of the following statements is true about Apex triggers?

a. A) A trigger can be defined on standard and custom objects.

b. B) A trigger can only be defined on custom objects.

c. C) A trigger can only be defined on standard objects.

d. D) A trigger cannot be defined on any object.

21. What is the purpose of the @isTest(SeeAllData=true) annotation?

a. A) To allow access to all data in the organization during tests

b. B) To prevent access to all data in the organization during tests

c. C) To mark a test class as deprecated

d. D) To enable debug logging during tests

22. Which of the following is a valid way to create a list of accounts in Apex?

a. A) List<Account> accounts = new List<Account>();

b. B) List accounts = new List<Account>();

c. C) List<Account> accounts = List<Account>();

d. D) List<Account> accounts = new List();

23. What is the purpose of the trigger.new context variable?

a. A) To access the old values of the records

b. B) To access the new values of the records

c. C) To access the previous trigger execution context

d. D) To access the current user context

24. Which of the following is a valid SOQL query to count the number of accounts?

a. A) SELECT COUNT() FROM Account

b. B) SELECT COUNT(Id) FROM Account


c. C) SELECT COUNT(Name) FROM Account

d. D) SELECT COUNT(*) FROM Account

25. What is the purpose of the @testSetup annotation in a test class?

a. A) To set up test data that is shared across test methods

b. B) To mark a method as a test method

c. C) To clean up test data after tests

d. D) To enable debug logging for tests

26. Which of the following is a valid way to call a method in Apex?

a. A) myMethod();

b. B) call myMethod();

c. C) execute myMethod();

d. D) invoke myMethod();

27. What is the maximum number of SOQL queries that can be executed in a single
transaction?

a. A) 100

b. B) 150

c. C) 200

d. D) 300

28. Which of the following is a valid way to create a map in Apex?

a. A) Map<String, Account> accountMap = new Map<String, Account>();

b. B) Map accountMap = new Map<String, Account>();

c. C) Map<String, Account> accountMap = Map<String, Account>();

d. D) Map<String, Account> accountMap = new Map();

29. What is the purpose of the @AuraEnabled annotation in Lightning components?

a. A) To enable a method to be called from Apex

b. B) To enable a method to be called from Lightning components

c. C) To mark a component as a Lightning component

d. D) To enable debug logging

30. Which of the following is a valid way to define a method that returns a string in Apex?

a. A) public String myMethod() { return 'Hello'; }

b. B) String myMethod() { return 'Hello'; }


c. C) public myMethod() { return 'Hello'; }

d. D) myMethod() returns String { return 'Hello'; }

31. What is the maximum number of DML statements that can be executed in a single
transaction?

A) 100
B) 150
C) 200
D) 300
32. Which of the following is a valid way to declare a constant in Apex?

A) final Integer MY_CONSTANT = 10;


B) const Integer MY_CONSTANT = 10;
C) static Integer MY_CONSTANT = 10;
D) constant Integer MY_CONSTANT = 10;
33. What is the purpose of the @isTest annotation on a method?

A) To indicate that the method is a test method


B) To prevent the method from being executed in production
C) To enable debug logging for the method
D) To mark the method as deprecated
34. Which of the following is a valid way to create a new instance of a custom object in Apex?

A) MyCustomObject__c obj = new MyCustomObject__c();


B) MyCustomObject obj = new MyCustomObject();
C) MyCustomObject__c obj = MyCustomObject__c();
D) MyCustomObject obj = new MyCustomObject__c;
35. What is the purpose of the @future(callout=true) annotation?

A) To allow a method to make HTTP callouts asynchronously


B) To mark a method as deprecated
C) To enable debug logging
D) To schedule a job
36. Which of the following is a valid way to iterate over a list in Apex?

A) for (Account acc : accounts) { // code }


B) for (Account acc in accounts) { // code }
C) for (Account acc = accounts) { // code }
D) for (Account acc : accounts.iterator()) { // code }
37. What is the purpose of the trigger.old context variable?

A) To access the new values of the records


B) To access the old values of the records
C) To access the current user context
D) To access the previous trigger execution context
38. Which of the following is a valid SOQL query to retrieve all fields from the Account object?

A) SELECT * FROM Account


B) SELECT ALL FIELDS FROM Account
C) SELECT Id, Name, Industry FROM Account
D) SELECT Name, Industry FROM Account
39. What is the maximum number of records that can be processed in a single batch Apex job?

A) 200
B) 2,000
C) 10,000
D) 50,000
40. Which of the following is a valid way to create a new record in Apex?

A) insert new Account(Name='Test Account');


B) Account acc = new Account(Name='Test Account'); insert acc;
C) Account acc = new Account(); acc.Name = 'Test Account'; insert acc;
D) All of the above
45. What is the purpose of the @isTest(SeeAllData=false) annotation?

i. To allow access to all data in the organization during tests


ii. To prevent access to all data in the organization during tests
iii. To mark a test class as deprecated
iv. To enable debug logging during tests
46. Which of the following is a valid way to define a method that takes parameters in Apex?

i. public void myMethod(String param) { // code }


ii. void myMethod(String param) { // code }
iii. public myMethod(String param) { // code }
iv. myMethod(String param) returns void { // code }
47. What is the purpose of the @AuraEnabled annotation in Lightning components?

i. To enable a method to be called from Apex


ii. To enable a method to be called from Lightning components
iii. To mark a component as a Lightning component
iv. To enable debug logging

48. What is the maximum number of characters allowed in a Salesforce text


field?
a. A) 255
b. B) 32,000
c. C) 65,535
d. D) 100,000
49. Which of the following is a valid way to define a method that returns an
integer in Apex?
a. A) public Integer myMethod() { return 5; }
b. B) Integer myMethod() { return 5; }
c. C) public myMethod() returns Integer { return 5; }
d. D) myMethod() : Integer { return 5; }
50. What is the purpose of the @isTest annotation in Apex?
a. A) To mark a class as a test class
b. B) To indicate that a method is a test method
c. C) To enable debug logging
d. D) To prevent code from executing in production
51. Which of the following is a valid way to create a new instance of a
custom object in Apex?
a. A) MyCustomObject__c obj = new MyCustomObject__c();
b. B) MyCustomObject obj = new MyCustomObject();
c. C) MyCustomObject__c obj = MyCustomObject__c();
d. D) MyCustomObject obj = new MyCustomObject__c;
52. What is the purpose of the @future annotation in Apex?
a. A) To run a method asynchronously
b. B) To mark a method as deprecated
c. C) To create a future date
d. D) To schedule a job
53. Which of the following is a valid way to iterate over a list in Apex?
a. A) for (Account acc : accounts) { // code }
b. B) for (Account acc in accounts) { // code }
c. C) for (Account acc = accounts) { // code }
d. D) for (Account acc : accounts.iterator()) { // code }
54. What is the purpose of the trigger.old context variable?
a. A) To access the new values of the records
b. B) To access the old values of the records
c. C) To access the current user context
d. D) To access the previous trigger execution context
55. Which of the following is a valid SOQL query to retrieve all fields from
the Account object?
a. A) SELECT * FROM Account
b. B) SELECT ALL FIELDS FROM Account
c. C) SELECT Id, Name, Industry FROM Account
d. D) SELECT Name, Industry FROM Account
56. What is the maximum number of records that can be processed in a
single batch Apex job?
a. A) 200
b. B) 2,000
c. C) 10,000
d. D) 50,000
57. Which of the following is a valid way to create a new record in Apex?
a. A) insert new Account(Name='Test Account');
b. B) Account acc = new Account(Name='Test Account'); insert
acc;
c. C) Account acc = new Account(); acc.Name = 'Test Account';
insert acc;
d. D) All of the above
58. What is the purpose of the @isTest(SeeAllData=false) annotation?
a. A) To allow access to all data in the organization during tests
b. B) To prevent access to all data in the organization during tests
c. C) To mark a test class as deprecated
d. D) To enable debug logging during tests
59. Which of the following is a valid way to define a method that takes
parameters in Apex?
a. A) public void myMethod(String param) { // code }
b. B) void myMethod(String param) { // code }
c. C) public myMethod(String param) { // code }
d. D) myMethod(String param) returns void { // code }
60. What is the purpose of the @AuraEnabled annotation in Lightning
components?
a. A) To enable a method to be called from Apex
b. B) To enable a method to be called from Lightning components
c. C) To mark a component as a Lightning component
d. D) To enable debug logging

Process Automation and Logics

1. What is Process Builder used for in Salesforce?

 A) To create custom objects

 B) To automate business processes using a visual interface

 C) To write Apex code

 D) To create reports and dashboards

2. Which of the following actions can be performed using Process Builder?

 A) Create a record

 B) Update a record

 C) Send an email alert

 D) All of the above

3. What is a Flow in Salesforce?

 A) A way to visualize data

 B) A tool for automating complex business processes

 C) A method for writing Apex code

 D) A type of report

4. Which of the following is NOT a type of Flow?

 A) Screen Flow

 B) Record-Triggered Flow

 C) Scheduled Flow

 D) Data Flow

5. What is the purpose of the Decision element in a Flow?

 A) To create a new record

 B) To update existing records

 C) To branch the flow based on conditions

 D) To send an email alert

6. How do you invoke a Flow from Process Builder?


 A) By using the "Invoke Flow" action

 B) By using the "Call Flow" action

 C) By using the "Run Flow" action

 D) By using the "Execute Flow" action

7. What is a Workflow Rule?

 A) A set of criteria that triggers an action

 B) A type of Flow

 C) A method for writing Apex code

 D) A way to create custom objects

8. Which of the following actions can be performed by a Workflow Rule?

 A) Create a record

 B) Update a record

 C) Send an email alert

 D) All of the above

9. What is the difference between a Process Builder and a Workflow Rule?

 A) Process Builder can perform more complex actions than Workflow Rules.

 B) Workflow Rules can only update records, while Process Builder can create records.

 C) Process Builder is only for custom objects, while Workflow Rules are for standard objects.

 D) There is no difference.

10. What is the purpose of the Scheduled Action in Process Builder?

 A) To execute actions immediately

 B) To execute actions at a specified time in the future

 C) To create a new record

 D) To update existing records

11. Which of the following is a valid way to create a formula in Process Builder?

 A) By using the "Formula" action

 B) By using the "Create Formula" option

 C) By using the "Set Formula" option

 D) By using the "Formula" field type

12. What is the purpose of the "Immediate Actions" in Process Builder?

 A) To execute actions after a specified delay

 B) To execute actions immediately when the criteria are met

 C) To create a new record


 D) To update existing records

13. How do you handle errors in Flow?

 A) By using the "Error Handling" element

 B) By using the "Fault" path

 C) By using the "Try-Catch" block

 D) By using the "Error Log" action

14. What is the maximum number of criteria that can be defined in a Process Builder process?

 A) 5

 B) 10

 C) 15

 D) 20

15. Which of the following is a valid way to create a Quick Action in Salesforce?

 A) By using the "Create Quick Action" button in Setup

 B) By using the "Quick Action" tab in the object settings

 C) By using the "Quick Action" component in Lightning App Builder

 D) All of the above

16. What is the maximum number of records that can be returned by a


SOQL query?
 A) 10,000
 B) 50,000
 C) 100,000
 D) 1,000,000
17. Which of the following is a valid way to declare a variable in Apex?
 A) Integer num = 10;

 B) num Integer = 10;


 C) 10 = Integer num;
 D) Integer num: 10;
18. What is the purpose of the @isTest annotation in Apex?
 A) To mark a class as a test class
 B) To indicate that a method is a test method
 C) To enable debug logging
 D) To prevent code from executing in production
19. Which of the following is a valid way to create a list of accounts in
Apex?
 A) List<Account> accounts = new List<Account>();
 B) List accounts = new List<Account>();
 C) List<Account> accounts = List<Account>();
 D) List<Account> accounts = new List();
20. What is the purpose of the trigger.new context variable?
 A) To access the old values of the records
 B) To access the new values of the records
 C) To access the previous trigger execution context
 D) To access the current user context
21. Which of the following is a valid SOQL query?
 A) SELECT Name FROM Account WHERE Id = '001'

 B) SELECT * FROM Account


 C) SELECT Account.Name FROM Account
 D) SELECT Name, Id FROM Account WHERE Id = '001'
22. What is the difference between a before trigger and an after trigger?
 A) Before triggers can modify the record; after triggers cannot.
 B) After triggers can modify the record; before triggers cannot.
 C) Before triggers run after the record is saved; after triggers run
before.
 D) There is no difference.
23. What is the purpose of the @future annotation in Apex?
 A) To run a method asynchronously
 B) To mark a method as deprecated
 C) To create a future date
 D) To schedule a job
24. Which of the following is a valid way to handle exceptions in Apex?
 A) try { // code } catch (Exception e) { // handle }

 B) catch (Exception e) { // handle }


 C) throw new Exception('Error');
 D) try { // code } finally { // cleanup }
25. What is a custom object in Salesforce?
 A) A standard Salesforce object
 B) An object created by users to store data
 C) A report type
 D) A dashboard component
26. How do you create a custom field in Salesforce?
 A) By using Apex code
 B) By modifying the object schema in Setup
 C) By creating a Visualforce page
 D) By using SOQL
27. What is the difference between a lookup relationship and a master-detail
relationship?
 A) Lookup relationships are one-to-one; master-detail are one-to-many.
 B) Master-detail relationships enforce data integrity; lookup does not.
 C) Lookup relationships allow for roll-up summary fields; master-detail
does not.
 D) There is no difference.
28. What is a Visualforce page?
 A) A page that displays data in a tabular format
 B) A custom user interface framework for Salesforce
 C) A report generation tool
 D) A dashboard component
29. Which of the following is a valid way to create a Visualforce page?
 A) <apex:page>My Page</apex:page>

 B) <page:apex>My Page</page:apex>
 C) <apex:page name="MyPage">
 D) <apex:page>My Page</apex:page>
30. What is the primary purpose of Process Builder in Salesforce?
 A) To create custom objects
 B) To automate business processes using a visual interface
 C) To write Apex code
 D) To create reports and dashboards
31. Which of the following actions can be performed using Process Builder?
 A) Create a record
 B) Update a record
 C) Send an email alert
 D) All of the above
32. What is a Flow in Salesforce?
 A) A way to visualize data
 B) A tool for automating complex business processes
 C) A method for writing Apex code
 D) A type of report
33. Which of the following is NOT a type of Flow?
 A) Screen Flow
 B) Record-Triggered Flow
 C) Scheduled Flow
 D) Data Flow
34. What is the purpose of the Decision element in a Flow?
 A) To create a new record
 B) To update existing records
 C) To branch the flow based on conditions
 D) To send an email alert
35. How do you invoke a Flow from Process Builder?
 A) By using the "Invoke Flow" action
 B) By using the "Call Flow" action
 C) By using the "Run Flow" action
 D) By using the "Execute Flow" action
36. What is a Workflow Rule?
 A) A set of criteria that triggers an action
 B) A type of Flow
 C) A method for writing Apex code
 D) A way to create custom objects
37. Which of the following actions can be performed by a Workflow Rule?
 A) Create a record
 B) Update a record
 C) Send an email alert
 D) All of the above
38. What is the difference between Process Builder and Workflow Rules?
 A) Process Builder can perform more complex actions than Workflow
Rules.
 B) Workflow Rules can only update records, while Process Builder can
create records.
 C) Process Builder is only for custom objects, while Workflow Rules
are for standard objects.
 D) There is no difference.
39. What is the purpose of the Scheduled Action in Process Builder?
 A) To execute actions immediately
 B) To execute actions at a specified time in the future
 C) To create a new record
 D) To update existing records
40. Which of the following is a valid way to create a formula in Process
Builder?
 A) By using the "Formula" action
 B) By using the "Create Formula" option
 C) By using the "Set Formula" option
 D) By using the "Formula" field type
41. What is the purpose of the "Immediate Actions" in Process Builder?
 A) To execute actions after a specified delay
 B) To execute actions immediately when the criteria are met
 C) To create a new record
 D) To update existing records
42. How do you handle errors in Flow?
 A) By using the "Error Handling" element
 B) By using the "Fault" path
 C) By using the "Try-Catch" block
 D) By using the "Error Log" action
43. What is the maximum number of criteria that can be defined in a
Process Builder process?
 A) 5
 B) 10
 C) 15
 D) 20
44. Which of the following is a valid way to create a Quick Action in
Salesforce?
 A) By using the "Create Quick Action" button in Setup
 B) By using the "Quick Action" tab in the object settings
 C) By using the "Quick Action" component in Lightning App Builder
 D) All of the above
45. What is the primary function of a Record-Triggered Flow?
 A) To run on a schedule
 B) To execute when a record is created, updated, or deleted
 C) To collect user input through screens
 D) To send email notifications
46. Which of the following can be used to invoke a Flow from a Process
Builder?
 A) Action Type: "Invoke Flow"
 B) Action Type: "Call Flow"
 C) Action Type: "Run Flow"
 D) Action Type: "Execute Flow"
47. What is the maximum number of active Workflow Rules allowed per
object?
 A) 5
 B) 10
 C) 20
 D) Unlimited
48. Which of the following is NOT a valid action in Process Builder?
 A) Create a record
 B) Send an outbound message
 C) Launch a Flow
 D) Update a record
49. What is the purpose of the "Fault" path in a Flow?
 A) To handle successful execution
 B) To define actions when an error occurs
 C) To create a new record
 D) To update existing records
50. Which of the following statements is true about Process Builder?
 A) It can only be used for custom objects.
 B) It can perform actions across multiple objects.
 C) It cannot update records.
 D) It is limited to a single action.
51. What is the purpose of the "Scheduled Actions" in Process Builder?
 A) To execute actions immediately
 B) To execute actions at a specified time in the future
 C) To create a new record
 D) To update existing records
52. Which of the following is a valid way to create a formula in Process
Builder?
 A) By using the "Formula" action
 B) By using the "Set Formula" option
 C) By using the "Create Formula" button
 D) By using the "Formula" field type
53. What is the maximum number of criteria nodes you can have in a single
Process Builder process?
 A) 5
 B) 10
 C) 15
 D) 20
54. Which of the following is a valid way to reference a field in a Flow?
 A) record.FieldName

 B) FieldName
 C) record[FieldName]
 D) record.FieldName__c
55. What is the purpose of the "Immediate Actions" in Process Builder?
 A) To execute actions after a specified delay
 B) To execute actions immediately when the criteria are met
 C) To create a new record
 D) To update existing records
56. How can you ensure that a Flow runs only when a specific condition is
met?
 A) By using a Decision element
 B) By using a Loop element
 C) By using a Record Lookup element
 D) By using a Screen element
57. What is the maximum number of active Flows allowed in an
organization?
 A) 100
 B) 200
 C) 300
 D) Unlimited
58. Which of the following is a valid way to create a Quick Action in
Salesforce?
 A) By using the "Create Quick Action" button in Setup
 B) By using the "Quick Action" tab in the object settings
 C) By using the "Quick Action" component in Lightning App Builder
 D) All of the above
59. What is the purpose of the "Email Alert" action in Workflow Rules?
 A) To send an email notification to a user or group
 B) To create a new email template
 C) To log email activity
 D) To update a record with email information
60. What is the primary purpose of a Record-Triggered Flow?
 A) To run on a schedule
 B) To execute when a record is created, updated, or deleted
 C) To collect user input through screens
 D) To send email notifications
61. Which of the following actions can be performed using Process Builder?
 A) Create a record
 B) Update a record
 C) Send an email alert
 D) All of the above
62. What is the maximum number of active Process Builder processes
allowed per object?
 A) 5
 B) 10
 C) 20
 D) Unlimited
63. Which of the following is NOT a valid action in Process Builder?
 A) Create a record
 B) Send an outbound message
 C) Launch a Flow
 D) Update a record
64. What is the purpose of the Decision element in a Flow?
 A) To create a new record
 B) To update existing records
 C) To branch the flow based on conditions
 D) To send an email alert
65. How do you invoke a Flow from Process Builder?
 A) By using the "Invoke Flow" action
 B) By using the "Call Flow" action
 C) By using the "Run Flow" action
 D) By using the "Execute Flow" action
66. What is a Workflow Rule?
 A) A set of criteria that triggers an action
 B) A type of Flow
 C) A method for writing Apex code
 D) A way to create custom objects
67. Which of the following actions can be performed by a Workflow Rule?
 A) Create a record
 B) Update a record
 C) Send an email alert
 D) All of the above
68. What is the difference between Process Builder and Workflow Rules?
 A) Process Builder can perform more complex actions than Workflow
Rules.
 B) Workflow Rules can only update records, while Process Builder can
create records.
 C) Process Builder is only for custom objects, while Workflow Rules
are for standard objects.
 D) There is no difference.
69. What is the purpose of the Scheduled Action in Process Builder?
 A) To execute actions immediately
 B) To execute actions at a specified time in the future
 C) To create a new record
 D) To update existing records
70. Which of the following is a valid way to create a formula in Process
Builder?
 A) By using the "Formula" action
 B) By using the "Create Formula" option
 C) By using the "Set Formula" option
 D) By using the "Formula" field type
71. What is the purpose of the "Immediate Actions" in Process Builder?
 A) To execute actions after a specified delay
 B) To execute actions immediately when the criteria are met
 C) To create a new record
 D) To update existing records
72. How do you handle errors in Flow?
 A) By using the "Error Handling" element
 B) By using the "Fault" path
 C) By using the "Try-Catch" block
 D) By using the "Error Log" action
73. What is the maximum number of criteria that can be defined in a
Process Builder process?
 A) 5
 B) 10
 C) 15
 D) 20
74. Which of the following is a valid way to create a Quick Action in
Salesforce?
 A) By using the "Create Quick Action" button in Setup
 B) By using the "Quick Action" tab in the object settings
 C) By using the "Quick Action" component in Lightning App Builder
 D) All of the above

User Interface

1. What is a Visualforce page?

 A) A page that displays data in a tabular format

 B) A custom user interface framework for Salesforce

 C) A report generation tool

 D) A dashboard component

2. Which of the following is a valid way to create a Visualforce page?

 A) <apex:page>My Page</apex:page>

 B) <page:apex>My Page</page:apex>

 C) <apex:page name="MyPage">

 D) <apex:page>My Page</apex:page>

3. What is the purpose of the <apex:form> tag in Visualforce?

 A) To create a new record

 B) To define a form for user input

 C) To display data in a table

 D) To create a button

4. Which of the following components is used to create a Lightning component?

 A) <lightning:component>

 B) <aura:component>

 C) <apex:component>

 D) <ui:component>

5. What is the primary purpose of Lightning App Builder?

 A) To create custom objects


 B) To build Lightning pages using drag-and-drop functionality

 C) To write Apex code

 D) To create reports and dashboards

6. Which of the following is a valid way to reference a field in a Lightning component?

 A) {!v.fieldName}

 B) {!fieldName}

 C) {!record.fieldName}

 D) {!object.fieldName}

7. What is the purpose of the @AuraEnabled annotation in Apex?

 A) To enable a method to be called from Lightning components

 B) To mark a component as a Lightning component

 C) To enable debug logging

 D) To create a custom object

8. Which of the following is a valid way to create a custom button in Salesforce?

 A) By using the "Custom Button" option in the object settings

 B) By using the "Create Button" option in the Setup menu

 C) By writing Apex code

 D) By creating a Visualforce page

9. What is the purpose of the lightning:input component?

 A) To display read-only text

 B) To create a text input field

 C) To create a button

 D) To display an image

10. Which of the following is a valid way to create a Lightning App?

 A) By using the Lightning App Builder

 B) By using the "Create App" button in Setup

 C) By writing Apex code

 D) All of the above

11. What is the purpose of the lightning:recordForm component?

 A) To display a record in a read-only format

 B) To create a new record or edit an existing record


 C) To display a list of records

 D) To create a custom report

12. Which of the following is a valid way to create a custom tab in Salesforce?

 A) By using the "Custom Tab" option in the object settings

 B) By using the "Create Tab" button in Setup

 C) By writing Apex code

 D) By creating a Visualforce page

13. What is the purpose of the lightning:datatable component?

 A) To display data in a tabular format

 B) To create a form for user input

 C) To display a single record

 D) To create a button

14. Which of the following is a valid way to create a Lightning Web Component (LWC)?

 A) By using the lwc:create command in the Salesforce CLI

 B) By using the Lightning App Builder

 C) By writing Apex code

 D) By creating a Visualforce page

15. What is the purpose of the lightning:modal component?

 A) To display a modal dialog

 B) To create a button

 C) To display a list of records

 D) To create a form for user input

16. What is the primary purpose of Visualforce in Salesforce?


 A) To create custom reports
 B) To build custom user interfaces
 C) To automate business processes
 D) To manage data storage
17. Which of the following is a valid Visualforce page declaration?
 A) <apex:page>My Visualforce Page</apex:page>

 B) <apex:page name="MyPage">
 C) <page:apex>My Page</page:apex>
 D) <apex:page title="My Page">
18. What is the purpose of the <apex:form> tag in Visualforce?
 A) To create a new record
 B) To define a form for user input
 C) To display data in a table
 D) To create a button
19. Which of the following components is used to create a Lightning
component?
 A) <lightning:component>

 B) <aura:component>
 C) <apex:component>
 D) <ui:component>
20. What is the primary purpose of the Lightning App Builder?
 A) To create custom objects
 B) To build Lightning pages using drag-and-drop functionality
 C) To write Apex code
 D) To create reports and dashboards
21. Which of the following is a valid way to reference a field in a Lightning
component?
 A) {!v.fieldName}

 B) {!fieldName}
 C) {!record.fieldName}
 D) {!object.fieldName}
22. What is the purpose of the @AuraEnabled annotation in Apex?
 A) To enable a method to be called from Lightning components
 B) To mark a component as a Lightning component
 C) To enable debug logging
 D) To create a custom object
23. Which of the following is a valid way to create a custom button in
Salesforce?
 A) By using the "Custom Button" option in the object settings
 B) By using the "Create Button" option in the Setup menu
 C) By writing Apex code
 D) By creating a Visualforce page
24. What is the purpose of the lightning:input component?
 A) To display read-only text
 B) To create a text input field
 C) To create a button
 D) To display an image
25. Which of the following is a valid way to create a Lightning App?
 A) By using the Lightning App Builder
 B) By using the "Create App" button in Setup
 C) By writing Apex code
 D) All of the above
26. What is the purpose of the lightning:recordForm component?
 A) To display a record in a read-only format
 B) To create a new record or edit an existing record
 C) To display a list of records
 D) To create a custom report
27. Which of the following is a valid way to create a custom tab in
Salesforce?
 A) By using the "Custom Tab" option in the object settings
 B) By using the "Create Tab" button in Setup
 C) By writing Apex code
 D) By creating a Visualforce page
28. What is the purpose of the lightning:datatable component?
 A) To display data in a tabular format
 B) To create a form for user input
 C) To display a single record
 D) To create a button
29. Which of the following is a valid way to create a Lightning Web
Component (LWC)?
 A) By using the lwc:create command in the Salesforce CLI

 B) By using the Lightning App Builder


 C) By writing Apex code
 D) By creating a Visualforce page
30. What is the purpose of the lightning:modal component?
 A) To display a modal dialog
 B) To create a button
 C) To display a list of records
 D) To create a form for user input
31. What is the primary purpose of Visualforce in Salesforce?
 A) To create custom reports
 B) To build custom user interfaces
 C) To automate business processes
 D) To manage data storage
32. Which of the following is a valid Visualforce page declaration?
 A) <apex:page>My Visualforce Page</apex:page>

 B) <apex:page name="MyPage">
 C) <page:apex>My Page</page:apex>
 D) <apex:page title="My Page">
33. What is the purpose of the <apex:form> tag in Visualforce?
 A) To create a new record
 B) To define a form for user input
 C) To display data in a table
 D) To create a button
34. Which of the following components is used to create a Lightning
component?
 A) <lightning:component>

 B) <aura:component>
 C) <apex:component>
 D) <ui:component>
35. What is the primary purpose of the Lightning App Builder?
 A) To create custom objects
 B) To build Lightning pages using drag-and-drop functionality
 C) To write Apex code
 D) To create reports and dashboards
36. Which of the following is a valid way to reference a field in a Lightning
component?
 A) {!v.fieldName}

 B) {!fieldName}
 C) {!record.fieldName}
 D) {!object.fieldName}
37. What is the purpose of the @AuraEnabled annotation in Apex?
 A) To enable a method to be called from Lightning components
 B) To mark a component as a Lightning component
 C) To enable debug logging
 D) To create a custom object
38. Which of the following is a valid way to create a custom button in
Salesforce?
 A) By using the "Custom Button" option in the object settings
 B) By using the "Create Button" option in the Setup menu
 C) By writing Apex code
 D) By creating a Visualforce page
39. What is the purpose of the lightning:input component?
 A) To display read-only text
 B) To create a text input field
 C) To create a button
 D) To display an image
40. Which of the following is a valid way to create a Lightning App?
 A) By using the Lightning App Builder
 B) By using the "Create App" button in Setup
 C) By writing Apex code
 D) All of the above
41. What is the purpose of the lightning:recordForm component?
 A) To display a record in a read-only format
 B) To create a new record or edit an existing record
 C) To display a list of records
 D) To create a custom report
42. Which of the following is a valid way to create a custom tab in
Salesforce?
 A) By using the "Custom Tab" option in the object settings
 B) By using the "Create Tab" button in Setup
 C) By writing Apex code
 D) By creating a Visualforce page
43. What is the purpose of the lightning:datatable component?
 A) To display data in a tabular format
 B) To create a form for user input
 C) To display a single record
 D) To create a button
44. Which of the following is a valid way to create a Lightning Web
Component (LWC)?
 A) By using the lwc:create command in the Salesforce CLI

 B) By using the Lightning App Builder


 C) By writing Apex code
 D) By creating a Visualforce page
45. What is the purpose of the lightning:modal component?
 A) To display a modal dialog
 B) To create a button
 C) To display a list of records
 D) To create a form for user input
46. What is the primary purpose of the Lightning App Builder?
 A) To create custom objects
 B) To build Lightning pages using drag-and-drop functionality
 C) To write Apex code
 D) To create reports and dashboards
47. Which of the following is a valid way to create a Lightning Web
Component (LWC)?
 A) By using the lwc:create command in the Salesforce CLI

 B) By using the Lightning App Builder


 C) By writing Apex code
 D) By creating a Visualforce page
48. What is the purpose of the <lightning:button> component?
 A) To create a clickable button in a Lightning component
 B) To display a read-only text
 C) To create a form
 D) To display an image
49. Which of the following is a valid way to reference a field in a Lightning
component?
 A) {!v.fieldName}

 B) {!fieldName}
 C) {!record.fieldName}
 D) {!object.fieldName}
50. What is the purpose of the @AuraEnabled annotation in Apex?
 A) To enable a method to be called from Lightning components
 B) To mark a component as a Lightning component
 C) To enable debug logging
 D) To create a custom object
51. Which of the following is a valid Visualforce page declaration?
 A) <apex:page>My Visualforce Page</apex:page>

 B) <apex:page name="MyPage">
 C) <page:apex>My Page</page:apex>
 D) <apex:page title="My Page">
52. What is the purpose of the <apex:form> tag in Visualforce?
 A) To create a new record
 B) To define a form for user input
 C) To display data in a table
 D) To create a button
53. Which of the following components is used to create a Lightning
component?
 A) <lightning:component>

 B) <aura:component>
 C) <apex:component>
 D) <ui:component>
54. What is the purpose of the lightning:input component?
 A) To display read-only text
 B) To create a text input field
 C) To create a button
 D) To display an image
55. Which of the following is a valid way to create a custom button in
Salesforce?
 A) By using the "Custom Button" option in the object settings
 B) By using the "Create Button" option in the Setup menu
 C) By writing Apex code
 D) By creating a Visualforce page
56. What is the purpose of the lightning:recordForm component?
 A) To display a record in a read-only format
 B) To create a new record or edit an existing record
 C) To display a list of records
 D) To create a custom report
57. Which of the following is a valid way to create a custom tab in
Salesforce?
 A) By using the "Custom Tab" option in the object settings
 B) By using the "Create Tab" button in Setup
 C) By writing Apex code
 D) By creating a Visualforce page
58. What is the purpose of the lightning:datatable component?
 A) To display data in a tabular format
 B) To create a form for user input
 C) To display a single record
 D) To create a button
59. What is the maximum number of characters allowed in a custom label in
Salesforce?
 A) 255
 B) 1,000
 C) 5,000
 D) 10,000
60. Which of the following is a valid way to create a Lightning App?
 A) By using the Lightning App Builder
 B) By using the "Create App" button in Setup
 C) By writing Apex code
 D) All of the above

Testing and Debugging

1. What is the purpose of the @isTest annotation in Apex?


a. A) To mark a class as a test class
b. B) To indicate that a method is a test method
c. C) To enable debug logging
d. D) To prevent code from executing in production
2. Which of the following is a valid way to create a test method in Apex?
a. A) public void myTestMethod() { // code }
b. B) @isTest public void myTestMethod() { // code }
c. C) @testMethod public void myTestMethod() { // code }
d. D) public testMethod void myTestMethod() { // code }
3. What is the maximum number of records that can be inserted in a single test
method?
a. A) 200
b. B) 1,000
c. C) 10,000
d. D) 50,000
4. Which of the following methods is used to assert that a condition is true in a test
class?
a. A) System.assertEquals()
b. B) System.assert()
c. C) System.assertTrue()
d. D) All of the above
5. What is the purpose of the Test.startTest() and Test.stopTest() methods?
a. A) To define the start and end of a test class
b. B) To reset governor limits during a test
c. C) To log debug information
d. D) To create test data
6. Which of the following is true about the @isTest(SeeAllData=false) annotation?
a. A) It allows access to all data in the organization during tests.
b. B) It prevents access to all data in the organization during tests.
c. C) It is the default setting for test classes.
d. D) It is used to enable debug logging.
7. What is the purpose of the Test.loadData() method?
a. A) To load test data from a CSV file
b. B) To create test records in the database
c. C) To load existing records into a test context
d. D) To load metadata for testing
8. Which of the following is a valid way to debug Apex code?
a. A) Using System.debug()
b. B) Using the Developer Console
c. C) Using debug logs
d. D) All of the above
9. What is the maximum number of debug log lines that can be generated in a single
transaction?
a. A) 10,000
b. B) 20,000
c. C) 50,000
d. D) 100,000
10. Which of the following is NOT a valid way to run tests in Salesforce?
a. A) Using the Developer Console
b. B) Using the Salesforce CLI
c. C) Using the Setup menu
d. D) Using a Visualforce page
11. What is the purpose of the @testSetup annotation?
a. A) To mark a method that runs before each test method
b. B) To mark a method that runs once for the entire test class
c. C) To create test data for the test class
d. D) To enable debug logging for the test class
12. Which of the following is a valid assertion in a test method?
a. A) System.assertEquals(expected, actual);
b. B) System.assertNotEquals(expected, actual);
c. C) System.assertTrue(condition);
d. D) All of the above
13. What is the purpose of the Test.setMock() method?
a. A) To set up mock responses for HTTP callouts
b. B) To create mock records for testing
c. C) To simulate user input in tests
d. D) To log debug information
14. Which of the following is a valid way to handle exceptions in a test method?
a. A) Using a try-catch block
b. B) Using the System.assertThrows() method
c. C) Using the Test.startTest() method
d. D) All of the above
15. What is the purpose of the Test.getTestResult() method?
a. A) To retrieve the results of a test run
b. B) To log debug information
c. C) To create test data
d. D) To reset governor limits
16. What is the purpose of the @isTest annotation in Apex?
a. A) To mark a class as a test class
b. B) To indicate that a method is a test method
c. C) To enable debug logging
d. D) To prevent code from executing in production
17. Which of the following is a valid way to create a test method in Apex?
a. A) public void myTestMethod() { // code }
b. B) @isTest public void myTestMethod() { // code }
c. C) @testMethod public void myTestMethod() { // code }
d. D) public testMethod void myTestMethod() { // code }
18. What is the maximum number of records that can be inserted in a single
test method?
a. A) 200
b. B) 1,000
c. C) 10,000
d. D) 50,000
19. Which of the following methods is used to assert that a condition is true
in a test class?
a. A) System.assertEquals()
b. B) System.assert()
c. C) System.assertTrue()
d. D) All of the above
20. What is the purpose of
the Test.startTest() and Test.stopTest() methods?
a. A) To define the start and end of a test class
b. B) To reset governor limits during a test
c. C) To log debug information
d. D) To create test data
21. Which of the following is true about
the @isTest(SeeAllData=false) annotation?
a. A) It allows access to all data in the organization during tests.
b. B) It prevents access to all data in the organization during tests.
c. C) It is the default setting for test classes.
d. D) It is used to enable debug logging.
22. What is the purpose of the Test.loadData() method?
a. A) To load test data from a CSV file
b. B) To create test records in the database
c. C) To load existing records into a test context
d. D) To load metadata for testing
23. Which of the following is a valid way to debug Apex code?
a. A) Using System.debug()
b. B) Using the Developer Console
c. C) Using debug logs
d. D) All of the above
24. What is the maximum number of debug log lines that can be generated
in a single transaction?
a. A) 10,000
b. B) 20,000
c. C) 50,000
d. D) 100,000
25. Which of the following is NOT a valid way to run tests in Salesforce?
a. A) Using the Developer Console
b. B) Using the Salesforce CLI
c. C) Using the Setup menu
d. D) Using a Visualforce page
26. What is the purpose of the @testSetup annotation?
a. A) To mark a method that runs before each test method
b. B) To mark a method that runs once for the entire test class
c. C) To create test data for the test class
d. D) To enable debug logging for the test class
27. Which of the following is a valid assertion in a test method?
a. A) System.assertEquals(expected, actual);
b. B) System.assertNotEquals(expected, actual);
c. C) System.assertTrue(condition);
d. D) All of the above
28. What is the purpose of the Test.setMock() method?
a. A) To set up mock responses for HTTP callouts
b. B) To create mock records for testing
c. C) To simulate user input in tests
d. D) To log debug information
29. Which of the following is a valid way to handle exceptions in a test
method?
a. A) Using a try-catch block
b. B) Using the System.assertThrows() method
c. C) Using the Test.startTest() method
d. D) All of the above
30. What is the purpose of the Test.getTestResult() method?
a. A) To retrieve the results of a test run
b. B) To log debug information
c. C) To create test data
d. D) To reset governor limits

31. What is the purpose of the @isTest annotation in Apex?


a. A) To mark a class as a test class
b. B) To indicate that a method is a test method
c. C) To enable debug logging
d. D) To prevent code from executing in production
32. Which of the following is a valid way to create a test method in Apex?
a. A) public void myTestMethod() { // code }
b. B) @isTest public void myTestMethod() { // code }
c. C) @testMethod public void myTestMethod() { // code }
d. D) public testMethod void myTestMethod() { // code }
33. What is the maximum number of records that can be inserted in a single test
method?
a. A) 200
b. B) 1,000
c. C) 10,000
d. D) 50,000
34. Which of the following methods is used to assert that a condition is true in a test
class?
a. A) System.assertEquals()
b. B) System.assert()
c. C) System.assertTrue()
d. D) All of the above
35. What is the purpose of the Test.startTest() and Test.stopTest() methods?
a. A) To define the start and end of a test class
b. B) To reset governor limits during a test
c. C) To log debug information
d. D) To create test data
36. Which of the following is true about the @isTest(SeeAllData=false) annotation?
a. A) It allows access to all data in the organization during tests.
b. B) It prevents access to all data in the organization during tests.
c. C) It is the default setting for test classes.
d. D) It is used to enable debug logging.
37. What is the purpose of the Test.loadData() method?
a. A) To load test data from a CSV file
b. B) To create test records in the database
c. C) To load existing records into a test context
d. D) To load metadata for testing
38. Which of the following is a valid way to debug Apex code?
a. A) Using System.debug()
b. B) Using the Developer Console
c. C) Using debug logs
d. D) All of the above
39. What is the maximum number of debug log lines that can be generated in a single
transaction?
a. A) 10,000
b. B) 20,000
c. C) 50,000
d. D) 100,000
40. Which of the following is NOT a valid way to run tests in Salesforce?
a. A) Using the Developer Console
b. B) Using the Salesforce CLI
c. C) Using the Setup menu
d. D) Using a Visualforce page
41. What is the purpose of the @testSetup annotation?
a. A) To mark a method that runs before each test method
b. B) To mark a method that runs once for the entire test class
c. C) To create test data for the test class
d. D) To enable debug logging for the test class
42. Which of the following is a valid assertion in a test method?
a. A) System.assertEquals(expected, actual);
b. B) System.assertNotEquals(expected, actual);
c. C) System.assertTrue(condition);
d. D) All of the above
43. What is the purpose of the Test.setMock() method?
a. A) To set up mock responses for HTTP callouts
b. B) To create mock records for testing
c. C) To simulate user input in tests
d. D) To log debug information
44. Which of the following is a valid way to handle exceptions in a test method?
a. A) Using a try-catch block
b. B) Using the System.assertThrows() method
c. C) Using the Test.startTest() method
d. D) All of the above
45. What is the purpose of the Test.getTestResult() method?
a. A) To retrieve the results of a test run
b. B) To log debug information
c. C) To create test data
d. D) To reset governor limits
46. Additional Questions (15 More)
47. Which of the following is a valid way to create a test class in Apex?
a. A) @isTest class MyTestClass { // code }
b. B) class MyTestClass { // code }
c. C) public class MyTestClass { // code }
d. D) @test class MyTestClass { // code }
48. What is the maximum number of test classes that can be executed in a single test
run?
a. A) 10
b. B) 50
c. C) 100
d. D) Unlimited
49. Which of the following is a valid way to create a mock HTTP response in a test?
a. A) Test.setMock(HttpCalloutMock.class, new MyHttpMock());
b. B) Test.setMock(new MyHttpMock());
c. C) HttpCalloutMock.setMock(new MyHttpMock());
d. D) `Test.set
50. What is the purpose of the @isTest annotation in Apex?
a. A) To mark a class as a test class
b. B) To indicate that a method is a test method
c. C) To enable debug logging
d. D) To prevent code from executing in production
51. Which of the following is a valid way to create a test method in Apex?
a. A) public void myTestMethod() { // code }
b. B) @isTest public void myTestMethod() { // code }
c. C) @testMethod public void myTestMethod() { // code }
d. D) public testMethod void myTestMethod() { // code }
52. What is the maximum number of records that can be inserted in a single test
method?
a. A) 200
b. B) 1,000
c. C) 10,000
d. D) 50,000
53. Which of the following methods is used to assert that a condition is true in a test
class?
a. A) System.assertEquals()
b. B) System.assert()
c. C) System.assertTrue()
d. D) All of the above
54. What is the purpose of the Test.startTest() and Test.stopTest() methods?
a. A) To define the start and end of a test class
b. B) To reset governor limits during a test
c. C) To log debug information
d. D) To create test data
55. Which of the following is true about the @isTest(SeeAllData=false) annotation?
a. A) It allows access to all data in the organization during tests.
b. B) It prevents access to all data in the organization during tests.
c. C) It is the default setting for test classes.
d. D) It is used to enable debug logging.
56. What is the purpose of the Test.loadData() method?
a. A) To load test data from a CSV file
b. B) To create test records in the database
c. C) To load existing records into a test context
d. D) To load metadata for testing
57. Which of the following is a valid way to debug Apex code?
a. A) Using System.debug()
b. B) Using the Developer Console
c. C) Using debug logs
d. D) All of the above
58. What is the maximum number of debug log lines that can be generated in a single
transaction?
a. A) 10,000
b. B) 20,000
c. C) 50,000
d. D) 100,000
59. Which of the following is NOT a valid way to run tests in Salesforce?
a. A) Using the Developer Console
b. B) Using the Salesforce CLI
c. C) Using the Setup menu
d. D) Using a Visualforce page
60. What is the purpose of the @testSetup annotation?
a. A) To mark a method that runs before each test method
b. B) To mark a method that runs once for the entire test class
c. C) To create test data for the test class
d. D) To enable debug logging for the test class
61. Which of the following is a valid assertion in a test method?
a. A) System.assertEquals(expected, actual);
b. B) System.assertNotEquals(expected, actual);
c. C) System.assertTrue(condition);
d. D) All of the above
62. What is the purpose of the Test.setMock() method?
a. A) To set up mock responses for HTTP callouts
b. B) To create mock records for testing
c. C) To simulate user input in tests
d. D) To log debug information
63. Which of the following is a valid way to handle exceptions in a test method?
a. A) Using a try-catch block
b. B) Using the System.assertThrows() method
c. C) Using the Test.startTest() method
d. D) All of the above
64. What is the purpose of the Test.getTestResult() method?
a. A) To retrieve the results of a test run
b. B) To log debug information
c. C) To create test data
d. D) To reset governor limits
65. Additional Questions (15 More)
66. Which of the following is a valid way to create a test class in Apex?
a. A) @isTest class MyTestClass { // code }
b. B) class MyTestClass { // code }
c. C) public class MyTestClass { // code }
d. D) @test class MyTestClass { // code }
67. What is the maximum number of test classes that can be executed in a single test
run?
a. A) 10
b. B) 50
c. C) 100
d. D) Unlimited
68. Which of the following is a valid way to create a mock HTTP response in a test?
a. A) Test.setMock(HttpCalloutMock.class, new MyHttpMock());
b. B) Test.setMock(new MyHttpMock());
c. C) `Http

You might also like