Fullstack Developer Intern

40+ Fullstack Developer Intern Interview Questions and Answers

Updated 25 Nov 2024

Popular Companies

search-icon
Q1. Shortest path in an unweighted graph

The city of Ninjaland is analogous to the unweighted graph. The city has ‘N’ houses numbered from 1 to ‘N’ respectively and are connected by M bidirectional roads. If a road ...read more

Q2. Longest Common Subsequence

You have been given two Strings “STR1” and “STR2” of characters. Your task is to find the length of the longest common subsequence.

A String ‘a’ is a subsequence of a String ‘b’ if ‘a’...read more

Fullstack Developer Intern Interview Questions and Answers for Freshers

illustration image
Q3. Dijkstra's shortest path

You have been given an undirected graph of ‘V’ vertices (labeled 0,1,..., V-1) and ‘E’ edges. Each edge connecting two nodes (‘X’,’Y’) will have a weight denoting the distance between no...read more

Q4. Four Keys Keyboard

Imagine you have a special keyboard with the following four keys:

Key 1: (A): Print one ‘A’ on screen. Key 2: (Ctrl-A): Select the whole screen. Key 3: (Ctrl-C): Copy selection to buffer. Key ...read more
Are these interview questions helpful?
Q5. Second Most Repeated Word

You are given an array of strings ‘ARR’. You have to find out the second most repeated word in the array ‘ARR’. It is guaranteed every string occurs a unique number of times in the arra...read more

Q6. Graph Connectivity Queries.

You have been given a graph consisting of ‘N’ nodes and a threshold value ‘THRESHOLDVALUE’. Two different nodes ‘X’ and ‘Y’ are directly connected to each other if and only if there e...read more

Share interview questions and help millions of jobseekers 🌟

man-with-laptop
Q7. N Queens

You are given an integer 'N'. For a given 'N' x 'N' chessboard, find a way to place 'N' queens such that no queen can attack any other queen on the chessboard.

A queen can be killed when it lies in the ...read more

Q8. Snake and Ladder

You have been given a Snake and Ladder Board with 'N' rows and 'N' columns with the numbers written from 1 to (N*N) starting from the bottom left of the board, and alternating direction each row...read more

Fullstack Developer Intern Jobs

0

Q9. What is a linkedlist and its pros ?

Ans.

A linked list is a linear data structure where each element is a separate object with a pointer to the next element.

  • Linkedlist allows for efficient insertion and deletion of elements

  • It can be used to implement stacks, queues, and graphs

  • Traversal is slower compared to arrays

  • Examples include singly linked list, doubly linked list, and circular linked list

Q10. What is Hoisting? What is closure?

Ans.

Hoisting is a JavaScript mechanism where variables and function declarations are moved to the top of their scope.

  • Hoisting applies to variable declarations and function declarations

  • Variables are initialized with undefined and functions are fully defined

  • Hoisting only moves the declarations, not the assignments

  • Example: console.log(x); var x = 5; // Output: undefined

  • Closure is a function that has access to its outer function's variables, even after the outer function has returned...read more

Q11. What is this in javascript ?

Ans.

This could refer to anything in javascript, please provide more context.

  • Please provide more context for a specific answer.

  • It could be a variable, function, object, or any other javascript construct.

  • Without more information, it is impossible to provide a specific answer.

Q12. What marks NodeJS different than javascript and why to use it

Ans.

NodeJS is a runtime environment for executing JavaScript code outside of a web browser.

  • NodeJS allows JavaScript to be run on the server-side, enabling backend development.

  • NodeJS has a built-in library of modules that can be easily integrated into applications.

  • NodeJS is event-driven and non-blocking, making it efficient for handling multiple requests simultaneously.

Q13. What is box model? Center the input tag?

Ans.

Box model is a way of representing HTML elements as rectangular boxes with content, padding, border, and margin.

  • The box model consists of content, padding, border, and margin.

  • Content is the actual content of the element.

  • Padding is the space between the content and the border.

  • Border is the line that surrounds the padding and content.

  • Margin is the space between the border and other elements.

  • To center an input tag, set margin-left and margin-right to auto and display to block.

