Test Yourself – Salesforce Quiz
1. In Salesforce, what is the purpose of Apex?
A. User interface design.
B. Database management.
C. Custom business logic.
D. System administration.
2. Which of the following is a valid Salesforce data type?
A. Varchar
B. Datetime
C. BooleanInt
D. StringBlob
3. What is the default scope of a class in Apex?
A. Global
B. Public
C. Private
D. Protected
4. Which statement about triggers is true in Salesforce?
A. Triggers can only be written in Visualforce.
B. Triggers execute automatically in response to specific events.
C. Triggers cannot call future methods.
D. Triggers can only access records in their context.
5. What is the maximum batch size for a SOQL query in a trigger?
A. 200 records
B. 500 records
C. 1000 records
D. 1500 records
6. What is a Master-Detail relationship in Salesforce?
A. A one-to-one relationship.
B. A many-to-many relationship.
C. A one-to-many relationship with tight coupling.
D. A many-to-one relationship.
7. In Salesforce, what is a workflow rule?
A. A process to automate tasks.
B. A tool to manage users.
C. A method for data integration.
D. A JavaScript function.
8. What is a Sandbox used for in Salesforce?
A. Data storage.
B. User training.
C. Testing and development.
D. Backup and recovery.
9. Which of these is NOT a valid Salesforce collection data type?
A. List
B. Set
C. Map
D. Array
10. What is a Governor Limit in Salesforce?
A. A restriction on the size of the database.
B. A limit on the number of users.
C. Runtime limits enforced in the Apex code.
D. A limit on the number of custom objects.
Answers
- C. Custom business logic.
- B. Datetime
- C. Private
- B. Triggers execute automatically in response to specific events.
- A. 200 records
- C. A one-to-many relationship with tight coupling.
- A. A process to automate tasks.
- C. Testing and development.
- D. Array
- C. Runtime limits are enforced in the Apex code.