2025 papers
Salesforce Placement Papers 2024
Overview
This page collects Salesforce placement papers from 2024 with previous-year questions, solutions, and the 2024 exam pattern. It is useful when you want real drive history: what the OA looked like, which question types repeated, and how solutions were approached. Work through the papers below to build speed and accuracy, then compare against newer 2025 material so your prep matches both established Salesforce patterns and the latest shifts.
Salesforce Online Assessment 2024 pattern
| Section | Questions | Time | Difficulty |
|---|---|---|---|
| Coding Problems | 2-3 | 90 min | Medium-Hard |
Salesforce Placement Papers 2024 - actual questions & solutions
This section contains practice questions styled on Salesforce placement papers 2024 (previous-year pattern), with worked solutions. Use them as timed sectional drills - from student reports drives vary by college and role, so treat this as a high-signal practice bank, not an official paper dump.
Question 1: reverse a string
Show solution
Problem Statement: Given a string, return it reversed.
Example:
Input: "placement"Output: "tnemecalp"Solution (Java):
public String reverse(String s) { return new StringBuilder(s).reverse().toString();}Time Complexity: O(n)
Space Complexity: O(n)
Question 2: maximum subarray sum
Show solution
Problem Statement: Find the contiguous subarray with the largest sum.
Example:
Input: [-2, 1, -3, 4, -1, 2, 1, -5, 4]Output: 6 // [4, -1, 2, 1]Solution (Java):
public int maxSubArray(int[] nums) { int best = nums[0], cur = nums[0]; for (int i = 1; i < nums.length; i++) { cur = Math.max(nums[i], cur + nums[i]); best = Math.max(best, cur); } return best;}Time Complexity: O(n)
Space Complexity: O(1)
Question 3: longest common prefix
Show solution
Problem Statement: Find the longest common prefix string amongst an array of strings.
Example:
Input: ["flower","flow","flight"]Output: "fl"Solution (Java):
public String longestCommonPrefix(String[] strs) { if (strs.length == 0) return ""; String pref = strs[0]; for (int i = 1; i < strs.length; i++) { while (!strs[i].startsWith(pref)) { pref = pref.substring(0, pref.length() - 1); if (pref.isEmpty()) return ""; } } return pref;}Time Complexity: O(S)
Space Complexity: O(1)
Question 4: rotate array right by k
Show solution
Problem Statement: Rotate the array to the right by k steps.
Example:
Input: [1,2,3,4,5,6,7], k = 3Output: [5,6,7,1,2,3,4]Solution (Java):
public void rotate(int[] nums, int k) { k %= nums.length; reverse(nums, 0, nums.length - 1); reverse(nums, 0, k - 1); reverse(nums, k, nums.length - 1);}void reverse(int[] a, int l, int r) { while (l < r) { int t = a[l]; a[l++] = a[r]; a[r--] = t; }}Time Complexity: O(n)
Space Complexity: O(1)
Question 5: two sum
Show solution
Problem Statement: Given an array of integers and a target, return indices of two numbers that add up to target.
Example:
Input: nums = [2, 7, 11, 15], target = 9Output: [0, 1]Solution (Java):
public int[] twoSum(int[] nums, int target) { Map<Integer, Integer> map = new HashMap<>(); for (int i = 0; i < nums.length; i++) { int need = target - nums[i]; if (map.containsKey(need)) return new int[]{map.get(need), i}; map.put(nums[i], i); } return new int[]{};}Time Complexity: O(n)
Space Complexity: O(n)
Question 6: first non-repeating character
Show solution
Problem Statement: Return the first non-repeating character in a string, or ‘_’ if none.
Example:
Input: "swiss"Output: 'w'Solution (Java):
public char firstUnique(String s) { int[] freq = new int[256]; for (char c : s.toCharArray()) freq[c]++; for (char c : s.toCharArray()) if (freq[c] == 1) return c; return '_';}Time Complexity: O(n)
Space Complexity: O(1)
Question 7: check palindrome
Show solution
Problem Statement: Return true if the string reads the same forward and backward (ignore case).
Example:
Input: "Level"Output: trueSolution (Java):
public boolean isPalindrome(String s) { s = s.toLowerCase(); int i = 0, j = s.length() - 1; while (i < j) { if (s.charAt(i++) != s.charAt(j--)) return false; } return true;}Time Complexity: O(n)
Space Complexity: O(1)
Question 8
Q8: Which SQL clause filters grouped rows after GROUP BY?
Solution:
HAVING filters aggregates; WHERE filters rows before grouping.
Answer: HAVING
Question 9
Q9: Time complexity of binary search on a sorted array of n elements is?
Solution:
Each step halves the search space → O(log n).
Answer: O(log n)
Question 10
Q10: Which normal form removes transitive dependency?
Solution:
1NF: atomic values. 2NF: no partial dependency. 3NF: no transitive dependency.
Answer: 3NF
Question 11
Q11: Which protocol is connection-oriented at the transport layer?
Solution:
TCP is connection-oriented; UDP is connectionless.
Answer: TCP
Key insights from 2024 Salesforce Online Assessment
- Coding Section is Critical: Must solve 2-3 coding problems correctly to advance
- CRM System Design: Strong emphasis on CRM system design and data processing
- Time Management: 2-3 coding problems in 90 minutes requires excellent speed
- Success Rate: Only 10-15% cleared OA and advanced to interviews
- Platform: Salesforce’s assessment platform or HackerRank
- Focus Areas: Arrays, trees, graphs, dynamic programming, CRM systems, data processing
Salesforce 2024 interview experiences
Based on candidate experiences from 2024 Salesforce interviews:
2024 Interview Process:
- Online Assessment (90 minutes): 2-3 coding problems
- Technical Phone Screen (45-60 minutes): Coding problems, algorithm discussions, CRM concepts
- Onsite Interviews (4-5 rounds, 45-60 minutes each):
- Coding rounds (2-3): Algorithms, data structures, problem-solving
- System Design rounds: CRM systems, data processing pipelines, cloud architecture
- Behavioral rounds: Problem-solving approach, teamwork, innovation
Common 2024 Interview Topics:
- Coding: Arrays, strings, trees, graphs, dynamic programming, data processing
- System Design: CRM systems, data processing pipelines, cloud architecture
- Behavioral: Problem-solving, teamwork, innovation, customer focus
- Salesforce Technologies: CRM, cloud platforms, data processing, Salesforce products
Success Tips:
- Strong coding performance is essential - solve problems optimally
- Practice system design for CRM systems and data processing
- Prepare examples demonstrating problem-solving and customer focus
- Learn Salesforce’s products and cloud platform
- Practice explaining your thought process clearly
For detailed interview experiences, visit Salesforce Interview Experience page.
Preparation tips for Salesforce 2024 pattern
- Master Coding Fundamentals: Focus on solving 2-3 coding problems correctly - arrays, trees, graphs, DP
- System Design Mastery: Learn CRM system design, data processing pipelines, cloud architecture
- Practice Previous Year Papers: Solve Salesforce OA papers from 2020-2024 to understand patterns
- Time Management: Practice completing 2-3 coding problems in 90 minutes
- LeetCode Practice: Solve 200+ LeetCode problems focusing on arrays, strings, trees, graphs (medium-hard difficulty)
- CRM Knowledge: Understand CRM concepts, data processing, cloud platforms
- Salesforce Technologies: Learn Salesforce products, cloud platform, CRM systems
- Behavioral Preparation: Prepare examples using STAR format - problem-solving, teamwork, customer focus
- Mock Tests: Take timed practice tests to improve speed and accuracy
- Data Processing: Understand data pipelines, ETL processes, and cloud architecture

