Junior Backend Developer

10+ Junior Backend Developer Interview Questions and Answers

Updated 6 Jul 2025
search-icon
6d ago

Q. What are the basic differences between Trees and Graphs, and how can we traverse them?

Ans.

Trees are a type of graph with a hierarchical structure. Graphs are a collection of nodes and edges.

  • Trees have a single root node, while graphs can have multiple disconnected nodes.

  • Traversal of trees can be done using depth-first or breadth-first search algorithms.

  • Traversal of graphs can be done using various algorithms like Dijkstra's algorithm, Bellman-Ford algorithm, etc.

Asked in HackerKernel

3d ago

Q. What is the UPDATE query in SQL used for?

Ans.

The UPDATE query is used to modify existing data in a database table.

  • The UPDATE query is followed by the name of the table and the SET keyword to specify the columns to be updated.

  • The WHERE clause is used to specify the condition for updating specific rows.

  • Multiple columns can be updated in a single UPDATE query.

  • The UPDATE query can be used with various operators like =, +, -, *, /, etc.

  • Example: UPDATE employees SET salary = 50000 WHERE department = 'IT';

4d ago

Q. Given a binary tree, invert it such that the left and right children of each node are swapped. Return the root of the inverted tree.

Ans.

Invert a given binary tree by swapping left and right child nodes recursively.

  • Recursively swap left and right child nodes of each node in the binary tree.

  • Start from the root node and swap its left and right child nodes.

  • Then, recursively swap the left and right child nodes of the left and right child nodes of the root node.

  • Repeat the process until all nodes have been swapped.

  • Return the inverted binary tree.

1d ago

Q. How do you kill a process in Linux?

Ans.

Use the 'kill' command followed by the process ID to terminate a process in Linux.

  • Use 'ps' command to find the process ID of the process you want to kill

  • Use 'kill' command followed by the process ID to terminate the process

  • You can also use 'kill -9' followed by the process ID for a forceful termination

Are these interview questions helpful?
2d ago

Q. What is the PATCH method in HTTP?

Ans.

PATCH method in HTTP is used to partially update a resource on the server.

  • PATCH requests are used to make partial updates to a resource

  • It is typically used when you want to update only a few fields of an existing resource

  • The PATCH request body contains the changes to be applied to the resource

3d ago

Q. What is the structure of JWT?

Ans.

JWT (JSON Web Token) is a compact, URL-safe means of representing claims to be transferred between two parties.

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

  • Header typically consists of the type of token and the signing algorithm being used.

  • Payload contains the claims. Claims are statements about an entity (typically the user) and additional data.

  • Signature is created by encoding the header, payload, a secret, and the algorithm specified in the header.

  • JWTs are ty...read more

Junior Backend Developer Jobs

Indium Software logo
Junior Backend Developer (Scala) 1-3 years
Indium Software
4.0
Bangalore / Bengaluru
Quantum Phinance Pvt. Ltd logo
Quantum Phinance - Junior Backend Developer - WPF/.Net (1-2 yrs) 1-2 years
Quantum Phinance Pvt. Ltd
3.6
₹ 12 L/yr - ₹ 15 L/yr
Lumel Technologies LLP logo
Lumel Technologies LLP - Junior Backend Developer - Data Structure & Algorithm (2-4 yrs) 2-4 years
Lumel Technologies LLP
3.8
4d ago

Q. What are the differences between a linked list and an array list?

Ans.

LinkedList is a data structure where each element points to the next element, while ArrayList is a resizable array implementation.

  • LinkedList uses pointers to connect elements, while ArrayList uses an underlying array to store elements.

  • LinkedList allows for efficient insertion and deletion of elements, while ArrayList is more efficient for random access.

  • LinkedList is not contiguous in memory, while ArrayList is contiguous in memory.

  • Example: LinkedList: 1 -> 2 -> 3 -> 4, ArrayL...read more

4d ago

Q. Why do we use CORS?

Ans.

CORS is used to allow or restrict cross-origin requests in web applications.

  • CORS is used to prevent malicious websites from making unauthorized requests to a different origin.

  • It allows servers to specify who can access their resources by setting appropriate headers.

  • CORS is important for security and privacy reasons in web development.

  • Example: If a frontend application on domain A wants to make a request to a backend API on domain B, CORS must be implemented to allow this comm...read more

Share interview questions and help millions of jobseekers 🌟

man-with-laptop
3d ago

Q. Write a program using recursion.

Ans.

Recursion is a programming technique where a function calls itself in order to solve a problem.

  • Recursion involves breaking down a problem into smaller subproblems and calling the function recursively on each subproblem.

  • Base case is important in recursion to prevent infinite loop.

  • Examples of recursive functions include factorial calculation, Fibonacci sequence generation, and tree traversal.

1d ago

Q. Write code for sorting.

Ans.

Code for sorting an array of strings

  • Use a sorting algorithm like bubble sort, selection sort, or quicksort

  • Implement the sorting algorithm in a function that takes an array of strings as input

  • Return the sorted array of strings

1d ago

Q. You are given an array of integers nums and an integer target. You want to find the number of ways to assign '+' or '-' to each integer in nums such that the sum of the integers equals target. Return the number...

read more
Ans.

The Target Sum problem involves finding ways to assign '+' or '-' to numbers to reach a specific target sum.

  • Dynamic Programming (DP) approach is used to solve this problem efficiently.

  • Example: Given numbers [1, 1, 2, 3] and target sum 1, possible combinations are: +1 -1 +2 -3.

  • Create a DP table to store results of subproblems, reducing redundant calculations.

  • Base case: If the target is 0, there's one way to achieve it (by not selecting any number).

  • The problem can be transforme...read more

Interview Experiences of Popular Companies

HackerKernel Logo
2.6
 • 4 Interviews
View all
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

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

Junior Backend Developer Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+

Reviews

10L+

Interviews

4 Cr+

Salaries

1.5 Cr+

Users

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2025 Info Edge (India) Ltd.

Follow Us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter
Profile Image
Hello, Guest
AmbitionBox Employee Choice Awards 2025
Winners announced!
awards-icon
Contribute to help millions!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos
Add office benefits
Add office benefits