Hexaware Previous Year Coding Questions and Hiring Process

Hexaware Technologies is a global IT services and BPO company that hires large batches of freshers every year for its Graduate Engineer Trainee (GET) and Premier Graduate Engineer Trainee (PGET) programs. It recruits from B.E./B.Tech backgrounds across CSE, IT, ECE, EEE, and Mechanical branches.

If you are preparing for Hexaware, understanding the single proctored assessment structure, the coding round topics, and the HR interview expectations will help you prepare efficiently. This guide covers the complete Hexaware hiring process along with previous year coding questions asked in its online assessments.

Hexaware Hiring Process

Here is the typical flow for Hexaware GET and PGET fresher hiring through campus and off campus drives.

StageWhat HappensWhat They Are Looking For
  1. Eligibility and Registration
Apply through your college placement cell or an off campus drive. Requires B.E./B.Tech with 60 percent aggregate or 6.0 CGPA and no active backlogs. Consistent academic record and eligible branch.
  1. Aptitude Test
Around 60 questions in 60 minutes covering quantitative aptitude, verbal ability, and logical reasoning, with no negative marking. Speed and accuracy under time pressure.
  1. Technical MCQ Section
Multiple choice questions testing core computer science fundamentals such as programming, DBMS, OS, and networking. Conceptual clarity across core subjects.
  1. Coding Round
One or two programming problems solved in a browser based IDE with compiler access, generally at an easy to medium difficulty level. Correct logic, clean code, and working output.
  1. HR Interview
A conversation about your background, communication skills, and interest in joining Hexaware. Cultural fit and career clarity.

On most campus drives, all stages are completed within one to two days, and each stage gates entry to the next.

Assessment Pattern

Format: A single proctored online test that combines the aptitude section, technical MCQs, and the coding round in one sitting.

Sections typically included:

  1. Quantitative Aptitude: Percentages, ratios, areas, time and work, profit and loss, number series.
  2. Verbal Ability: Grammar, comprehension, sentence correction.
  3. Logical Reasoning: Puzzles, series completion, data interpretation, clock and calendar problems.
  4. Technical MCQs: Programming fundamentals, DBMS, operating systems, and computer networks.
  5. Coding Round: One or two problems ranging from easy to medium difficulty, written and executed in a browser based compiler.

Hexaware Coding Round: What to Expect

The coding round at Hexaware often blends classic programming problems with aptitude style word problems that need to be solved in code. Frequently reported topics include:

  • Validating whether a given string is a proper IP address
  • Calculating the angle between clock hands at a given time
  • Percentage, ratio, and area based word problems converted into code
  • Loop based number and pattern problems
  • Array and string manipulation basics

For hands on practice, use:

Technical Interview and MCQ Focus Areas

  • Programming Fundamentals: C, C++, Java, or Python basics.
  • Data Structures: Arrays, strings, linked lists, stacks, and queues.
  • Database Concepts: SQL queries, joins, keys, and normalization basics.
  • Operating Systems: Processes, threads, memory management, scheduling.
  • Computer Networks: IP addressing, OSI model, TCP/IP basics.
  • Project Discussion: Be ready to explain your final year or academic project clearly and confidently.

HR Interview Tips

The HR round checks communication, motivation, and overall fit. Common questions include:

  • Tell me about yourself.
  • Why do you want to join Hexaware.
  • What are your strengths and weaknesses.
  • Are you comfortable with rotational shifts and relocation.
  • Describe a challenge you faced in a project and how you solved it.
  • Do you have any questions for us.

Complete HR Interview Questions

Answer with specific examples from your projects and internships rather than generic statements.

Resources to Prepare for Hexaware


Hexaware Previous Year Coding Questions

Below is a list of Hexaware previous year coding questions commonly reported by candidates in online assessments. Each question includes a problem statement, input and output format, and a sample explanation.

1. Validate an IP Address

Problem Statement: Given a string, determine whether it represents a valid IPv4 address. A valid address has four numbers between 0 and 255, separated by dots, with no leading zeros.

Input Format:

  • A single string s

Output Format:

  • "Valid" or "Invalid"

Example: Input: 192.168.1.1 Output: Valid

2. Angle Between Clock Hands

Problem Statement: Given a time in hours and minutes, calculate the angle between the hour hand and the minute hand of a clock.

Input Format:

  • Two integers, hours and minutes

Output Format:

  • The angle in degrees, rounded to the nearest whole number

Example: Input: 3, 30 Output: 75

3. Calculate Simple Interest and Compound Interest

Problem Statement: Given principal, rate, and time, calculate both the simple interest and the compound interest.

Input Format:

  • Three numbers: principal, rate, time

Output Format:

  • Simple interest and compound interest, rounded to two decimal places

Example: Input: 1000, 10, 2 Output: Simple Interest = 200.00, Compound Interest = 210.00

4. Area of Different Shapes

Problem Statement: Given the type of shape (circle, rectangle, or triangle) and its dimensions, calculate its area.

Input Format:

  • Shape name followed by relevant dimensions

Output Format:

  • The calculated area rounded to two decimal places

Example: Input: rectangle 5 4 Output: 20.00

5. Print a Number Pattern

