Full Stack Engineer

40+ Full Stack Engineer Interview Questions and Answers

Updated 22 Feb 2025
search-icon

Q1. Find All Subsets

Given an array arr consisting of 'N' distinct integers, your task is to generate all possible non-empty subsets of the given array.

You can return the subsets in any order.

Input:

The first lin...read more

Q2. Longest Palindromic Subsequence Problem Statement

Given a string A consisting of lowercase English letters, determine the length of the longest palindromic subsequence within A.

Explanation:

  • A subsequence is d...read more

Full Stack Engineer Interview Questions and Answers for Freshers

illustration image

Q3. Reverse Linked List Problem Statement

Given a singly linked list of integers, return the head of the reversed linked list.

Example:

Initial linked list: 1 -> 2 -> 3 -> 4 -> NULL
Reversed linked list: 4 -> 3 -> 2...read more

Q4. Next Smallest Palindrome Problem Statement

Given a string representation of a number 'S', determine the smallest palindrome that is strictly greater than this number 'N'.

Example:

Input:
3
2
99
3
123
4
4567
Output:
1...read more
Are these interview questions helpful?

Q5. Word Pattern Problem Statement

Given two strings S and T, determine if S follows the same pattern as T.

A full match means there is a bijection between a letter of T and a non-empty word of S.

Example:

Input:
S...read more

Q6. Count Subarrays with Sum Divisible by K

Given an array ARR and an integer K, your task is to count all subarrays whose sum is divisible by the given integer K.

Input:

The first line of input contains an integer...read more

Share interview questions and help millions of jobseekers šŸŒŸ

man-with-laptop

Q7. Smaller Elements Count Problem Statement

Given an array of size N, return a count array such that COUNT[i] equals the number of elements which are smaller than ARR[i] on its right side.

Input:

Input Format:
The...read more

Q8. Maximum Size Rectangle Sub-matrix with All 1's Problem Statement

You are provided with an N * M sized binary matrix 'MAT' where 'N' denotes the number of rows and 'M' denotes the number of columns. Your task is...read more

Ans.

The task is to find the maximum size of a submatrix consisting of all 1's in a given binary-valued matrix.

  • Iterate through each cell of the matrix

  • For each cell, calculate the maximum size of a submatrix with that cell as the top-left corner

  • Keep track of the maximum size encountered so far

  • Return the maximum size

Full Stack Engineer Jobs

Full Stack Engineer II (Java Full Stack) ā€¢ 1-3 years
Verizon Data Services India Pvt.Ltd
ā€¢
4.1
Hyderabad / Secunderabad
Apple - Full Stack Engineer - Java/React.js (3-8 yrs) ā€¢ 3-8 years
Apple INC
ā€¢
4.3
Full Stack Engineer ā€¢ 1-6 years
Verizon Data Services India Pvt.Ltd
ā€¢
4.1
Bangalore / Bengaluru

Q9. Minimum Operations to Equalize Array

Given an integer array ARR of length N where ARR[i] = (2*i + 1), determine the minimum number of operations required to make all the elements of ARR equal. In a single opera...read more

Q10. Level Order Traversal Problem Statement

Given a binary tree of integers, return the level order traversal of the binary tree.

Input:

The first line contains an integer 'T', representing the number of test cases...read more

Q11. Next Greater Node in Linked List Problem Statement

In a set of linked ninja villages, the goal is to determine if a stronger ninja exists in the nearest village linked ahead. Given a linked list of 'N' integers...read more

Q12. Count the Number of Ones Problem Statement

Given an integer N, calculate the total number of times the digit '1' appears in each number from 0 to N inclusive.

Input:

T (number of test cases)
Each test case conta...read more
Ans.

The task is to count the number of occurrences of the digit '1' in each number from 0 to N.

  • Iterate through each number from 0 to N

  • Convert each number to a string

  • Count the number of occurrences of the digit '1' in the string representation of each number

  • Return the total count of '1's

