DXC Technology
Headway Business Solutions Interview Questions and Answers
Q1. What are the projects you did? Write a c program to reverse a string?
A C program to reverse a string
Use a loop to iterate through the string and swap the characters at the beginning and end of the string
Create a temporary variable to hold the character being swapped
Terminate the loop when the index of the beginning of the string is greater than or equal to the index of the end of the string
Q2. Difference between low level language and high level language
Low level languages are closer to machine code and hardware, while high level languages are more abstract and easier for humans to understand.
Low level languages are closer to machine code and hardware, while high level languages are more abstract and easier for humans to understand.
Low level languages are more difficult to write and understand, while high level languages are more user-friendly.
Examples of low level languages include assembly language, while examples of high ...read more
Q3. Find largest and smallest from an array
Find largest and smallest from an array of strings.
Convert strings to numbers for comparison
Use a loop to iterate through the array and compare each element to find the largest and smallest
Initialize variables to store the largest and smallest values
Q4. What is numpi in python
NumPy is a popular Python library for numerical computing.
NumPy stands for Numerical Python.
It provides support for large, multi-dimensional arrays and matrices.
NumPy includes a large collection of mathematical functions to operate on these arrays.
It is widely used in scientific computing, data analysis, and machine learning.
Example: import numpy as np
Q5. print your name in reverse
Reverse your name when writing it out
Start by writing your last name first
Then write your first name
For example, if your name is John Doe, you would write it as 'eoD nhoJ'
Q6. Difference between C and C++.
C is a procedural programming language while C++ is an object-oriented programming language with additional features like classes and inheritance.
C is a procedural programming language, while C++ is a multi-paradigm language with support for object-oriented programming.
C does not support classes and objects, while C++ does.
C is a subset of C++, meaning that any valid C code is also valid C++ code.
C++ has features like classes, inheritance, polymorphism, and operator overloadi...read more
Q7. reverse an array
Reverse an array of strings
Create a new array and iterate through the original array in reverse order, adding each element to the new array
Alternatively, you can use the reverse() method on the original array
Top HR Questions asked in Headway Business Solutions
Interview Process at Headway Business Solutions
Top Associate Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month