Salesforce hub
Salesforce Online Assessment
Overview
Salesforce online assessment (OA) is the first hard filter for most fresher, campus, and off-campus SDE-style drives. This page covers the Salesforce OA format, what happens after you clear it, sample Salesforce OA questions with approaches, an 8-week prep plan, and mistakes that sink otherwise-strong candidates.
Patterns below are from student reports for 2025-2026. Platforms and section names can change by drive. Always confirm the college placement email for your window.
Salesforce hiring flow after the OA
| Stage | What candidates report | What you must show |
|---|---|---|
| 1. Online assessment | Often HackerRank: coding problems (sometimes plus MCQs) in a timed window | Correctness + reasonable complexity under time |
| 2. Technical interviews | DSA + CS fundamentals; Salesforce technology depth role-dependent | Explain approach, edge cases, complexity |
| 3. Later rounds | Managerial / values; HR | Depth beyond the OA pattern |
| 4. HR / offer | Role, location, CTC discussion | Consistency with resume |
Salesforce Online Assessment format
Test structure
| Component | From student reports details |
|---|---|
| Platform | HackerRank (commonly reported) |
| Duration | Often 60-90 minutes for coding-focused invites |
| Question mix | 2 coding problems typical; some drives add MCQs |
| Languages | Java, C++, Python (Java common) |
| Scoring | Automated tests; partial credit varies |
| Advance rate | Competitive; incomplete coding is a common reject reason |
What makes Salesforce OA feel distinct
- HackerRank style similar to other product/enterprise OAs
- Java fluency helps many candidates
- Not a Salesforce Admin certification exam; SWE OA is DSA
- Interviews may later touch platform concepts depending on role
Question types you should expect
Core DSA
- Arrays, strings, hashing
- Trees and recursion
- Basic graphs
- Sorting + greedy
- Medium DP
Secondary / role-dependent
- CS fundamentals MCQs on some papers
- Output-based Java/OOPs questions
What usually does not appear in the OA
- Full Apex/Lightning admin project (different hiring path)
- Long aptitude-only NQT clones
- Architecture of multi-cloud orgs in OA coding time
Sample Salesforce Online Assessment questions
Question 1: group anagrams
Q: Group strings that are anagrams of each other.
Sort each string as key, or count-signature key. Hash map of lists.
Question 2: validate bst
Q: Check whether a binary tree is a valid BST.
Recurse with valid (low, high) bounds. Do not only compare parent-child.
Question 3: merge two sorted lists
Q: Merge two sorted linked lists into one sorted list.
Dummy head + two pointers. O(n+m).
Question 4: top-k frequent words
Q: Return k most frequent words with lexicographic tie-break.
Count + heap with custom comparator. Tie-break rules are easy to get wrong.
Question 5: decode string
Q: Decode patterns like 3[a2[c]] to accaccacc.
Stack of counts and strings. Classic medium.
Question 6: employee free time
Q: Given schedules of employees, find common free intervals.
Flatten intervals, sort, merge busy times, invert gaps.
How to prepare for Salesforce OA (8-week plan)
| Weeks | Focus | Exit criteria |
|---|---|---|
| 1-2 | Arrays, hashing, two pointers, sliding window | 40+ easy/medium solved cleanly |
| 3-4 | Trees, graphs (BFS/DFS), heaps | Can code BFS/DFS without notes |
| 5-6 | DP + greedy patterns (Java collections fluency) | 25+ medium DP/greedy with recursion to bottom-up |
| 7 | Timed full mocks matching Often 60-90 minutes for coding-focused invites | Finish both coding problems with clear edge-case tests with passing tests |
| 8 | Weak-topic repair + complexity review | Re-solve every miss within 48 hours |
Daily loop
- One timed medium problem (45-60 min hard cap)
- Write complexity and 3 edge cases before coding
- If stuck past 20 minutes, peek pattern name only, then re-solve tomorrow cold
- Log misses by topic on a simple sheet
Company pages on this site
- Salesforce coding questions
- Salesforce aptitude / mock quiz
- Salesforce interview experience
- Salesforce preparation guide
- Practice PDF: Salesforce Placement Papers PDF (2026)
Common mistakes on Salesforce OA
- Confusing SWE OA with Admin certification prep
- Slow Java I/O habits on large inputs
- Ignoring null / empty edge cases
- Memorizing Salesforce cloud buzzwords instead of DSA
- No mock on HackerRank UI before the real test
Day-of checklist
- Stable internet, charged laptop, quiet room
- Confirm language template compiles on the platform before starting hard problems
- Skim all problems for 3-4 minutes, order by familiarity
- Submit a correct brute force early if constraints allow, then optimize
- Leave 8-10 minutes for edge-case tests you invent yourself

