CoverPhoto
Hexaware Technologies logo
Premium Employer

Hexaware Technologies

Verified
3.5
based on 6k Reviews
Filter interviews by
Software Developer Intern
Fresher
Clear (1)

Hexaware Technologies Software Developer Intern Interview Questions and Answers

Updated 5 Feb 2024

Q1. Kth Largest Element Problem

Given an array containing N distinct positive integers and a number K, determine the Kth largest element in the array.

Example:

Input:
N = 6, K = 3, array = [2, 1, 5, 6, 3, 8]
Output...read more
Ans.

Find the Kth largest element in an array of distinct positive integers.

  • Sort the array in non-increasing order and return the Kth element.

  • Handle multiple test cases efficiently.

  • Ensure all elements in the array are distinct.

Add your answer
right arrow

Q2. Maximum Sum Path from Leaf to Root

Given a binary tree with 'N' nodes, identify the path from a leaf node to the root node that has the maximum sum among all root-to-leaf paths.

Example:

All the possible root t...read more

Ans.

Find the path from a leaf node to the root node with the maximum sum in a binary tree.

  • Traverse the binary tree from leaf nodes to the root while keeping track of the sum of each path.

  • Compare the sums of all paths and return the path with the maximum sum.

  • Use recursion to traverse the tree efficiently.

  • Consider edge cases such as when the tree is empty or has only one node.

Add your answer
right arrow
Hexaware Technologies Software Developer Intern Interview Questions and Answers for Freshers
illustration image

Q3. Fishmonger Toll Optimization Problem

A fishmonger needs to transport goods from a port to a market, crossing multiple states each requiring a toll. The goal is to minimize the toll costs while ensuring the jour...read more

Ans.

The Fishmonger Toll Optimization Problem involves minimizing toll costs while ensuring timely delivery of goods from a port to a market.

  • Given 'N' states and a time limit 'M', find the smallest toll amount to reach the market from the port within the given time.

  • Use dynamic programming to solve the problem efficiently.

  • Consider the time and toll matrices to calculate the minimum toll cost.

  • Return -1 if it is not possible to reach the market within the given time limit.

Add your answer
right arrow

Q4. Add Two Numbers Represented as Linked Lists

Given two linked lists representing two non-negative integers, where the digits are stored in reverse order (i.e., starting from the least significant digit to the mo...read more

Ans.

Add two numbers represented as linked lists and return the sum as a linked list.

  • Traverse both linked lists simultaneously while keeping track of carry from previous sum

  • Create a new linked list to store the sum digits

  • Handle cases where one list is longer than the other by adding remaining digits with carry

  • Remember to handle the case where there is a carry after adding all digits

Add your answer
right arrow
Discover Hexaware Technologies interview dos and don'ts from real experiences

Q5. Shape and Method Overriding Problem Statement

Create a base class called Shape that contains a field named shapeType and a method printMyType.

Implement two derived classes:

  • Square: This class inherits from Sh...read more
Ans.

Create base class Shape with field shapeType and method printMyType. Implement Square and Rectangle classes with calculateArea method.

  • Create a base class Shape with shapeType field and printMyType method.

  • Implement Square and Rectangle classes inheriting from Shape.

  • Include additional fields like length and breadth in Square and Rectangle classes.

  • Override printMyType method in Square and Rectangle classes to output the type of object.

  • Implement calculateArea method in Square and...read more

Add your answer
right arrow
Q6. Can you write an essay on any topic and present it verbally?
Ans.

Yes, I can write an essay on any topic and present it verbally.

  • Choose a topic that interests you and research it thoroughly

  • Create an outline with an introduction, body paragraphs, and a conclusion

  • Use clear and concise language to convey your ideas

  • Practice presenting your essay verbally to improve your delivery

  • Engage your audience by maintaining eye contact and using gestures

  • Be prepared to answer questions or discuss your essay further

Add your answer
right arrow
Q7. What are the ACID properties in database management systems?
Ans.

ACID properties are a set of properties that guarantee the reliability of transactions in database management systems.

  • ACID stands for Atomicity, Consistency, Isolation, and Durability.

  • Atomicity ensures that either all operations in a transaction are completed successfully or none are.

  • Consistency ensures that the database remains in a consistent state before and after the transaction.

  • Isolation ensures that the execution of multiple transactions concurrently does not interfere ...read more

View 1 answer
right arrow
Q8. Can you draw an E-R Diagram for Uber?
Ans.

An E-R Diagram for Uber would include entities like User, Driver, Ride, Payment, and Location.

  • Entities: User, Driver, Ride, Payment, Location

  • Relationships: User requests Ride, Driver provides Ride, Payment for Ride

  • Attributes: User ID, Driver ID, Ride ID, Payment ID, Location ID

  • Example: User (1) requests Ride (A) from Location (X) to Location (Y) with Driver (Z) providing the Ride and Payment (123) made for the Ride.

Add your answer
right arrow
Contribute & help others!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Software Developer Intern Interview Questions from Similar Companies

View all
Recently Viewed
INTERVIEWS
Optum Global Solutions
Fresher
50 top interview questions
INTERVIEWS
Hexaware Technologies
Fresher
60 top interview questions
INTERVIEWS
Zydus Lifesciences
Fresher
40 top interview questions
SALARIES
Zydus Lifesciences
SALARIES
Zydus Lifesciences
INTERVIEWS
Optum Global Solutions
200 top interview questions
INTERVIEWS
Zydus Lifesciences
No Interviews
INTERVIEWS
Hexaware Technologies
300 top interview questions
INTERVIEWS
Eicher Motors
No Interviews
REVIEWS
Optum Global Solutions
No Reviews
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
75 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