Add office photos
Engaged Employer

Amadeus

3.9
based on 608 Reviews
Video summary
Filter interviews by

Transhill Management Services Interview Questions and Answers

Updated 12 May 2024
Popular Designations

Q1. Search in a Row-wise and Column-wise Sorted Matrix Problem Statement

You are given an N * N matrix of integers where each row and each column is sorted in increasing order. Your task is to find the position of ...read more

Ans.

Given a sorted N * N matrix, find the position of a target integer X.

  • Iterate over each row and column to search for the target integer

  • Utilize the sorted nature of the matrix to optimize the search process

  • Return the position of the target integer if found, else return -1 -1

Add your answer

Q2. Sort Array of Strings Problem Statement

Given an array of strings ARRSTR[] of size N, and a character C, your task is to sort the ARRSTR[] array according to a new alphabetical order that starts with the given ...read more

Ans.

Sort an array of strings based on a new alphabetical order starting with a given character.

  • Iterate through the array of strings and compare each string with the given character to determine the new order.

  • Implement a custom comparator function to sort the strings based on the new alphabetical order.

  • Use built-in sorting functions in programming languages like Python, Java, or C++ to efficiently sort the array.

Add your answer

Q3. Euler’s Totient Function Problem Statement

Given an integer N, your task is to determine the count of integers between 1 and N (inclusive) that are coprime to N.

Input:

The first line contains an integer 'T' de...read more
Ans.

Euler's Totient Function calculates count of integers coprime to N between 1 and N.

  • Implement Euler's Totient Function to calculate count of coprime integers to N.

  • Use the formula: phi(N) = N * (1 - 1/p1) * (1 - 1/p2) * ... * (1 - 1/pk) where p1, p2, ..., pk are prime factors of N.

  • Example: For N = 9, phi(9) = 9 * (1 - 1/3) = 6.

Add your answer
Q4. Can you explain the pillars of Object-Oriented Programming (OOP)?
Ans.

The pillars of OOP are Inheritance, Encapsulation, Abstraction, and Polymorphism.

  • Inheritance allows a class to inherit properties and behavior from another class.

  • Encapsulation restricts access to certain components of an object, protecting its integrity.

  • Abstraction hides complex implementation details and only shows the necessary features.

  • Polymorphism allows objects to be treated as instances of their parent class, enabling flexibility.

Add your answer
Discover Transhill Management Services interview dos and don'ts from real experiences

Q5. write code to print fibanocci series

Ans.

Print the Fibonacci series using code.

  • Use a loop to generate the Fibonacci series

  • Start with the first two numbers (0 and 1) and then add the previous two numbers to get the next number

  • Continue this process until reaching the desired length of the series

View 1 answer

Q6. write code for Anagram program

Ans.

An Anagram program compares two strings to see if they are rearrangements of each other.

  • Create a function that takes in two strings as input

  • Remove any spaces and convert both strings to lowercase for accurate comparison

  • Sort the characters in both strings and compare them to check if they are anagrams

  • Return true if they are anagrams, false otherwise

View 1 answer

Q7. What is lazy loading

Ans.

Lazy loading is a design pattern where resources are loaded only when needed.

  • Lazy loading helps improve performance by loading resources on demand.

  • Commonly used in web development for images, videos, and other media content.

  • Example: Loading images on a webpage only when they come into view.

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

Interview Process at Transhill Management Services

based on 14 interviews
2 Interview rounds
Coding Test Round
Aptitude Test Round
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Software Developer Interview Questions from Similar Companies

4.0
 • 131 Interview Questions
3.5
 • 35 Interview Questions
3.8
 • 35 Interview Questions
3.9
 • 31 Interview Questions
4.3
 • 14 Interview Questions
4.0
 • 12 Interview Questions
View all
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
70 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