Graduate Trainee

400+ Graduate Trainee Interview Questions and Answers

Updated 16 Dec 2024

Popular Companies

search-icon

Q1. Given an array, how do you get the count of pairs that sum to even

Ans.

Count the number of pairs in an array that sum to an even number.

  • Iterate through the array and check each pair of elements.

  • If the sum of the pair is divisible by 2, increment the count.

  • Return the count of pairs that sum to an even number.

Q2. Count Consonants In A String

Given a string ‘STR’ which consists of uppercase and lowercase characters and spaces. Count the number of consonants in the string.

A consonant is an English alphabet character that ...read more

Graduate Trainee Interview Questions and Answers for Freshers

illustration image
Q3. Valid Parentheses

You're given string ‘STR’ consisting solely of “{“, “}”, “(“, “)”, “[“ and “]” . Determine whether the parentheses are balanced.

Input Format:
The first line contains an Integer 'T' which denot...read more
Q4. Invert a Binary Tree

You are provided with a Binary Tree and one of its leaf nodes. You have to invert this binary tree. Inversion must be done by following all the below guidelines:

• The given leaf node become...read more
Are these interview questions helpful?
Q5. Merge Two Sorted Arrays

Ninja has been given two sorted integer arrays/lists ‘ARR1’ and ‘ARR2’ of size ‘M’ and ‘N’. Ninja has to merge these sorted arrays/lists into ‘ARR1’ as one sorted array. You may have to a...read more

Q6. Deepest Left

You are given a binary tree having ‘N’ number of nodes. Your task is to find the deepest leaf node in the given input tree.

Note:

The deepest leaf node is the leaf node which will be the left child...read more

Share interview questions and help millions of jobseekers 🌟

man-with-laptop
Q7. Sub Sort

You are given an integer array ‘ARR’. You have to find the length of the shortest contiguous subarray such that, if you sort this subarray in ascending order, then the whole array will be sorted in asce...read more

Q8. Flipkart charges a shipping charge if the order amount is less than Rs. 500. How do you avoid it if you have an item which is less than 500 yet you do not want to pay for shipping?

Ans.

Add more items to the cart to reach the minimum order amount of Rs. 500 and avoid shipping charges.

  • Check for other items that you may need and add them to the cart

  • Look for items that are on sale or have discounts to reach the minimum order amount

  • Consider buying in bulk to save on shipping charges

  • Check if there are any promo codes or coupons available to waive off shipping charges

Graduate Trainee Jobs

Graduate Trainee IT ( SAP-ABAP Development) 0-1 years
Dainik Bhaskar Group
4.4
Bhopal
Graduate Trainee - Data Analyst 2-3 years
Technip Energies
4.0
Noida
Graduate Trainee - Data Science 2-3 years
Technip Energies
4.0
Noida
Q9. Reverse Integer

You are given a 32-bit signed integer ‘N’. So, the integer will lie in the range [-2^31, 2^31 - 1]. Your task is to return the reverse of the given integer. If reversing causes overflow, then ret...read more

Q10. Backend Assignment

Build a file-based key-value data store that supports the basic CRD (create, read, and delete)operations. This data store is meant to be used as local storage for one single process on one lap...read more

Q11. 1.what is cloud computing?? 2. How many types of clouds? 3. What is Virtualization? 4. Difference between Saas and Paas? 5. What are data types? 6. What is Artificial Intelligence? 7. Write a program to print p...

read more
Ans.