Q13. 0/1 Knapsack Problem Statement

A thief is planning to rob a store and can carry a maximum weight of 'W' in his knapsack. The store contains 'N' items where the ith item has a weight of 'wi' and a value of 'vi'....read more

Q14. Count Distinct Substrings

You are provided with a string S. Your task is to determine and return the number of distinct substrings, including the empty substring, of this given string. Implement the solution us...read more

Q15. Edit Distance Problem Statement

Given two strings S and T with lengths N and M respectively, your task is to find the "Edit Distance" between these strings.

The Edit Distance is defined as the minimum number of...read more

Q16. Rank from Stream Problem Statement

Given an array of integers ARR and an integer K, determine the rank of the element ARR[K].

Explanation:

The rank of any element in ARR is defined as the number of elements sma...read more

Q17. Merge Intervals Problem Statement

You are provided with 'N' intervals, each containing two integers denoting the start time and end time of the interval.

Your task is to merge all overlapping intervals and retu...read more

Q18. Longest Subarray Zero Sum Problem Statement

Given an array of integers arr, determine the length of the longest contiguous subarray that sums to zero.

Input:

N (an integer, the length of the array)
arr (list of ...read more
Q19. Can you provide examples of OOP concepts using code, including coding for all the principles of Object-Oriented Programming?

Q20. What is API? Difference between API and RestApi What is cloud? Where have you used cloud till now? Database related questions. A few html js related questions.

Ans.

API stands for Application Programming Interface. It defines the methods and data formats that applications can use to communicate with each other.

  • API is a set of rules and protocols that allows different software applications to communicate with each other.

  • REST API is a type of API that follows the principles of REST (Representational State Transfer) architecture.

  • Cloud computing refers to the delivery of computing services over the internet, including storage, databases, net...read more

Q21. how to optimize the query ?

Ans.

Optimizing a query involves using indexes, limiting the result set, and avoiding unnecessary joins.

  • Use indexes on columns frequently used in the query's WHERE clause

  • Limit the result set by using pagination or filtering criteria

  • Avoid unnecessary joins by denormalizing data or using subqueries

Q22. Find max continous sub array with unique elements in an array

Ans.

Find max continous sub array with unique elements in an array

  • Use sliding window approach

  • Keep track of unique elements in the window

  • Update max length when a duplicate element is found

Q23. The most difficult challenges faced, situation-based approach, dealing with ambiguous requirements

Ans.

Dealing with ambiguous requirements and difficult challenges in a situation-based approach.

  • Identifying and clarifying ambiguous requirements through effective communication

  • Breaking down complex problems into smaller, manageable tasks

  • Adapting to changing priorities and tight deadlines

  • Collaborating with team members to brainstorm solutions

  • Using critical thinking and problem-solving skills to find innovative solutions

  • Managing expectations and balancing trade-offs between differe...read more

Q24. In which hook do we perform the clean up?

Ans.

The clean up is performed in the useEffect hook in React.

  • Clean up code is typically written in the return function of the useEffect hook.

  • This is useful for unsubscribing from subscriptions, clearing intervals, or any other necessary clean up tasks.

  • Example: useEffect(() => { // code here return () => { // clean up code here } }, [])

Q25. write code for retry mechanism ?

Ans.

Implementing a retry mechanism in code to handle failures and retries automatically.

  • Create a function that takes a function to execute and a maximum number of retries as parameters.

  • Use a loop to execute the function and catch any exceptions that occur.

  • If an exception occurs, decrement the number of retries left and retry the function.

  • Example: function retry(func, maxRetries) { for(let i=0; i

Q26. monolith vs microservices ?

Ans.

Monolith is a single, large application while microservices are smaller, independent services.

  • Monolith is a single, self-contained application where all components are interconnected.

  • Microservices are smaller, independent services that communicate with each other through APIs.

  • Monoliths are easier to develop and deploy but can become complex and harder to scale.

  • Microservices offer better scalability, flexibility, and fault isolation but come with added complexity in managing m...read more

Q27. Have you worked on docker/kubernetes?

Ans.

Yes, I have experience working with Docker and Kubernetes.

  • I have used Docker to containerize applications for easier deployment and scaling.

  • I have experience with Kubernetes for managing containerized applications in a clustered environment.

  • I have set up Kubernetes clusters, managed deployments, services, and pods.

  • I have worked on configuring networking, storage, and monitoring in Kubernetes.

  • I have experience with Helm charts for packaging Kubernetes applications.

Q28. What is es 6 in javascript.

Ans.

ES6 is the 6th version of ECMAScript, the standard for JavaScript.

  • Introduced new features like let, const, arrow functions, classes, and modules.

  • Improved syntax and added new methods to built-in objects.

  • Supports destructuring, spread and rest operators, and template literals.

  • Compatible with modern browsers and Node.js versions.

Q29. Explain your developer journey not CV

Ans.

My journey started with self-learning and building small projects. Then I pursued a degree in computer science and gained professional experience in various companies.

  • Started with self-learning and building small projects

  • Pursued a degree in computer science

  • Gained professional experience in various companies

  • Continuously learning and improving skills

Q30. 5)What is call backhell

Ans.

Callback hell is a situation where nested callbacks make the code difficult to read and maintain.

  • It occurs when multiple asynchronous functions are called one after the other.

  • It leads to deeply nested code that is hard to understand and debug.

  • It can be avoided by using promises or async/await syntax.

  • Example: nested callbacks in Node.js file system operations.

Q31. 6)What is data binding

Ans.

Data binding is the process of connecting data between the model and view in a web application.

  • It allows for automatic updates to the view when the model changes and vice versa.

  • There are two-way and one-way data binding.

  • Examples include AngularJS's ng-model directive and React's state and props system.

Q32. SQL query to find duplicate values

Ans.

Use GROUP BY and HAVING clause to find duplicate values in SQL.

  • Use GROUP BY clause to group the data based on the column you want to check for duplicates.

  • Use HAVING clause to filter out groups that have more than one entry, indicating duplicates.

  • Example: SELECT column_name, COUNT(*) FROM table_name GROUP BY column_name HAVING COUNT(*) > 1;

Q33. What are micro services

Ans.

Microservices are a software development technique where applications are broken down into smaller, independent services that communicate with each other through APIs.

  • Microservices are small, independent services that focus on specific business functions.

  • Each microservice runs its own process and communicates with other services through APIs.

  • Microservices can be developed, deployed, and scaled independently of each other.

  • They promote flexibility, scalability, and resilience i...read more

Q34. Difference between div and span tag

Ans.

div is a block-level element while span is an inline element in HTML.

  • div is used to create a block-level element that starts on a new line and takes up the full width available, while span is used to create an inline element that does not start on a new line and only takes up as much width as necessary.

  • div is typically used for grouping and styling larger sections of content, while span is used for styling smaller parts of text or inline elements within a block-level element....read more

Q35. Implementation of fetch api on sandbox

Ans.

Using fetch API to make requests to a sandbox environment for testing purposes.

  • Use the fetch function to make HTTP requests to the sandbox URL

  • Handle the response using promises and the .then() method

  • Set the appropriate headers and request method for the API endpoint

  • Parse the response data using JSON methods if needed

Q36. Explain OOPs Concepts in Detail

Ans.

OOPs concepts revolve around the principles of encapsulation, inheritance, polymorphism, and abstraction in object-oriented programming.

  • Encapsulation: Bundling data and methods that operate on the data into a single unit (object).

  • Inheritance: Allowing a class to inherit properties and behavior from another class.

  • Polymorphism: Ability for objects of different classes to respond to the same message.

  • Abstraction: Hiding the complex implementation details and showing only the nece...read more

Q37. Scope of databinding

Ans.

Databinding is a technique to establish a connection between UI and data source.

  • Databinding allows automatic synchronization of data between UI and data source.

  • It reduces boilerplate code and makes code more readable and maintainable.

  • Databinding can be one-way or two-way depending on the requirement.

  • Examples of databinding frameworks are AngularJS, React, Vue.js, etc.

Q38. Write tests for Go

Ans.

Writing tests for Go programming language

  • Use the testing package in Go to write unit tests

  • Create test files with _test.go suffix for each package to be tested

  • Use functions like TestXxx(t *testing.T) to define test cases

  • Run tests using 'go test' command in the terminal

Q39. How do handle work pressure?

Ans.

I handle work pressure by prioritizing tasks, taking breaks, and seeking support when needed.

  • Prioritize tasks based on deadlines and importance

  • Take short breaks to recharge and refocus

  • Communicate with team members or supervisors for help or guidance

  • Practice stress-relief techniques like deep breathing or mindfulness

  • Maintain a healthy work-life balance to prevent burnout

Q40. How is react optimised than other JS frameworks?

Ans.

React is optimised due to virtual DOM, one-way data binding, and component-based architecture.

  • Virtual DOM allows React to update only the necessary components, improving performance.

  • One-way data binding ensures that data flows in a single direction, reducing the risk of bugs.

  • Component-based architecture promotes reusability and modularity, making code easier to maintain.

  • React's use of JSX allows developers to write HTML-like code within JavaScript, improving readability and p...read more

Q41. How to index in mongo DB?

Ans.

Indexes in MongoDB are used to improve the performance of queries by allowing the database to quickly locate and retrieve specific documents.

  • Indexes can be created using the createIndex() method in MongoDB.

  • Indexes can be created on a single field or a combination of fields.

  • Indexes can be unique, sparse, or compound.

  • Examples: db.collection.createIndex({ field: 1 }), db.collection.createIndex({ field1: 1, field2: -1 })

Q42. What are duplexes in node?

Ans.

Duplexes in Node.js are streams that can both read from and write to.

  • Duplex streams are instances of the `stream.Duplex` class in Node.js

  • They combine the features of Readable and Writable streams

  • Examples of Duplex streams include TCP sockets and zlib streams

Q43. What do understand by scrum?

Ans.

Scrum is an agile project management framework that emphasizes teamwork, accountability, and iterative progress.

  • Scrum is based on the principles of transparency, inspection, and adaptation.

  • It involves breaking down a project into small, manageable tasks called user stories.

  • Scrum teams work in short iterations called sprints, typically 2-4 weeks long.

  • Daily stand-up meetings are held to discuss progress, challenges, and plans for the day.

  • Scrum also includes regular sprint revie...read more

Q44. What is mongoose Lookup?

Ans.

Mongoose Lookup is a feature in Mongoose that allows for populating documents from another collection.

  • Mongoose Lookup is used to reference documents from another collection in MongoDB.

  • It is similar to a SQL join operation.

  • Example: User schema referencing a Post schema using Mongoose Lookup.

Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions for Full Stack Engineer Related Skills

Interview experiences of popular companies

3.8
Ā ā€¢Ā 8.2k Interviews
3.8
Ā ā€¢Ā 5.6k Interviews
4.0
Ā ā€¢Ā 761 Interviews
4.0
Ā ā€¢Ā 605 Interviews
3.9
Ā ā€¢Ā 340 Interviews
4.1
Ā ā€¢Ā 330 Interviews
3.9
Ā ā€¢Ā 211 Interviews
4.0
Ā ā€¢Ā 207 Interviews
4.0
Ā ā€¢Ā 83 Interviews
Ā ā€¢Ā 1 Interview
View all

Calculate your in-hand salary

Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary

Full Stack Engineer Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ā¤ļø in India. Trademarks belong to their respective owners. All rights reserved Ā© 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter