Font size
WorksheetsApex and Salesforce Quiz 1
Total questions: 100
Worksheet time: 50mins
Which language is Apex most similar to?
Python
Java
C++
JavaScript
Apex runs primarily on which platform?
Microsoft .NET Framework
Salesforce Platform
Oracle Cloud
AWS Lambda
Which of the following is a strongly typed, object-oriented language?
Apex
.NET C#
Both a and b
None
Which keyword is used to define a class in Apex?
class
Class
define
package
Apex code executes in which environment?
Sandbox and Production
Only Sandbox
Only Production
Client-side browser
Which statement about Apex is true?
It is case-sensitive
It is not case-sensitive
It cannot use DML
It cannot use SOQL
Which is the entry point for Apex execution?
Main method
Trigger or Class method
API call
Anonymous block
Apex transaction means:
Execution of one SOQL query
A single unit of work in database operations
Multiple users logged in at once
Rollback of governor limits
Which feature allows calling Apex code asynchronously?
Queueable
Batch Apex
Future methods
All of the above
Which method is used to perform DML in Apex?
insert
update
delete
All of the above
Apex code is stored and compiled in:
Client system
Cloud (Salesforce servers)
Local IDE
Visualforce pages
Which language runs on .NET similar to Apex on Salesforce?
Java
Python
C#
PHP
Which data type can formulas return?
Text
Number
Date
All of the above
Which function checks if a field is blank?
ISNULL()
ISBLANK()
ISNUMBER()
ISDATE()
Validation rules are executed when?
Before records are saved
After records are saved
When reports are run
When dashboards are refreshed
Which operator is used for concatenation in formulas?
&
+
||
CONCAT()
Which function returns the current user's profile?
$Profile.Name
USER()
CURRENTUSER()
$User.Profile
A formula returning TRUE in validation rule means:
Record saves successfully
Error message is displayed
Workflow triggers
Nothing happens
Which of these cannot be used in a formula field?
Cross-object fields
Fields from unrelated objects
Functions like TODAY()
Math operators
Which function extracts part of a text field?
FIND()
LEFT()
RIGHT()
All of the above
Validation rules can reference fields from how many objects?
One
Multiple via cross-object references
Unlimited objects
None
Which function returns the current date?
DATE()
TODAY()
NOW()
CURRENTDATE()
Which field type does not support formulas?
Text
Checkbox
Auto Number
Number
Which function calculates age from birthdate?
DATEVALUE()
YEAR(TODAY()) - YEAR(Birthdate)
NOW()
ADDYEARS()
Which formula returns TRUE if the record owner is current user?
$User.Id = OwnerId
$Profile.Id = OwnerId
USERID() = $Owner
CURRENTUSER = RecordOwner
Which relationship type represents a parent-child hierarchy?
Master-Detail
Lookup
Junction
External
Which object type is provided by Salesforce by default?
Custom
Standard
Virtual
Managed
How many Master-Detail relationships can a custom object have?
1
2
3
Unlimited
A junction object is used to implement which relationship?
One-to-Many
Many-to-Many
One-to-One
Hierarchical
Which field uniquely identifies each record?
Auto Number
Text field
Record ID
Master field
Which field type allows values calculated from other fields?
Formula field
Lookup field
Master-detail field
Auto Number
In Salesforce, object relationships are defined using:
Schema Builder
Setup Menu
Object Manager
All of the above
External lookup relationship is used to link Salesforce object with:
Standard object
Custom object
External object
Hierarchical object
Roll-up summary fields work only with:
Lookup relationship
Master-Detail relationship
External relationship
Self-relationship
Which field cannot be used as an external ID?
Number
Text
Formula
Which type of relationship can exist between Account and Contact?
Master-Detail
Lookup
Self
Junction
A schema diagram in Salesforce is called:
Object Manager
Schema Builder
Data Designer
ERD
A child record in Master-Detail relationship is deleted when:
Parent record is deleted
Child record is deleted
Validation rule runs
Workflow is triggered
Which tool is used to load more than 50,000 records?
Data Loader
Data Import Wizard
Reports
Developer Console
Data Import Wizard supports importing up to:
10,000 records
20,000 records
50,000 records
100,000 records
Which tool allows scheduling of data exports?
Data Loader
Data Export Service
Reports
Workbench
Which format is supported for data import/export?
CSV
JSON
XML
All of the above
Which API is used by Data Loader for bulk data?
REST API
SOAP API
Bulk API
Metadata API
Which tool is browser-based?
Data Loader
Data Import Wizard
Command-line Data Loader
ETL
To update existing records, you must provide:
Name field
Record ID or External ID
CreatedDate
Owner ID
Which operation is not supported in Data Import Wizard?
Insert
Update
Upsert
Delete
Which Salesforce tool helps to avoid duplicate data during import?
Duplicate Management
Workflow Rules
Validation Rules
Triggers
Which field cannot be changed using Data Loader?
Owner
CreatedDate
Custom field
Text field
What happens if you import a CSV with incorrect column mapping?
Records are rejected
Records are inserted partially
Data is corrupted
All records deleted
Which Salesforce tool is best for small, simple imports by end users?
Data Import Wizard
Data Loader
Workbench
Dataloader.io
What is the main purpose of an approval process in Salesforce?
Automate record validation
Route records for review and approval
Update data automatically
Generate reports
What is the first step in creating an approval process?
Define entry criteria
Select the object
Add approval actions
Activate the process
Which action can be configured in an approval process?
Field Update
Email Alert
Task Assignment
All of the above
If no approver is assigned, who becomes the default approver?
System Admin
Record Owner
Queue
First Manager in the hierarchy
Which type of action occurs immediately when approval is submitted?
Initial Submission Action
Final Approval Action
Final Rejection Action
Recall Action
What happens if a record does not meet entry criteria for approval process?
It is deleted
It cannot be submitted
It goes for default approval
It is auto-approved
Can multiple approval processes exist for the same object?
Yes
No
Which flow type is used to automate processes when a record is created or updated?
Screen Flow
Record-Triggered Flow
Autolaunched Flow
Scheduled Flow
Record-triggered flows run:
Before save or after save
Only before save
Only after save
During user login
Which type of flow is best for fast field updates?
Before-save record-triggered flow
After-save record-triggered flow
Screen flow
Subflow
Which flow element is used to get data from Salesforce objects?
Assignment
Get Records
Update Records
Decision
What happens if a record-triggered flow has no decision elements?
It runs for all records meeting trigger condition
It fails
It requires user input
It goes inactive
Record-triggered flows replace which tool?
Workflow Rules and Process Builder
Validation Rules
Reports
Apex Classes
Which tool provides debug logs for flows?
Setup Audit Trail
Flow Debug Tool
Apex Test Execution
Schema Builder
Which search engine powers Salesforce global search?
Apache Solr
ElasticSearch
Lucene
Salesforce Search Index
Which field type is always searchable?
Formula field
Text field
Encrypted field
Long Text Area
What feature helps improve search relevance?
Synonym Groups
Validation Rules
Approval Processes
Duplicate Rules
Knowledge Articles can be searched using:
Global Search
Article Search
Both a and b
None
Search filters can be configured at:
Object level
Field level
Both a and b
None
Which query language is used in Apex to fetch records?
SQL
SOQL
SOSL
Both b and c
Which statement is valid DML in Apex?
save record;
update record;
write record;
commit record;
Which collection types are available in Apex?
List
Set
Map
All of the above
Which method prevents SOQL injection in Apex?
Dynamic SOQL
Bind variables
Hardcoding IDs
Static queries only
Which governor limit exists in Apex?
Max 50,000 records in SOQL query
Max 150 DML statements
Max 100 callouts
All of the above
Which exception type is handled in Apex?
DmlException
NullPointerException
QueryException
All of the above
Which method is used for inserting a list of records?
addAll()
insert
insertAll()
save()
What happens when governor limits are exceeded in Apex?
Apex retries execution
Unhandled exception is thrown
Record is saved partially
Transaction commits automatically
SOSL is used to:
Search across multiple objects
Query one object at a time
Perform DML operations
Define schema
Which method checks if a list is empty in Apex?
isEmpty()
size()
isBlank()
count()
Which event runs before a record is saved?
before insert
after insert
before delete
after delete
A trigger is always associated with:
An Apex class
A Salesforce object
A workflow rule
A queue
Trigger.new contains:
Old version of records
New version of records
Both old and new
Nothing
Which context variable is available only in after triggers?
Trigger.new
Trigger.old
Trigger.newMap
Trigger.oldMap
How many triggers can exist per object?
1
10
Unlimited
Multiple, but logically consolidated
Which keyword prevents recursion in triggers?
static variable
private variable
final variable
constant
Which trigger event is used to access system-generated ID of a record?
before insert
after insert
before update
after delete
Which method is best practice for trigger logic?
Write everything in trigger body
Use Trigger Handler class
Use Workflow instead
Avoid DML
Which happens first in Salesforce order of execution?
Before triggers
Validation rules
Workflow rules
Assignment rules
Which executes immediately after before triggers?
Validation rules
Workflow rules
After triggers
Roll-up summary fields
Which runs last in order of execution?
Before triggers
Assignment rules
Post-commit logic (e.g., email sending)
Validation rules
Roll-up summary fields are recalculated:
Before triggers
After triggers
During validation rules
Before workflow
If workflow updates a field, what happens next?
Validation rules
Triggers re-execute
Nothing happens
Record is locked
Assignment rules are executed after:
Before triggers
Validation rules
After triggers
Workflow field updates
Which asynchronous method is used for simple background jobs?
Batch Apex
Future methods
Queueable Apex
Schedulable Apex
Which type of Apex allows chaining of jobs?
Future methods
Batch Apex
Queueable Apex
Scheduled Apex
Maximum batch size in Batch Apex is:
50
200
2,000
5,000
Which method is used to schedule an Apex job?
System.enqueueJob()
System.schedule()
Database.executeBatch()
runSchedule()
Which annotation is used for future methods?
@future
@async
@queueable
@batch
Batch Apex is useful for:
Handling small data sets
Processing large volumes of data in chunks
Real-time execution
Debug logs only
Which asynchronous feature supports callouts to external systems?
Future methods
Batch Apex
Queueable Apex
All of the above
