Associate Software Engineer Trainee

10+ Associate Software Engineer Trainee Interview Questions and Answers

Updated 13 Jul 2025
search-icon

Q. Write a program to demonstrate method overloading and method overriding.

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

Q. Write a query to get the 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.

Associate Software Engineer Trainee Interview Questions and Answers for Freshers

illustration image

Asked in Infosys

2d ago

Q. Tell me about the various services provided by AWS and how you have used them.

Ans.

AWS provides various services including compute, storage, database, networking, analytics, machine learning, and more.

  • Compute: EC2, Lambda

  • Storage: S3, EBS

  • Database: RDS, DynamoDB

  • Networking: VPC, Route 53

  • Analytics: Athena, EMR

  • Machine Learning: SageMaker, Rekognition

  • Example: I have used EC2 to host a web application and S3 to store static files.

Asked in Infosys

5d ago

Q. What are the differences between various kinds of data structures, specifically arrays and linked lists?

Ans.

Array and linked list are two different data structures used for storing and accessing data.

  • Array is a collection of elements of the same data type stored in contiguous memory locations.

  • Linked list is a collection of nodes where each node contains data and a reference to the next node.

  • Arrays have fixed size, while linked lists can grow or shrink dynamically.

  • Accessing elements in an array is faster than in a linked list, but inserting or deleting elements is slower.

  • Linked list...read more

Are these interview questions helpful?

Q. 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

5d ago

Q. You are given an array of integers powers where each value represents the power of a monster. On each turn, we choose the two heaviest monsters and smash them together. Suppose the heaviest two monsters have po...

read more
Ans.

Simulate smashing monsters with powers until only one remains.

  • Create a max heap to store the powers of monsters.

  • Repeatedly smash the two monsters with the highest powers until only one remains.

  • Return the power of the last remaining monster.

Associate Software Engineer Trainee Jobs

Jungleworks logo
Associate Software Engineer Trainee 0-1 years
Jungleworks
3.2
Mohali
inMorphis logo
Associate Software Engineer Trainee 1-3 years
inMorphis
4.1
Noida
Baryons Software Solutions logo
Associate Software Engineer Trainees ( ASET ) 5-12 years
Baryons Software Solutions
2.5
Bangalore / Bengaluru

Asked in TCS

3d ago

Q. How do you delete a 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

Asked in Infosys

3d ago

Q. Describe data structures and their types.

Ans.

Data structures are ways to organize and store data efficiently.

  • Data structures are used to store and manipulate data in a structured manner.

  • They can be classified into linear and non-linear data structures.

  • Examples of data structures include arrays, linked lists, stacks, queues, trees, and graphs.

Share interview questions and help millions of jobseekers 🌟

man-with-laptop

Q. 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

Asked in HCLTech

4d ago

Q. What is a 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

Asked in TCS

2d ago

Q. 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; }

Asked in XenonStack

5d ago

Q. We were supposed to design a full stack website

Ans.

Designing a full stack website involves creating both front-end and back-end components to provide a complete user experience.

  • Identify the requirements and functionalities of the website

  • Design the user interface using HTML, CSS, and JavaScript

  • Develop the back-end using a server-side language like Node.js or Python

  • Implement a database to store and retrieve data

  • Test the website for functionality and user experience

  • Deploy the website on a hosting platform like AWS or Heroku

5d ago

Q. 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'};

Asked in F5 Networks

4d ago

Q. Process vs Thread

Ans.

Processes are independent instances of a program, while threads are smaller units within a process that can run concurrently.

  • Processes have their own memory space, while threads share memory within a process.

  • Processes are heavyweight, while threads are lightweight.

  • Processes communicate with each other through inter-process communication mechanisms, while threads can communicate directly.

  • Example: A web browser running multiple tabs is a process, and each tab running JavaScript...read more

Interview Experiences of Popular Companies

TCS Logo
3.6
 • 11.1k Interviews
Infosys Logo
3.6
 • 7.9k Interviews
Sasken Logo
3.8
 • 82 Interviews
View all
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories
Associate Software Engineer Trainee Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+

Reviews

10L+

Interviews

4 Cr+

Salaries

1.5 Cr+

Users

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2025 Info Edge (India) Ltd.

Follow Us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter
Profile Image
Hello, Guest
AmbitionBox Employee Choice Awards 2025
Winners announced!
awards-icon
Contribute to help millions!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos
Add office benefits
Add office benefits