1. Hexaware Interview Experience
I am thrilled to share my interview experience with you. I applied for the Hexaware off-campus hiring process through a social media platform.
Profile: Graduate Engineer Trainee
Round 1: (Online aptitude test + Domain-based test)
Total time duration for Online aptitude and domain-based test: 75 minutes (30 minutes + 45 minutes)
This round is an elimination round.
1. Online aptitude test:
Duration: 30 minutes
This section has 3 parts:
No. of Questions – 10 Questions
This section has questions from:
- Speed, distance, and time
- LCM and HCF
- Ages
- Profit and loss
- Probability
- Pie charts and so on.
No. of Questions – 10 Questions
This section has questions from:
- Coding and decoding
- Odd one out
- Statement and conclusions
- Visual reasoning and so on.
No. of Questions – 10 Questions
This section has questions from:
- Prepositions and conjunctions
- Synonyms and antonyms
- Spelling
- Analogy
- Sentence improvement
- Fill in the blanks and many more.
No. of Questions – 45 Questions
Duration – 45 minutes
This section has questions from:
- Pseudo Code
- Networks
- C
- C++
- Java
- DBMS
- DS and many more.
After clearing the online test, I was called for the second round which was a communication round.
Round 2: Communication round
The communication round is a non-elimination round. This is conducted mainly to test one’s reading, writing, grammar, and listening skills. After this round, I was invited for the technical round.
Round 3: Technical Interview
Duration: 30minutes
The interviewer asked me questions from DBMS, JAVA, Python, C and C++, and SQL.
Some questions from the technical interview are mentioned below:
1. State the difference between heap memory and stack memory.
Heap Memory :
- It is used to store objects.
- If heap memory gets filled then it returns a java. lang.OutOfMemoryError.
- Accessing this memory is slower when compared to the stack.
- Heap space is used throughout the applications.
Stack Memory :
- It is used to store the order of method execution and local variables.
- If stack memory gets filled then it returns a java. lan.StackOverFlowError.
- Accessing this memory is faster when compared to the heap.
- Stack space is used for methods that are currently running.
2. Is Java 100% object-oriented?
No, because Java provides support for primitive data types which are not objects.
3. What is a superclass?
A superclass or base class is a class that acts as a parent to some other class or classes. For example, the Vehicle class is a superclass of Class Car. or, BMW is a type of car, so the superclass for BMW is Class Car.
4. What is the need for Object-oriented programming?
Need for OOPS:-
- more protection and control over data access
- OOPS offers data hiding functionalities
- code reusability
- data redundancy
- code maintenance
5. State the difference between char and varchar.
Both char and varchar are data types only, used for character strings. The only difference between them is the length. Varchar is used for a variable length of strings and char is used for a fixed length of strings. In char data type, if the length of the string is less than the fixed length then it is padded with blank spaces to attain the fixed length. While varchar, padding won’t be done.
6. What is the difference between DELETE and TRUNCATE statements?
DELETE:
- The DELETE command helps to delete a row of a table.
- The rollback of data is possible after using the delete statement.
- It is a DML command.
- It is slower than a TRUNCATE statement.
TRUNCATE:
- The TRUNCATE command helps to delete a row of a table.
- Rollback of data is not possible.
- It is a DDL command.
- As compared to DELETE the TRUNCATE command is faster.
7. What are the advantages of a C++ program?
Some of the main advantages of the C++ programming language are:
- C++ includes the concept of inheritance. Through inheritance, one can reduce redundancy in the code and can reuse the existing classes.
- Message passing is a technique used for communication between objects.
- C++ is a highly portable language which means that the software developed using the C++ language can run on any platform.
- C++ contains a rich function library.
- C++ is an object-oriented programming language that includes concepts such as classes, objects, inheritance, polymorphism, and abstraction.
- Data hiding helps the programmer to build secure programs so that the program cannot be attacked by the invaders.
8. Find the Greatest of the Two Numbers in any programming language.
I used C++ language.
Using if-else Statements
Algorithm
For two user inputs num1 and num2.
- Step 1: Check if both numbers are equal
- If true then print “Both are equal”
- Step 2: Else if num1 > num2
- If true then print num1 greater than num2
- Step 3: Else num2 has to be the greatest
- Print num2 is greater than num1
Code:
Login/Signup to comment