SarthiQ

SarthiQ

Interview Preparation Guide

Software Engineer
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
Software Engineer
Content Length
944 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 Software Engineer Interview Questions

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

Software Engineer Interview Questions

Practice with real Software Engineer interview questions

01
A Software Engineer was asked
SarthiQ Software Engineer
Medium
Asked in 2024
Q. What is recursion in algorithms, and how would you implement a function to calculate Fibonacci numbers using recursion?
Ans. Recursion is a programming technique where a function calls itself in order to solve a problem. It is often used for problems that can be broken down into smaller, similar sub-problems. The Fibonacci sequence is a classic example where each number is the sum of the two preceding ones. Here’s how you can implement a recursive function to calculate Fibonacci numbers:
javascript
function fibonacci(n) {
    if (n <= 0) return 0; // base case for n = 0
    if (n === 1) return 1; // base case for n = 1
    return fibonacci(n - 1) + fibonacci(n - 2); // recursive case
}

console.log(fibonacci(5)); // Output: 5
console.log(fibonacci(0)); // Output: 0
console.log(fibonacci(1)); // Output: 1
console.log(fibonacci(6)); // Output: 8
In this implementation, the base cases handle the scenarios for n = 0 and n = 1. The recursive case calls the fibonacci function twice, leading to an exponential time complexity. It is important to note that this naive implementation can be inefficient for larger values of n due to repeated calculations. For improvement, memoization or an iterative approach can be utilized.
Software EngineerCore Concept
02
A Software Engineer was asked
SarthiQ Software Engineer
Medium
Asked in 2024
Q. What is the purpose of the GROUP BY clause in SQL? Provide an example using aggregated functions.
Ans. The GROUP BY clause in SQL is used to arrange identical data into groups and is often used with aggregate functions like COUNT, SUM, AVG, MAX, and MIN. Example:
sql
SELECT department_id, COUNT(*) AS employee_count
FROM employees
GROUP BY department_id;
This query counts the number of employees in each department. If you want to get the average salary per department, you can do:
sql
SELECT department_id, AVG(salary) AS average_salary
FROM employees
GROUP BY department_id;
This will give you the average salary for each department, demonstrating how GROUP BY can be used effectively with aggregate functions.
Software EngineerCore Concept
03
Software Engineer
SarthiQ Software Engineer
Hard

Question:

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

04
Software Engineer
SarthiQ Software Engineer
Hard

Question:

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