Answers to technical questions related to cloud computing, programming, and software development.

  • Cloud computing is the delivery of computing services over the internet.

  • There are three types of clouds: public, private, and hybrid.

  • Virtualization is the creation of a virtual version of something, such as an operating system, server, storage device, or network resource.

  • SaaS (Software as a Service) provides software applications over the internet, while PaaS (Platform as a Servic...read more

Q12. Given an array, how do you get the count of pairs that sum to odd

Ans.

Count the number of pairs in an array that sum to an odd number.

  • Iterate through the array and check each pair of elements.

  • Use a nested loop to compare each element with every other element.

  • Keep a count of pairs that sum to an odd number.

Q13. How do you make 720 with 6 zeroes using mathematical operators?

Ans.

To make 720 with 6 zeroes, multiply 6! by 1000.

  • Calculate the factorial of 6 (6! = 6 x 5 x 4 x 3 x 2 x 1 = 720)

  • Multiply the result by 1000 (720 x 1000 = 720000)

  • Alternatively, add three zeroes to the end of 720 (720000 = 720000)

Q14. We use multiple inheritance in C++. Does java supports it? If not then what java used instead of multiple inheritance?

Ans.

Java does not support multiple inheritance. It uses interfaces to achieve similar functionality.

  • Java supports single inheritance, where a class can only inherit from one superclass.

  • To achieve multiple inheritance-like behavior, Java uses interfaces.

  • Interfaces allow a class to implement multiple interfaces, providing access to multiple sets of methods and constants.

  • Unlike classes, interfaces cannot be instantiated and can only be implemented by classes.

  • Example: class A impleme...read more

Q15. given a problem scenario what would action do you suggest to be taken?

Ans.

The answer to the question depends on the specific problem scenario provided.

  • Analyze the problem scenario and identify the key issues

  • Consider the potential consequences of different actions

  • Evaluate the available resources and constraints

  • Propose a course of action that addresses the problem and maximizes positive outcomes

  • Provide a rationale for the chosen action

Q16. how does an aeroplane flies?what is the mechanism etc

Ans.

An airplane flies by generating lift through its wings and using engines to propel it forward.

  • Airplane wings are designed to create lift by creating a difference in air pressure above and below the wing.

  • The engines provide the necessary thrust to move the airplane forward and maintain its speed.

  • The pilot controls the airplane's altitude and direction by adjusting the angle of the wings and the amount of thrust from the engines.

  • The airplane's weight and the air resistance it e...read more

Q17. What is oops What is dbms Types of computer network Tell me about yourself Tell me about project What is constructor What is switch Real life example of inheritance, data abstraction

Ans.

Questions related to computer science and programming concepts.

  • OOPs stands for Object-Oriented Programming which is a programming paradigm based on the concept of objects.

  • DBMS stands for Database Management System which is a software system used to manage and organize data.

  • Types of computer networks include LAN, WAN, MAN, PAN, and CAN.

  • Tell about yourself by highlighting your education, skills, and work experience.

  • Explain your project by discussing its purpose, methodology, an...read more

Q18. Whats your expectations and ideas about future generation vehicles?

Ans.

I expect future generation vehicles to be more sustainable, efficient and autonomous.

  • Electric and hybrid vehicles will become more common

  • Self-driving technology will improve and become more accessible

  • Alternative fuel sources such as hydrogen and biofuels will be explored

  • Vehicles will be designed to be more aerodynamic and lightweight

  • Connected technology will allow for better traffic management and navigation

Q19. Demand of TVs next year? Specify one 'good' and one 'bad' approach

Ans.

The demand for TVs next year is uncertain. A good approach would be to conduct market research and analyze trends, while a bad approach would be to rely solely on intuition.

  • Good approach: Conduct market research to understand consumer preferences and trends

  • Good approach: Analyze past sales data and industry forecasts to predict demand

  • Bad approach: Rely solely on intuition or gut feeling without any data or research

  • Bad approach: Overestimate demand without considering market f...read more

Q20. What is data-table? How you retrieved data? Where is was stored after retrieving?

Ans.

A data-table is a way to organize data in rows and columns. Data can be retrieved using SQL queries or programming languages.

  • Data-table is a structured way to store data in rows and columns.

  • Data can be retrieved using SQL queries like SELECT * FROM table_name.

  • Data can also be retrieved using programming languages like Python or Java.

  • After retrieving data, it is typically stored in memory for processing or analysis.

Q21. “Our client is an SME owning a speciality exotic food restaurant in Mumbai. He wants to open up new restaurants in other metro cities. Suggest if it is a good idea or not. Also, come up with metrics used to arr...

read more
Ans.

Expanding speciality exotic food restaurant chain to other metro cities - good idea or not?

  • Conduct market research to identify demand for exotic cuisine in other metro cities

  • Analyze competition and identify unique selling points for the restaurant

  • Evaluate financial feasibility and availability of resources for expansion

  • Consider potential challenges such as cultural differences and logistics

  • Develop a comprehensive business plan with clear goals and strategies

Q22. Why do you want to get into digital marketing and data analytics?

Ans.

I am passionate about leveraging data to drive business decisions and digital marketing is the perfect platform to do so.

  • I have a strong interest in data analysis and its potential to drive business growth

  • Digital marketing is a constantly evolving field that offers exciting opportunities to apply data-driven insights

  • I believe that my skills in data analysis and marketing can be combined to create impactful campaigns

  • I am excited about the potential to use data to optimize mark...read more

Q23. SQL Questions

I was Asked to code some basic SQL queries. All them were really simple if you know the basics of SQL.

Q24. Merge sort and selection difference. Explain merge sort working. Time complexities of some famous sorting algorithms.

Ans.

Merge sort and selection sort are both sorting algorithms, but they differ in their approach and efficiency. Merge sort is a divide-and-conquer algorithm with a time complexity of O(n log n).

  • Merge sort divides the array into two halves, sorts each half recursively, and then merges the sorted halves back together.

  • Selection sort selects the smallest element from the unsorted portion of the array and swaps it with the first unsorted element.

  • Merge sort has a time complexity of O(...read more

Q25. What is the grade of coal in coal handling plant? Explain superfinishing processes like honing,lapping Differences between casting and forging Draw the processes in coal handling plant How coal burnt is turned ...

read more
Ans.

The grade of coal in a coal handling plant is determined by its carbon content and calorific value.

  • Coal grades are classified based on their carbon content and calorific value, such as anthracite, bituminous, sub-bituminous, and lignite.

  • Superfinishing processes like honing and lapping are used to achieve high precision and smooth surface finishes on metal parts.

  • Casting involves pouring molten metal into a mold to create a desired shape, while forging involves shaping metal th...read more

Q26. Linked list vs array Union vs array Prime no Explain memory segment How code executes [29/06, 20:53] Storage class [29/06, 20:53] Segmentation fault Dynamic memory allocation [29/06, 20:53] Calculator [29/06, 2...

read more
Ans.

Questions related to data structures, memory management, programming languages, and computer architecture.

  • Linked list is a dynamic data structure while array is a static data structure.

  • Union is a data type that allows storing different data types in the same memory location as opposed to array which stores elements of the same data type.

  • Prime numbers are numbers that are only divisible by 1 and themselves.

  • Memory segment refers to a portion of the computer's memory that is all...read more

Q27. DBMS Question

What are the crud operations in DBMS?

Q28. Operating System Question

What are the major types of operating system?

Q29. What use your BTP can be put to? (Application of BTech Project)

Ans.

My BTP focused on developing a machine learning algorithm for predicting stock prices.

  • The algorithm can be used by financial institutions for making investment decisions.

  • It can also be used by individual investors for making informed decisions.

  • The algorithm can be further improved and applied to other financial markets.

  • The project can be presented at conferences and published in academic journals.

  • The skills and knowledge gained during the project can be applied to other data-...read more

Q30. Tell me about object oriented programming

Ans.

Object oriented programming is a programming paradigm that uses objects to represent and manipulate data.

  • Encapsulation: bundling data and methods that operate on that data within one unit

  • Inheritance: creating new classes from existing ones, inheriting their properties and methods

  • Polymorphism: ability of objects to take on multiple forms or behaviors

  • Examples: Java, C++, Python, Ruby

Q31. Difference between petrol engine and diesel engine?

Ans.

Petrol engines use spark ignition while diesel engines use compression ignition.

  • Petrol engines use a spark plug to ignite the fuel-air mixture, while diesel engines compress the air to a high temperature and pressure to ignite the fuel.

  • Petrol engines are generally more fuel-efficient at high speeds, while diesel engines are more fuel-efficient at low speeds.

  • Petrol engines are typically quieter and smoother than diesel engines.

  • Diesel engines produce more torque than petrol eng...read more

Q32. I want to sell TV sets in my market. How do I go about it?

Ans.

To sell TV sets in the market, research the target audience, identify competitors, set competitive prices, and create effective marketing strategies.

  • Conduct market research to identify the target audience and their preferences

  • Identify competitors and their pricing strategies

  • Set competitive prices for the TV sets

  • Create effective marketing strategies such as advertising, promotions, and social media campaigns

  • Establish partnerships with local electronics stores to increase visib...read more

Q33. Difference between 4 stroke 2 stroke engine. Graphical representation of petrol and diesel engines.

Ans.

4 stroke engines have 4 stages: intake, compression, combustion, exhaust. 2 stroke engines have 2 stages: compression and combustion.

  • 4 stroke engines have separate intake and exhaust strokes, while 2 stroke engines combine intake and exhaust in one stroke.

  • 4 stroke engines are more fuel efficient and produce less pollution compared to 2 stroke engines.

  • Examples of 4 stroke engines include most car engines, while examples of 2 stroke engines include chainsaws and motorcycles.

Q34. Types of pump, working of heat exchanger, properties of material heat and mass transfer related questions

Ans.

Types of pumps include centrifugal, reciprocating, and rotary pumps. Heat exchangers transfer heat between two fluids. Material properties affect heat and mass transfer.

  • Types of pumps: centrifugal, reciprocating, rotary

  • Working of heat exchanger: transfers heat between two fluids

  • Properties of material: affect heat and mass transfer

  • Examples: stainless steel for heat exchangers, copper for pumps

Q35. How can you determine shampoo specific gravity?

Ans.

Specific gravity of shampoo can be determined by comparing its density to the density of water.

  • Specific gravity is the ratio of the density of a substance to the density of a reference substance.

  • To determine shampoo specific gravity, measure the density of the shampoo and compare it to the density of water.

  • Density can be measured using a hydrometer or a density meter.

  • Specific gravity can also be calculated by dividing the density of the shampoo by the density of water.

  • For exa...read more

Q36. why is main function required in c program

Ans.

Main function is required in C program as it is the entry point of the program.

  • Main function is where the program starts executing.

  • It contains the code that initializes variables, calls functions, and performs other necessary tasks.

  • Without main function, the program would not know where to start executing.

  • Main function must return an integer value to indicate the status of the program execution.

  • Example: int main() { // code here }

Q37. Write a program to find if a number is prime or not.

Ans.

Program to check if a number is prime or not.

  • A prime number is a number greater than 1 that has no positive divisors other than 1 and itself.

  • To check if a number is prime, iterate from 2 to the square root of the number and check if any of them divide the number evenly.

  • If any divisor is found, the number is not prime. Otherwise, it is prime.

Q38. Ternary operator. How it differs from if else

Ans.

Ternary operator is a shorthand for if-else statement in programming.

  • Ternary operator is written as condition ? expression1 : expression2

  • It is used to assign a value based on a condition in a more concise way

  • If-else statement is written as if (condition) { expression1 } else { expression2 }

Q39. 1) What is stress and strain?

Ans.

Stress is the force applied to a material, while strain is the resulting deformation or change in shape.

  • Stress is a measure of the internal forces within a material that resist deformation.

  • Strain is the measure of the amount of deformation or change in shape that occurs due to stress.

  • Stress and strain are related through the material's elastic properties.

  • For example, when a rubber band is stretched, stress is applied to it, and it undergoes strain by elongating.

  • In engineering...read more

Q40. How much you give yourself in java out of 10?

Ans.

I would rate myself 8 out of 10 in Java.

  • I have a strong understanding of core Java concepts such as OOP, data structures, and algorithms.

  • I have experience in developing Java applications using frameworks like Spring and Hibernate.

  • I have also worked on projects involving Java-based technologies like JSP, Servlets, and JDBC.

  • However, there is always room for improvement and I am constantly learning and exploring new features and updates in Java.

  • Overall, I am confident in my Java...read more

Q41. How many members are there in india who are using what saap

Ans.

It is estimated that there are over 400 million users of WhatsApp in India.

  • Over 400 million users in India

  • WhatsApp is one of the most popular messaging apps in the country

Q42. Difference between first angle and third angle projection.

Ans.

First angle and third angle projection are two different methods used in technical drawing to represent 3D objects on a 2D surface.

  • First angle projection is commonly used in Europe and Asia, while third angle projection is commonly used in North America.

  • In first angle projection, the object is placed in the first quadrant and the views are projected onto the planes of projection from the object's opposite side.

  • In third angle projection, the object is placed in the third quadr...read more

Q43. How to identify Nodes just by seeing a Machine?

Ans.

Nodes can be identified by checking their hostname or IP address.

  • Check the hostname or IP address of the machine

  • Compare it with the list of known nodes

  • Look for any specific configurations or software installed on the machine

  • Check the network topology to identify the node's position

  • Use tools like ping, traceroute, or nslookup to identify the node

Q44. Explain transformer? What is on transformer nameplate? Where is star connection used? Where is delta connection used?

Ans.

A transformer is a device that transfers electrical energy between two or more circuits through electromagnetic induction.

  • Transformer nameplate includes information such as rated power, voltage, current, frequency, and efficiency.

  • Star connection is used in power distribution systems to connect three-phase loads.

  • Delta connection is used in industrial applications where high current loads are present.

  • Transformers are essential in stepping up or stepping down voltage levels for ...read more

Q45. What are classes. Explain them and give a real world example.

Ans.

Classes are blueprints for creating objects in object-oriented programming. They define the properties and behaviors of an object.

  • Classes are used to create objects, which are instances of the class.

  • They encapsulate data and methods that operate on that data.

  • Classes promote code reusability and maintainability.

  • Real-world example: A class 'Car' can have properties like 'color', 'brand', and 'model', and methods like 'startEngine()' and 'accelerate()'.

Q46. Which solution is used in lead acid battery?

Ans.

The solution used in lead acid batteries is sulfuric acid.

  • The solution in lead acid batteries is a mixture of water and sulfuric acid.

  • Sulfuric acid acts as the electrolyte in the battery, facilitating the chemical reactions.

  • The concentration of sulfuric acid in the solution affects the battery's performance.

  • Lead acid batteries are commonly used in automotive applications.

  • Examples of lead acid batteries include car batteries and uninterruptible power supply (UPS) batteries.

Q47. What type of transformer do we use in resistance welding? Either Step Up or Step Down?

Ans.

Step Down transformer is used in resistance welding.

  • Step Down transformer reduces the voltage from the power source to a lower voltage suitable for welding.

  • It helps in providing the high current needed for welding without overheating the equipment.

  • Example: In resistance spot welding, Step Down transformers are commonly used.

Q48. what is f in printf()? What is conio.h we use in c?

Ans.

In printf(), f is a format specifier used to display floating-point numbers. conio.h is a header file used for console input and output functions in C.

  • f in printf() is a format specifier used to display floating-point numbers, like %f for float and %lf for double.

  • conio.h is a header file used for console input and output functions in C, like getch() and clrscr().

Q49. Write a program for printing prime numbers in given range

Ans.

Program to print prime numbers in a given range

  • Iterate through the range of numbers and check if each number is prime

  • Use a nested loop to check for factors of each number

  • Print the number if it has only 2 factors (1 and itself)

Q50. Guess the number of vehicles on the Chennai roads between 5 to 6

Ans.

It is impossible to accurately guess the number of vehicles on Chennai roads between 5 to 6 without any data.

  • The number of vehicles on the road can vary depending on the day, time, and weather conditions.

  • Factors such as rush hour traffic, accidents, and road closures can also affect the number of vehicles on the road.

  • Without any data or context, it is impossible to make an accurate guess.

  • However, we can estimate based on previous data or conduct a survey to gather more inform...read more

1
2
3
4
5
6
7
Next
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Interview experiences of popular companies

3.7
 • 10k Interviews
3.8
 • 5.4k Interviews
3.6
 • 3.6k Interviews
3.6
 • 2.3k Interviews
4.0
 • 1.3k Interviews
4.0
 • 287 Interviews
View all

Calculate your in-hand salary

Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary

Graduate Trainee Interview Questions
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
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

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