Add office photos
Engaged Employer

Codingmart Technologies

4.1
based on 68 Reviews
Filter interviews by

Delhivery Interview Questions and Answers

Updated 20 Feb 2025

Q1. What is the algorithm used in Google Maps ?

Ans.

Google Maps uses a variety of algorithms including A* search algorithm, Dijkstra's algorithm, and real-time traffic data.

  • Google Maps uses the A* search algorithm to find the shortest path between two points on the map.

  • Dijkstra's algorithm is used to calculate the shortest route between multiple points on the map.

  • Real-time traffic data is incorporated into the algorithm to provide accurate and up-to-date navigation information.

  • Google Maps also uses machine learning algorithms ...read more

Add your answer

Q2. reverse string without buildin funtion and for loop

Ans.

Reverse a string without using built-in functions or for loops

  • Use recursion to reverse the string

  • Pass the substring excluding the first character to the recursive function

  • Base case: return the character itself if the length of the string is 1

  • Concatenate the last character of the string with the result of the recursive call

Add your answer

Q3. Debug the Errors in the given program

Ans.

The program has errors that need to be debugged

  • Check for syntax errors such as missing semicolons or parentheses

  • Look for logical errors in the code that may be causing unexpected behavior

  • Use debugging tools like print statements or a debugger to track down the issue

Add your answer

Q4. Error fixing in the given program

Ans.

To fix errors in a program, identify the root cause, debug the code, test the fix, and ensure it doesn't introduce new issues.

  • Identify the specific error message or behavior causing the issue.

  • Review the code to understand the logic and flow.

  • Use debugging tools like breakpoints, print statements, or logging to pinpoint the issue.

  • Make necessary code changes to address the error.

  • Test the fix thoroughly to ensure it resolves the issue without introducing new bugs.

Add your answer
Discover Delhivery interview dos and don'ts from real experiences

Q5. Delete Middle Element from a stack of Odd Length

Ans.

Remove middle element from a stack with odd length

  • Find the middle index of the stack by dividing the length by 2

  • Remove the element at the middle index

  • Adjust the stack by shifting elements if necessary

Add your answer

Q6. what are the frameworks used in development?

Ans.

Frameworks are tools that provide pre-written code to help developers build applications more efficiently.

  • Popular front-end frameworks include React, Angular, and Vue.js

  • Common back-end frameworks include Express.js, Django, and Ruby on Rails

  • Full stack frameworks like MEAN and MERN stack combine front-end and back-end technologies

Add your answer

Q7. why we use oops concept in java

Ans.

OOPs concepts in Java help in organizing code, improving reusability, and making code more maintainable.

  • Encapsulation: Bundling data and methods together to restrict access and protect data.

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

  • Polymorphism: Ability to perform a single action in different ways.

  • Abstraction: Hiding the implementation details and showing only the necessary features.

Add your answer

Q8. Pseudo code in linked list

Ans.

Pseudo code example for linked list operations

  • Create a Node class with data and next pointer

  • Initialize head as null for an empty linked list

  • Insert at the beginning: create a new node, set its next to current head, update head to new node

  • Traverse the linked list: start from head, loop until reaching null, move to next node

Add your answer

Q9. Why do we use oops in java

Ans.

OOPs in Java helps in organizing code, promoting reusability, and enhancing maintainability.

  • Encapsulation: Bundling data and methods together to restrict access

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

  • Polymorphism: Ability to use a single interface to represent different data types

  • Abstraction: Hiding implementation details and showing only necessary features

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Delhivery

based on 24 interviews
Interview experience
3.5
Average
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

3.7
 • 419 Interview Questions
3.3
 • 405 Interview Questions
4.2
 • 368 Interview Questions
3.8
 • 210 Interview Questions
3.8
 • 144 Interview Questions
3.8
 • 137 Interview Questions
View all
Top Codingmart Technologies Interview Questions And Answers
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
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

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