Add office photos
Torry Harris Integration Solutions logo
Engaged Employer

Torry Harris Integration Solutions

Verified
4.2
based on 608 Reviews
Video summary
Filter interviews by
Associate Software Engineer Trainee
Clear (1)

Torry Harris Integration Solutions Associate Software Engineer Trainee Interview Questions and Answers

Updated 5 Feb 2024

Q1. Write a program to demonstrate the method overloading and method overwriting

Ans.

Program to demonstrate method overloading and overriding

  • Method overloading is when multiple methods have the same name but different parameters

  • Method overriding is when a subclass provides its own implementation of a method already defined in the superclass

  • Method overloading is resolved at compile-time while method overriding is resolved at runtime

Add your answer
right arrow

Q2. Write a query to get second highest Salary in the given table

Ans.

The query to get the second highest salary in a given table.

  • Use the SELECT statement to retrieve the salary column from the table.

  • Sort the salaries in descending order using the ORDER BY clause.

  • Use the LIMIT clause to limit the result to the second row.

  • Finally, retrieve the second highest salary from the result.

View 1 answer
right arrow

Q3. 3) What are call by reference and call by value?

Ans.

Call by reference and call by value are two ways of passing arguments to a function.

  • Call by value passes a copy of the argument to the function, while call by reference passes a reference to the original argument.

  • In call by value, changes made to the argument inside the function do not affect the original value, while in call by reference, changes made to the argument inside the function affect the original value.

  • Call by value is used for simple data types like integers and f...read more

Add your answer
right arrow

Q4. 4) How do you delete file in python?

Ans.

To delete a file in Python, use the os.remove() method.

  • Import the os module

  • Use os.remove() method to delete the file

  • Specify the file path as the argument to os.remove() method

Add your answer
right arrow
Discover Torry Harris Integration Solutions interview dos and don'ts from real experiences

Q5. Write a program to sort the given array

Ans.

Program to sort an array of strings

  • Use built-in sort function

  • Implement bubble sort or insertion sort

  • Consider time complexity

Add your answer
right arrow

Q6. What is lambda expression?

Ans.

Lambda expression is an anonymous function that can be passed as an argument or returned as a value.

  • Lambda expressions are used in functional programming languages like Java, Python, and C#.

  • They are often used to simplify code and make it more concise.

  • Lambda expressions can be used to implement functional interfaces, which have a single abstract method.

  • Lambda expressions can also be used with streams to perform operations on collections of data.

  • Example: (x, y) -> x + y is a l...read more

Add your answer
right arrow

Q7. 2) What are Pointers?

Ans.

Pointers are variables that store memory addresses of other variables.

  • Pointers allow direct access to memory locations.

  • They can be used to pass values between functions.

  • Pointers can be used to create dynamic data structures.

  • Example: int *ptr; ptr = # *ptr = 10;

  • Example: void swap(int *a, int *b) { int temp = *a; *a = *b; *b = temp; }

Add your answer
right arrow

Q8. 1) What are Arrays?

Ans.

Arrays are a collection of similar data types stored in contiguous memory locations.

  • Arrays can be of any data type, including integers, floats, characters, and objects.

  • Arrays are accessed using an index starting from 0.

  • Arrays can be one-dimensional, two-dimensional, or multi-dimensional.

  • Example: int arr[5] = {1, 2, 3, 4, 5};

  • Example: char str[6] = {'H', 'e', 'l', 'l', 'o', '\0'};

Add your answer
right arrow
Contribute & help others!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories
Recently Viewed
SALARIES
Confederation of Indian Industry
SALARIES
Confederation of Indian Industry
INTERVIEWS
Confederation of Indian Industry
No Interviews
INTERVIEWS
Torry Harris Integration Solutions
No Interviews
INTERVIEWS
Infosys
No Interviews
INTERVIEWS
TCS
No Interviews
COMPANY BENEFITS
Bonafide Research & Marketing
No Benefits
SALARIES
Bonafide Research & Marketing
REVIEWS
Bonafide Research & Marketing
No Reviews
REVIEWS
Torry Harris Integration Solutions
No Reviews
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
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