Hexaware Technical Interview Questions

Hexaware Technical Interview Questions and Answers 2023

On this page, find the most recently asked technical questions in the Hexaware Technical Interview 2023.

Page Highlights:-

  • Hexaware Test Pattern
  • Top 20 Hexaware Technical Interview Questions

Hexaware GET Test Pattern

SectionsQuestions
Quants15 Qs , 45 mins (shared)
Logical15 Qs , 45 mins (shared)
Verbal15 Qs , 45 mins (shared)
Domain-based30 Qs, 30 minutes

Hexaware PGET Test Pattern

SectionsQuestions
Quants15 Qs , 45 mins (shared)
Logical15 Qs , 45 mins (shared)
Verbal15 Qs , 45 mins (shared)
Domain-based30 Qs, 30 minutes
Coding2 Qs, 60 minutes

Hexaware Technical Interview Questions

Question 1: What do you mean by DBMS?

Answer:

A database management system is nothing more than a computerized data storage system. Users of the system are provided with the ability to use the system to carry out a variety of tasks, including managing the database structure or manipulating the data in the database.

Question 2:- What are stacks and queues?

Answer:

Stack: A stack is a linear data structure in which elements can only be added and removed from one side of the list, known as the top. A stack operates on the LIFO (Last In First Out) principle, which states that the element placed last is the first one to be removed.

Queue: A queue is a linear data structure in which elements can only be introduced from one side of the list, known as the rear, and deleted from the other side, known as the front. The queue data structure adheres to the FIFO (First In First Out) principle, which states that the element entered first in the list is the first to be withdrawn from the list.

Question 3: Write a C Program to Find the LCM of Two Numbers.

#include

int main()
{
    int num1 = 36, num2 = 60, lcm;

        // finding the larger number here
        int max = (num1 > num2)? num1 : num2;
        
        // LCM will atleast be >= max(num1, num2)
        // Largest possibility of LCM will be num1*num2
        for(int i = max ; i <= num1*num2 ; i++)
        {
            if(i % num1 == 0 && i % num2 == 0){
                lcm = i;
                break;
            }
        }
    
    printf("The LCM: %d", lcm);
    
    return 0;
}
// Time Complexity : O(N)
// Space Complexity : O(1)

Questions 4: What is inheritance?

Answer:

The term “inheritance” in object-oriented programming refers to an object’s capacity to take one or more traits from other classes of objects. In most cases, inherited features are instance variables or member functions. A subclass is an object that inherits certain traits.

Question 5: What is the use of namespace std in C++?

Answer:

The context in which names are defined can be specified using namespace. A namespace essentially defines a scope. A standard library for C++ comprises features you frequently need to construct applications, such as containers, algorithms, etc.

Question 6: Can this() and super() method be used with the same constructor?

Answer:

Since both “this()” and “super()” cannot be executed simultaneously, they cannot both be used inside the same constructor. The constructor and method calls both accept “this” as an argument.

Question 8: What is WYSIWYG?

Answer:

WYSIWYG stands for “what you see is what you get.” A WYSIWYG program  allows a developer to view what the ultimate result will look like while the interface or document is being generated. 

Questions 9: What is the spiral model?

Answer:

The spiral model is an approach to risk management within the systems development lifecycle (SDLC) that considered as part of the Waterfall model and the iterative development process model. Software engineers prefer the spiral model for large, expensive, and projects.

Question 10: What will happen when a Rollback statement is executed inside a trigger?

Answer:

When the rollback trigger is activated, Adaptive Server cancels the command that is presently running and suspends the trigger’s remaining actions.

Question 12: Write a C++ Program to check whether a number is an Automorphic number or not.

#include 
using namespace std;

int isAutomorphic(int n){
    
    int square = n * n;
    
    while(n != 0)
    {
        // means not automorphic number
        if(n % 10 != square % 10){
            return 0;
        }
        
        // reduce down numbers
        n /= 10;
        square /= 10;
    }
    // if reaches here means automorphic number
    return 1;
}

int main ()
{
    int n = 376, sq = n * n ;
    
    if(isAutomorphic(n))
        cout << "Num: "<< n << ", Square: " << sq << " - is Automorphic";
    else
        cout << "Num: "<< n << ", Square: " << sq << " - is not Automorphic";
    

}
// Time complexity: O(N)
// Space complexity: O(1)

Question 13: What is printf?

Answer:

The name of one of the basic C output functions is “printf,” which stands for “print formatted.” Formatted input is provided by scanf format strings, but unformatted input is provided by printf format strings. Printf is a function that can print integers, characters, floats, and strings.

Question 14: What is Scheduling?

Answer:

Scheduling is the act of allocating CPU time to the processes that are currently in the ready queue.

Question 15: What is the Zombie process?

Answer:

A zombie process is one that has completed and been terminated yet has an entry in the process table. It demonstrates that the process controls the resources and that they are not freely available.

Question 16: Write a C++ Program to Print Prime numbers in a given range

#include 
using namespace std;

bool isPrime(int n){
    int count = 0;

    // 0, 1 negative numbers are not prime
    if(n < 2)
        return false;
    
    // checking the number of divisors b/w 1 and the number n-1
    for(int i = 2;i < n; i++) 
    { 
        if(n % i == 0) 
            return false;
    }
    
    // if reached here then must be true
    return true;
}

int main()
{
    int lower, upper;
    
    lower=1,upper=100;
    
    for(int i = lower; i <= upper; i++)
        if(isPrime(i))
            cout << i << " ";

}
// Time Complexity : O(N^2)
// Space Complexity : O(1)

Question 18: What is an abstract class?

Answer:

An abstract class is one that is intended to be used especially as a base class. An abstract class comprises at least one pure virtual function.

Question 19: Write a code for Power of a number using Java.

public class Main
 {
 	public static void main(String[] args) {
	    
 	double base = 1.5;
     double expo1 = 2.5;
     double expo2 = -2.5;
     double res1, res2;
    
     // calculates the power
     res1 = Math.pow(base, expo1);
     res2 = Math.pow(base, expo2);
 	System.out.println(base + " ^ " + expo1 + " = " + res1 );
 	System.out.println(base + " ^ " + expo2 + " = " + res2 );
 	}
 }

Question 20: What do you mean by Recursion Function?

Answer:

A code function that executes by referencing itself is known as a recursive function. Recursive functions can be either basic or complex. They enable more efficient code authoring, such as listing or compiling sets of integers, strings, or other variables through a single repeated operation.