Add office photos
Employer?
Claim Account for FREE

TechSophy

3.0
based on 33 Reviews
Filter interviews by

Hays Business Solutions Interview Questions and Answers

Updated 5 Feb 2024

Q1. Least number of iterations in which to find one defective weight among equal weights

Ans.

The minimum number of iterations required to find one defective weight among equal weights.

  • Use binary search to divide the weights into two groups.

  • Compare the sum of weights in each group to identify the defective group.

  • Repeat the process with the defective group until the defective weight is found.

View 1 answer

Q2. Least number of steps to reach end of array

Ans.

Minimum steps to reach end of array

  • Use dynamic programming approach

  • Start from the end and work backwards

  • Keep track of minimum steps at each index

Add your answer

Q3. String Reversal using recursion

Ans.

String reversal using recursion

  • Define a function that takes a string as input

  • Base case: if the length of the string is 0 or 1, return the string

  • Recursive case: return the last character of the string concatenated with the result of calling the function with the string minus the last character

Add your answer

Q4. Basic Indroduction Life values

Ans.

Life values are the principles and beliefs that guide an individual's decisions and actions.

  • Life values are shaped by personal experiences, culture, and upbringing.

  • They can include honesty, integrity, compassion, and respect for others.

  • Life values can also influence career choices and relationships.

  • Examples of life values include family, education, health, and spirituality.

Add your answer
Discover Hays Business Solutions interview dos and don'ts from real experiences

Q5. Reverse string program

Ans.

Reverse a string program using array of strings

  • Create a character array to store the reversed string

  • Iterate through the original string and copy characters in reverse order to the new array

  • Join the characters in the new array to form the reversed string

Add your answer

Q6. Secure way of storing tokens

Ans.

Secure way of storing tokens

  • Use a secure token storage mechanism like Keychain on iOS or SharedPreferences on Android

  • Encrypt the tokens before storing them

  • Implement proper access controls and permissions to restrict access to the tokens

  • Regularly rotate and invalidate tokens to minimize the risk of unauthorized access

View 1 answer

Q7. Sorting algorithm in C

Ans.

Sorting algorithm in C

  • Popular sorting algorithms in C include Bubble Sort, Insertion Sort, Selection Sort, Merge Sort, Quick Sort, and Heap Sort

  • Bubble Sort is simple but inefficient, while Merge Sort and Quick Sort are more efficient but more complex

  • The choice of sorting algorithm depends on the size of the data set and the desired time complexity

Add your answer

Q8. Prime number program

Ans.

A prime number program checks if a given number is only divisible by 1 and itself.

  • Check if the number is greater than 1

  • Iterate from 2 to the square root of the number and check for divisibility

  • If no divisors found, the number is prime

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Hays Business Solutions

based on 1 interviews
Interview experience
4.0
Good
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

4.1
 • 546 Interview Questions
4.2
 • 367 Interview Questions
3.7
 • 343 Interview Questions
4.4
 • 247 Interview Questions
3.9
 • 246 Interview Questions
View all
Top TechSophy Interview Questions And Answers
Share an Interview
Stay ahead in your career. Get AmbitionBox app
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