Q14. Explain All sorting techniques and implement bubble sort in online compiler.

Ans.

Explanation of sorting techniques and implementation of bubble sort

  • Sorting techniques include bubble sort, selection sort, insertion sort, merge sort, quick sort, etc.

  • Bubble sort compares adjacent elements and swaps them if they are in the wrong order, repeating until the array is sorted.

  • Example: [5, 3, 8, 2, 1] -> [3, 5, 8, 2, 1] -> [3, 5, 2, 8, 1] -> [3, 5, 2, 1, 8] -> [3, 2, 5, 1, 8] -> [3, 2, 1, 5, 8] -> [2, 3, 1, 5, 8] -> [2, 1, 3, 5, 8] -> [1, 2, 3, 5, 8]

Q15. can we store database using only post

Ans.

No, databases cannot be stored using only POST requests.

  • Databases are typically stored on a server or in the cloud, not through HTTP requests.

  • POST requests are used to send data to a server, not to store databases.

  • Database management systems like MySQL, PostgreSQL, or MongoDB are used to store and manage databases.

Q16. What is useState in react?

Ans.

useState is a hook in React that allows functional components to have state variables.

  • useState is a built-in hook in React.

  • It allows functional components to have state variables.

  • It takes an initial state value and returns an array with the current state value and a function to update it.

  • The state can be updated using the function returned by useState.

  • Example: const [count, setCount] = useState(0);

Q17. What is temporal deadzone ?

Ans.

Temporal dead zone is a behavior in JavaScript where a variable cannot be accessed before it is declared.

  • Variables declared with let and const are hoisted but cannot be accessed before their declaration

  • Trying to access a variable in its temporal dead zone results in a ReferenceError

  • Temporal dead zone is a feature introduced in ES6 to improve JavaScript's scoping mechanism

Q18. Data Types In Javascript

Ans.

Data types in JavaScript include primitive and object types.

  • Primitive types include string, number, boolean, null, undefined, and symbol.

  • Object types include arrays, functions, and objects.

  • Typeof operator can be used to determine the type of a variable.

  • Type coercion can occur when different types are used together.

Q19. What are hooks in reactjs? How many you used?

Ans.

Hooks in ReactJS are functions that let you use state and other React features in functional components. I have used useState and useEffect hooks.

  • Hooks are introduced in React 16.8 to allow state and lifecycle features in functional components.

  • useState hook is used to add state variables in functional components.

  • useEffect hook is used to perform side effects in functional components, similar to componentDidMount and componentDidUpdate in class components.

Q20. worst case time complexity of merge-sort

Ans.

The worst case time complexity of merge-sort is O(n log n).

  • Merge-sort divides the array into two halves, recursively sorts them, and then merges them back together.

  • In the worst case scenario, the array is divided log n times and each division takes O(n) time.

  • Therefore, the worst case time complexity of merge-sort is O(n log n).

Q21. Difference between Path Variable and Query Variable and it's Significance

Ans.

Path variables are part of the URL path, while query variables are part of the URL query string.

  • Path variables are used to identify a specific resource in the URL path, while query variables are used to provide additional parameters for a resource.

  • Path variables are typically used for essential parameters, while query variables are optional.

  • Example: Path variable in URL - /users/{userId}, Query variable in URL - /users?sortBy=name

  • Path variables are more secure as they are not...read more

Q22. What are the cookies and where they are stored.

Ans.

Cookies are small pieces of data stored on a user's computer by websites to remember user information and preferences.

  • Cookies are stored on the user's computer in the form of text files.

  • They are used by websites to track user activity, remember login credentials, and personalize user experiences.

  • Cookies can be either session cookies (temporary) or persistent cookies (stored for longer periods).

Q23. What is Passport JS(I have used it in my project).

Ans.

Passport JS is a popular authentication middleware for Node.js.

  • Passport JS is used for authenticating users in Node.js applications.

  • It supports various authentication strategies such as local, OAuth, OpenID, etc.

  • Passport JS simplifies the process of implementing authentication by providing a flexible and modular framework.

  • Example: passport.use(new LocalStrategy(...));