Problem Statement: Print a diamond shaped pattern of stars for a given number of rows n.

Input Format:

  • An integer n

Output Format:

  • The diamond pattern printed row by row

Example: Input: 3 Output:

  *
 ***
*****
 ***
  *

6. Reverse Each Word in a Sentence

Problem Statement: Given a sentence, reverse each word in place while keeping the word order unchanged.

Input Format:

  • A single line string

Output Format:

  • The sentence with each word reversed

Example: Input: hexaware is hiring Output: erawaxeh si gnirih

7. Count Vowels and Consonants in a String

Problem Statement: Given a string, count the number of vowels and consonants present in it.

Input Format:

  • A single string s

Output Format:

  • Two integers representing the vowel count and the consonant count

Example: Input: technology Output: Vowels = 3, Consonants = 7

8. Check for Palindrome Number

Problem Statement: Given an integer, check whether it reads the same forwards and backwards.

Input Format:

  • An integer n

Output Format:

  • "Yes" or "No"

Example: Input: 1221 Output: Yes

9. Find the Largest and Smallest in an Array

Problem Statement: Given an array of integers, find the largest and the smallest element.

Input Format:

  • An integer array arr

Output Format:

  • Two integers, the smallest and the largest

Example: Input: [7, 2, 9, 4, 1] Output: 1 9

10. Check Whether a Number Is Prime

Problem Statement: Given an integer, determine whether it is a prime number.

Input Format:

  • An integer n

Output Format:

  • "Prime" or "Not Prime"

Example: Input: 29 Output: Prime

11. Swap Two Numbers Without a Temporary Variable

Problem Statement: Swap the values of two integers without using a third variable.

Input Format:

  • Two integers a and b

Output Format:

  • The swapped values

Example: Input: a = 4, b = 9 Output: a = 9, b = 4

12. Sum of Natural Numbers Using Recursion

Problem Statement: Given an integer n, find the sum of the first n natural numbers using recursion.

Input Format:

  • An integer n

Output Format:

  • The sum

Example: Input: 5 Output: 15

13. Find Duplicate Elements in an Array

Problem Statement: Given an array of integers, print all elements that appear more than once.

Input Format:

  • An integer array arr

Output Format:

  • All duplicate elements

Example: Input: [1, 3, 2, 3, 4, 1] Output: 1 3

14. Convert Temperature Between Celsius and Fahrenheit

Problem Statement: Given a temperature value and its unit, convert it to the other unit.

Input Format:

  • A number and a unit, either C or F

Output Format:

  • The converted temperature rounded to two decimal places

Example: Input: 100 C Output: 212.00

15. Find the Factorial of a Number

Problem Statement: Given a non negative integer n, calculate its factorial.

Input Format:

  • An integer n

Output Format:

  • The factorial value

Example: Input: 6 Output: 720

16. Binary Search in a Sorted Array

Problem Statement: Given a sorted array and a target value, find the index of the target using binary search.

Input Format:

  • A sorted integer array arr
  • An integer target

Output Format:

  • The index of the target, or -1 if not found

Example: Input: [2, 4, 6, 8, 10], target = 8 Output: 3

17. Check Whether Two Strings Are Anagrams

Problem Statement: Given two strings, determine whether they are anagrams of each other.

Input Format:

  • Two strings s1 and s2

Output Format:

  • "Yes" or "No"

Example: Input: race, care Output: Yes

18. Count Occurrences of Each Word in a Sentence

Problem Statement: Given a sentence, count how many times each word appears.

Input Format:

  • A single line string

Output Format:

  • Each word followed by its count

Example: Input: test the test case Output:

test: 2
the: 1
case: 1

19. Find the Sum of Digits Until a Single Digit Remains

Problem Statement: Given an integer, repeatedly add its digits until a single digit result remains.

Input Format:

  • An integer n

Output Format:

  • A single digit result

Example: Input: 9875 Output: 2

20. Sort an Array of Strings Alphabetically

Problem Statement: Given an array of strings, sort them in alphabetical order.

Input Format:

  • An array of strings

Output Format:

  • The sorted array

Example: Input: ["banana", "apple", "cherry"] Output: ["apple", "banana", "cherry"]

21. Find the Second Smallest Element in an Array

Problem Statement: Given an array of integers, find the second smallest distinct element.

Input Format:

  • An integer array arr

Output Format:

  • The second smallest element

Example: Input: [5, 1, 4, 1, 3] Output: 3

22. Convert Decimal to Binary

Problem Statement: Given a decimal integer, convert it into its binary representation.

Input Format:

  • An integer n

Output Format:

  • The binary string

Example: Input: 18 Output: 10010

23. Check Leap Year

Problem Statement: Given a year, determine whether it is a leap year.

Input Format:

  • An integer year

Output Format:

  • "Leap Year" or "Not Leap Year"

Example: Input: 2024 Output: Leap Year

At Last

Hexaware places equal weight on aptitude speed and coding fundamentals since both are tested in a single sitting. Practice mental math for the aptitude section, revise core programming and CS concepts, and stay calm during the proctored test.

Join the Telegram group for more resources and discussions.

Useful Resources for Your Placement Prep