SarthiQ

SarthiQ

Interview Preparation Guide

Deloitte
Questions & Answers

A comprehensive, expert-curated list of real interview questions to help you prepare effectively and land your dream job.

Document Details

Topic / Subject
Deloitte
Content Length
35 Curated Q&A
Generated On
October 4, 2026
Provided By
SarthiQ.com
Want to explore more questions & mock interviews? Click on 👉www.sarthiq.com
© 2026 SarthiQ Platform. All rights reserved.
www.sarthiq.com
Resume Upload Get Job in 90 Days Resume Builder AI Interview Coach Interview Questions Placement Committee Self Assessment Get Internship

Need Help?

[email protected]

Top Deloitte Interview Questions

NETFLIX
ORACLE
Adobe
NVIDIA
meta
IBM
wipro
TCS
cisco
intel
SAP
Uber

Deloitte Interview Questions

Practice with real Deloitte interview questions

01
A Software Engineer was asked
SarthiQ Deloitte
Medium
Asked in 2024
Q. How can you implement a binary search algorithm in Python? Provide an example.
Ans. A binary search algorithm efficiently finds a target value within a sorted array by repeatedly dividing the search interval in half. Below is an implementation in Python:
python
**def binary_search(arr, target):**
    left, right = 0, len(arr) - 1
**    while left <= right:**
        mid = (left + right) // 2
**        if arr[mid] == target:**
            return mid  # Target found at index mid
**        elif arr[mid] < target:**
            left = mid + 1  # Target is in the right half
**        else:**
            right = mid - 1  # Target is in the left half
    return -1  # Target not found

**Example usage**
sorted_array = [1, 2, 3, 4, 5, 6, 7, 8, 9]
target = 5
result = binary_search(sorted_array, target)
print('Element found at index:', result)  # Output: Element found at index: 4
This implementation runs in O(log n) time complexity, making it highly efficient for large datasets.
Software EngineerCore Concept
02
A Software Engineer was asked
SarthiQ Deloitte
Medium
Asked in 2024
Q. How do you manipulate strings in Python? Write a function that reverses a string and handles edge cases like empty strings.
Ans. String manipulation is a fundamental skill in Python. You can use string slicing, concatenation, and various built-in methods to manipulate strings. Here’s an implementation of a function that reverses a string while handling edge cases:
python
**def reverse_string(s):**
**    if s is None:**
        return 'Input cannot be None'
**    if len(s) == 0:**
        return 'Input is an empty string'
    return s[::-1]

**Test the function**
print(reverse_string('hello'))  # Output: 'olleh'
print(reverse_string(''))       # Output: 'Input is an empty string'
print(reverse_string(None))     # Output: 'Input cannot be None'
This function checks for None and empty string inputs and uses slicing to reverse the string efficiently.
Software EngineerCore Concept
03
Software Engineer
SarthiQ Deloitte
Hard

Question:

How would you design a scalable system for XYZ...

04
Software Engineer
SarthiQ Deloitte
Hard

Question:

How would you design a scalable system for XYZ...