Q24. What is Hashmap and its time complexity?

Ans.

Hashmap is a data structure that stores key-value pairs and provides constant time complexity for insertion, deletion, and retrieval.

  • Hashmap is also known as dictionary, associative array, or hash table.

  • It uses a hash function to map keys to their corresponding values in an array.

  • Time complexity for insertion, deletion, and retrieval is O(1) on average, but can be O(n) in worst case scenarios.

  • Example: HashMap map = new HashMap<>(); map.put("apple", 5); int value = map.get("ap...read more

Q25. what is transactions and limits in sql?

Ans.

Transactions in SQL are a way to ensure data integrity by grouping multiple SQL statements into a single unit of work.

  • Transactions help maintain the ACID properties of a database (Atomicity, Consistency, Isolation, Durability).

  • They allow multiple SQL statements to be executed as a single unit, either all succeeding or all failing.

  • Limits in SQL refer to constraints set on the amount of data that can be stored or processed in a database table or query result.

  • Examples of limits ...read more

Q26. Difference between Javascript and Java

Ans.

Javascript is a scripting language used for web development, while Java is a general-purpose programming language.

  • Javascript is interpreted, while Java is compiled

  • Javascript is used for client-side scripting, while Java is used for server-side programming

  • Javascript is loosely typed, while Java is strongly typed

  • Javascript has a prototype-based object model, while Java has a class-based object model

Q27. What is React Vdom ?

Ans.

React Vdom is a virtual representation of the actual DOM used by React to optimize rendering performance.

  • Vdom is a lightweight copy of the actual DOM tree.

  • React compares the previous and current Vdom trees to determine the minimum number of changes required to update the actual DOM.

  • This approach reduces the number of DOM manipulations and improves performance.

  • Vdom can be created using React.createElement() or JSX syntax.

Q28. what is dependency injection

Ans.

Dependency injection is a design pattern where components are given their dependencies rather than creating them internally.

  • Dependency injection helps in achieving loose coupling between classes.

  • It allows for easier testing by providing mock dependencies.

  • There are three types of dependency injection - constructor injection, setter injection, and interface injection.

Frequently asked in,

Q29. what is functional interface

Ans.

Functional interface is an interface with only one abstract method, used in Java to achieve functional programming.

  • Functional interface has only one abstract method, but can have multiple default or static methods.

  • It can be annotated with @FunctionalInterface to ensure it has only one abstract method.

  • Functional interfaces are used in Java to enable functional programming features like lambda expressions.

  • Examples of functional interfaces in Java include Runnable, Callable, and...read more

Frequently asked in,

Q30. Tell something about React lifecycle management

Ans.

React lifecycle management refers to the sequence of events that occur during the lifespan of a React component.

  • React components go through various stages such as mounting, updating, and unmounting.

  • During mounting, constructor, render, and componentDidMount methods are called.

  • During updating, componentDidUpdate method is called after a component's state or props change.

  • During unmounting, componentWillUnmount method is called before a component is removed from the DOM.

  • Lifecycl...read more

Q31. Difference between Controlled Components and Uncontrolled Components

Ans.

Controlled components are controlled by React state, while uncontrolled components manage their own state internally.

  • Controlled components are controlled by React state and their value is set by the parent component.

  • Uncontrolled components manage their own state internally and their value is handled by the DOM.

  • Controlled components provide more control and flexibility, while uncontrolled components are simpler to implement.

  • Example: Controlled components - input fields with va...read more

Q32. What are API, explain in brief?

Ans.

API stands for Application Programming Interface, it allows different software applications to communicate with each other.

  • APIs define the methods and data formats that applications can use to request and exchange information.

  • They allow developers to access the functionality of a service or application without needing to understand its internal workings.

  • Examples of APIs include Google Maps API for integrating maps into websites, Twitter API for accessing tweets and user data,...read more

Q33. what is JWT and authentication?

Ans.

JWT is a JSON Web Token used for authentication in web applications.

  • JWT is an open standard for creating access tokens that can securely transmit information between parties.

  • It consists of three parts: header, payload, and signature.

  • JWTs are commonly used for user authentication and authorization in web applications.

  • Example: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQss...read more

Q34. What is DOM and how virtual dom works

Ans.

DOM stands for Document Object Model, a tree-like structure representing the HTML elements of a web page. Virtual DOM is a lightweight copy of the actual DOM used for efficient updates.

  • DOM is a programming interface for web documents, allowing scripts to dynamically access and update the content, structure, and style of HTML documents.

  • Virtual DOM is a concept where a lightweight copy of the actual DOM is created in memory, allowing for efficient updates without directly manip...read more

Q35. introduction types of joins in sql and their use

Ans.

Types of joins in SQL include inner join, left join, right join, and full outer join.

  • Inner join: Returns rows when there is a match in both tables.

  • Left join: Returns all rows from the left table and the matched rows from the right table.

  • Right join: Returns all rows from the right table and the matched rows from the left table.

  • Full outer join: Returns rows when there is a match in either table.

Q36. What is redux in react?

Ans.

Redux is a predictable state container for JavaScript apps.

  • Redux is a state management tool commonly used with React.

  • It helps in managing the state of the application in a predictable way.

  • Redux stores the entire state of the application in a single immutable state tree.

  • Actions are dispatched to update the state, and reducers specify how the state changes in response to actions.

  • Redux is commonly used for larger applications with complex state management needs.

Q37. Explaining the algorithm used in projects

Ans.

I have used various algorithms such as sorting, searching, and graph algorithms in my projects.

  • Implemented quicksort algorithm for sorting large datasets efficiently

  • Utilized Dijkstra's algorithm for finding shortest path in a graph

  • Implemented binary search algorithm for efficient searching in a sorted array

Q38. Which programing language you know

Ans.

I am proficient in Java, Python, JavaScript, and C++.

  • Java

  • Python

  • JavaScript

  • C++

Q39. Explain Binary search

Ans.

Binary search is a search algorithm that finds the position of a target value within a sorted array.

  • Divide the array into two halves and compare the target value with the middle element.

  • If the target value is less than the middle element, search the left half. If greater, search the right half.

  • Repeat the process until the target value is found or the subarray is empty.

Q40. What is socket programming

Ans.

Socket programming is a way of connecting two nodes on a network to communicate with each other.

  • It involves creating a socket object, binding it to a specific port on a specific IP address, listening for incoming connections, and then sending and receiving data.

  • Commonly used in client-server applications where the server listens for incoming connections and the client initiates the connection.

  • Examples include chat applications, online gaming, and real-time data transfer.

  • Socke...read more

Q41. Design Database Model for

Ans.

Design a database model for a social media platform

  • Create tables for users, posts, comments, likes, followers, etc.

  • Establish relationships between tables using foreign keys

  • Consider indexing for faster data retrieval

  • Implement user authentication and authorization mechanisms

Q42. difference between == and ===

Ans.

The difference between == and === is that == checks for equality after type coercion, while === checks for equality without type coercion.

  • == is a loose equality comparison, allowing for type coercion (e.g. '1' == 1 is true)

  • === is a strict equality comparison, requiring both value and type to be the same (e.g. '1' === 1 is false)

Q43. Explain Hook concept.

Ans.

Hooks are a feature in React that allow you to use state and other React features in functional components.

  • Hooks were introduced in React 16.8 to allow functional components to have state and lifecycle methods.

  • useState() is a hook that allows you to add state to functional components.

  • useEffect() is a hook that allows you to perform side effects in functional components.

  • Custom hooks are reusable functions that can contain stateful logic and be shared across multiple components...read more

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

Top Interview Questions for Fullstack Developer Intern Related Skills

Interview experiences of popular companies

3.8
 • 5.4k Interviews
4.4
 • 811 Interviews
4.2
 • 217 Interviews
2.9
 • 174 Interviews
3.7
 • 131 Interviews
3.7
 • 128 Interviews
3.4
 • 40 Interviews
3.8
 • 3 Interviews
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

Fullstack Developer Intern 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
Get AmbitionBox app

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