Software Engineer Trainee Interview Questions

6,021 software engineer trainee interview questions shared by candidates

1.A trader buys and sells stocks on the same day. Each transaction consists of two values: The price at which the trader buys the stock. The price at which the trader sells the stock. The transactions are stored in an integer array such that: The even index (0, 2, 4, …) represents the buy price. The odd index (1, 3, 5, …) represents the sell price. Write a Java program that: 1. Calculates the total number of transactions the trader made. 2. Calculates the total profit, where profit = (sell price – buy price) for each transaction. Finally, print: Number of Transactions: followed by the count. Total Profit: followed by the profit. 2.Puzzle Statement Your friend comes to your home and asks about the ages of your 3 children.Your replied: i)The product of their ages is 72. ii)The sum of their ages is equal to your house number.Your friend still can’t figure out their ages. iii)You then say: “The oldest child likes strawberry ice cream.”
avatar

Software Engineer Trainee

Interviewed at Ideas2IT

4.1
Sep 22, 2025

1.A trader buys and sells stocks on the same day. Each transaction consists of two values: The price at which the trader buys the stock. The price at which the trader sells the stock. The transactions are stored in an integer array such that: The even index (0, 2, 4, …) represents the buy price. The odd index (1, 3, 5, …) represents the sell price. Write a Java program that: 1. Calculates the total number of transactions the trader made. 2. Calculates the total profit, where profit = (sell price – buy price) for each transaction. Finally, print: Number of Transactions: followed by the count. Total Profit: followed by the profit. 2.Puzzle Statement Your friend comes to your home and asks about the ages of your 3 children.Your replied: i)The product of their ages is 72. ii)The sum of their ages is equal to your house number.Your friend still can’t figure out their ages. iii)You then say: “The oldest child likes strawberry ice cream.”

There were 3 coding questions and puzzle 1. Reverse the string without using extra variable and built in functions 2. Delete d digits from a n digit number(d<=n), so that resulting number is minimum 3. Angle between hour hand and minute hand. Theory questions were easy to medium in terms of complexity How does program run in computer? What are preprocessor directives? What is polymorphism? virtual function? Explain with example Trees vs linked list and few other questions
avatar

Software Engineer Trainee

Interviewed at Tally Solutions

4.4
Nov 6, 2022

There were 3 coding questions and puzzle 1. Reverse the string without using extra variable and built in functions 2. Delete d digits from a n digit number(d<=n), so that resulting number is minimum 3. Angle between hour hand and minute hand. Theory questions were easy to medium in terms of complexity How does program run in computer? What are preprocessor directives? What is polymorphism? virtual function? Explain with example Trees vs linked list and few other questions

Viewing 2091 - 2100 interview questions

Glassdoor has 6,021 interview questions and reports from Software engineer trainee interviews. Prepare for your interview. Get hired. Love your job.