Trainee Analyst

40+ Trainee Analyst Interview Questions and Answers

Updated 9 Feb 2025
search-icon

Q1. Minimum Stops for Ninja's Journey Problem Statement

Ninja wishes to travel from his house to a destination X miles away. He knows there are Y gas stations along the way, each station i located at a distance d[i...read more

Ans.

Calculate the minimum number of refueling stops needed for a ninja to reach a destination with given gas stations and starting fuel.

  • Iterate through gas stations while maintaining current fuel level and number of stops made

  • Refuel at each station if necessary to ensure enough fuel to reach the next station or destination

  • Keep track of the minimum number of stops needed to reach the destination

Q2. Reverse the String Problem Statement

You are given a string STR which contains alphabets, numbers, and special characters. Your task is to reverse the string.

Example:

Input:
STR = "abcde"
Output:
"edcba"

Input...read more

Ans.

Reverse a given string containing alphabets, numbers, and special characters.

  • Iterate through the string from the end to the beginning and append each character to a new string.

  • Use built-in functions like reverse() or slicing to reverse the string.

  • Handle special characters and numbers while reversing the string.

  • Ensure to consider the constraints provided in the problem statement.

Trainee Analyst Interview Questions and Answers for Freshers

illustration image

Q3. Black Friday Discount Challenge

Imagine it's Black Friday and a supermarket is offering a discount to every 'Nth' customer. You are tasked with calculating bills for customers based on product prices and quanti...read more

Ans.

The challenge involves calculating bills for customers on Black Friday based on discounts for every 'Nth' customer.

  • Implement 'blackFriday' function to initialize discount for every Nth customer

  • Implement 'generateBill' function to calculate total bill for each customer's purchase

  • Consider input constraints and generate final bill amounts for each customer in each test case

Q4. Ninja and His Secret Information Encoding Problem

Ninja, a new member of the FBI, has acquired some 'SECRET_INFORMATION' that he needs to share with his team. To ensure security against hackers, Ninja decides t...read more

Ans.

The task is to determine if the encoding and decoding process of 'SECRET_INFORMATION' is successful.

  • Read the number of test cases 'T'

  • For each test case, encode the 'SECRET_INFORMATION' and then decode it

  • Compare the decoded string with the original 'SECRET_INFORMATION'

  • Print 'Transmission successful' if they match, else print 'Transmission failed'

Are these interview questions helpful?

Q5. Explain your projects !! Which Programming languages do u know ? Write a program of your choice in your preferred programming language !! What are your long term goals ? What are your preferred technologies ?

Ans.

I have worked on multiple projects using various programming languages. My long term goal is to become a data analyst and my preferred technologies are Python and SQL.

  • Projects: E-commerce website using PHP, Inventory management system using Java, Data analysis of customer behavior using Python

  • Programming languages: Python, Java, PHP, SQL

  • Program: Python program to calculate the factorial of a number

  • Long term goal: To become a data analyst

  • Preferred technologies: Python and SQL

Q6. How will you design a sign in option? How can you make it secure?

Ans.

A secure sign-in option can be designed by implementing multi-factor authentication and using encryption techniques.

  • Implement multi-factor authentication such as using a password and a one-time code sent to the user's phone or email.

  • Use encryption techniques such as hashing and salting to protect user passwords.

  • Implement rate limiting to prevent brute force attacks.

  • Use HTTPS protocol to encrypt data in transit.

  • Regularly update and patch the sign-in system to address any secur...read more

Share interview questions and help millions of jobseekers 🌟

man-with-laptop

Q7. Suppose there are 3 students, everyone has x y and z salaries but no one is aware of each others salary. Find the avg of there salaries

Ans.

To find the average of the salaries of 3 students with unknown salaries, add x, y, and z and divide by 3.

  • Add the salaries of x, y, and z together

  • Divide the total sum by 3 to find the average salary

Q8. What qualities should a stock trader have?

Ans.

A stock trader should have qualities such as analytical skills, discipline, emotional control, and risk management.

  • Analytical skills to interpret market trends and data

  • Discipline to follow a trading plan and not let emotions dictate decisions

  • Emotional control to handle the stress and pressure of trading

  • Risk management to protect capital and minimize losses

  • Adaptability to changing market conditions

  • Knowledge of financial markets and instruments

Trainee Analyst Jobs

Trainee Analyst - HRSS 1-3 years
Harsco Environmental
3.8
Hyderabad / Secunderabad
Training Analyst III 2-5 years
Allstate India Private Limited
3.8
Bangalore / Bengaluru
Analyst/ Trainee Analyst 2-7 years
Analytical Solutions
3.5
Navi Mumbai

Q9. Difference between PCA, KNN , Decision Tree

Ans.

PCA reduces dimensionality, KNN is a non-parametric classification algorithm, Decision Tree is a tree-like model for classification.

  • PCA is used for dimensionality reduction by transforming data into a new coordinate system

  • KNN is a non-parametric classification algorithm that classifies new data points based on similarity to training data

  • Decision Tree is a tree-like model where each internal node represents a feature, each branch represents a decision, and each leaf node repre...read more

Q10. sort an array of integers, find the max of two numbers using sql

Ans.

Sorting and finding max of two numbers in an array using SQL

  • Use ORDER BY to sort the array of integers

  • Use LIMIT 2 to get the top two numbers

  • Use MAX function to find the maximum of the two numbers

Q11. How many iphones were sold in india Last month.

Ans.

The number of iPhones sold in India last month is not publicly available.

  • The exact number of iPhones sold in India last month is not disclosed by Apple or any other official source.

  • Sales data for specific regions like India are usually not publicly released by companies.

  • One can estimate the number of iPhones sold in India by analyzing market research reports or industry trends.

Q12. What is the difference between var let and const

Ans.

var, let, and const are all used for variable declaration in JavaScript, but they have different scopes and mutability.

  • var is function-scoped and can be redeclared and reassigned

  • let is block-scoped and can be reassigned but not redeclared

  • const is block-scoped and cannot be reassigned or redeclared

Q13. Write a program to swap the substrings of two strings

Ans.

Program to swap substrings of two strings

  • Create a function that takes in two strings and two indices representing the start and end of the substrings to swap

  • Use string slicing to extract the substrings and swap them

  • Combine the modified substrings with the rest of the strings to get the final swapped strings

Q14. Why use Avg CPC when we have normal CPC?

Ans.

Avg CPC provides a more accurate representation of overall cost per click compared to normal CPC.

  • Avg CPC takes into account all clicks and their respective costs, providing a more comprehensive view of overall performance.

  • Normal CPC may not accurately reflect the true cost per click if there are outliers or irregularities in the data.

  • Using Avg CPC can help in making more informed decisions regarding budget allocation and campaign optimization.

  • For example, if a campaign has a ...read more

Q15. What is the range of pH scale?

Ans.

The pH scale ranges from 0 to 14, with 7 being neutral, below 7 acidic, and above 7 alkaline.

  • pH scale ranges from 0 to 14

  • 7 is considered neutral on the pH scale

  • Below 7 is acidic, above 7 is alkaline

  • Examples: Lemon juice has a pH of around 2, pure water has a pH of 7, and baking soda has a pH of around 9

Q16. How do you calculate annuity in advance

Ans.

Annuity in advance is calculated by using the formula: PV = PMT * [(1 - (1 + r)^(-n)) / r]

  • Annuity in advance refers to a series of equal cash flows received or paid at the beginning of each period.

  • To calculate annuity in advance, you need to know the periodic payment amount (PMT), interest rate (r), and the number of periods (n).

  • The formula to calculate the present value (PV) of an annuity in advance is: PV = PMT * [(1 - (1 + r)^(-n)) / r].

  • The result of the calculation will g...read more

Q17. What is pointers Oops concepts Maltitherding

Ans.

Pointers are variables that store the memory address of another variable. Oops concepts are programming principles. Maltitherding is not a known term.

  • Pointers allow for dynamic memory allocation and manipulation.

  • They are commonly used in C and C++ programming languages.

  • Example: int *ptr; // declares a pointer to an integer variable

  • Oops concepts include inheritance, polymorphism, and encapsulation.

  • They are used in object-oriented programming.

  • Example: class Animal { virtual voi...read more

Q18. What substance are acids?

Ans.

Acids are substances that have a pH level lower than 7, taste sour, and can react with metals to produce hydrogen gas.

  • Acids have a pH level lower than 7

  • Acids taste sour

  • Acids can react with metals to produce hydrogen gas

Q19. What is the principal of spectrometer

Ans.

A spectrometer is a scientific instrument used to measure properties of light over a specific portion of the electromagnetic spectrum.

  • Spectrometers work by separating light into its different wavelengths or frequencies.

  • They can be used to analyze the chemical composition of substances, identify unknown materials, and measure the concentration of substances.

  • Different types of spectrometers include UV-Vis spectrometers, infrared spectrometers, and mass spectrometers.

  • Spectromete...read more

Q20. Components and working of HPLC instrument.

Ans.

HPLC is a high-performance liquid chromatography instrument used for separating and analyzing compounds in a mixture.

  • HPLC consists of a pump to deliver the mobile phase, a sample injector, a column for separation, a detector to measure the analytes, and a data recording system.

  • The mobile phase carries the sample through the column where separation occurs based on interactions with the stationary phase.

  • Different types of detectors can be used such as UV-Vis, fluorescence, or m...read more

Q21. How to make a pivot table

Ans.

A pivot table is a data summarization tool used in spreadsheet programs. It allows you to reorganize and summarize selected columns and rows of data.

  • Open the spreadsheet program (e.g. Microsoft Excel)

  • Select the data range you want to use for the pivot table

  • Go to the 'Insert' tab and click on 'PivotTable'

  • Choose where you want the pivot table to be placed (e.g. a new worksheet)

  • Drag and drop the fields you want to summarize into the 'Rows' and 'Values' sections

  • Customize the pivo...read more

Q22. What is ratio of ppm?

Ans.

ppm stands for parts per million, a unit of measurement used to express very small concentrations of substances in a mixture.

  • ppm is a unit of measurement used to represent the ratio of one part of a substance to one million parts of a mixture.

  • It is commonly used in fields such as chemistry, environmental science, and engineering to express very small concentrations of substances.

  • For example, if a water sample contains 5 ppm of a certain chemical, it means there are 5 parts of...read more

Q23. Write a program to reverse a string

Ans.

Program to reverse a string

  • Create a function that takes a string as input

  • Use a loop to iterate through the characters of the string in reverse order

  • Append each character to a new string to build the reversed string

Frequently asked in, ,

Q24. Finding the missing element in the array

Ans.

Finding the missing element in an array of strings

  • Iterate through the array and check for any missing elements

  • Use a hash set to keep track of elements that have been seen

  • Compare the elements in the array to a reference list of all possible elements

  • Example: ['apple', 'banana', 'orange', 'grape'] - missing 'kiwi'

  • Example: ['red', 'blue', 'green', 'yellow'] - missing 'purple'

Q25. What is Impression Share?

Ans.

Impression Share is the percentage of times your ads were shown out of the total available impressions in the market.

  • Impression Share helps in understanding how often your ads are being displayed compared to the total potential.

  • It is calculated by dividing the number of impressions your ad received by the total number of eligible impressions.

  • A high Impression Share indicates that your ads are being shown frequently, while a low Impression Share may suggest missed opportunitie...read more

Q26. What is PH value of acid

Ans.

pH value of acid indicates its acidity level on a scale of 0 to 14.

  • pH value of acid ranges from 0 to 6.9 on the pH scale

  • Lower pH values indicate stronger acidity

  • Examples of acidic substances with pH values: lemon juice (pH 2), vinegar (pH 3)

Q27. What is HPLC ? What is principle of uv

Ans.

HPLC is a technique used to separate, identify, and quantify components in a mixture. UV principle is based on the absorption of UV light by molecules.

  • HPLC stands for High-Performance Liquid Chromatography.

  • It is a powerful analytical technique used in various industries such as pharmaceuticals, food and beverage, environmental analysis, etc.

  • HPLC separates components of a mixture based on their interactions with a stationary phase and a mobile phase.

  • The stationary phase is a s...read more

Q28. Pronouncation of words in a passage

Ans.

The question is about pronouncing words in a passage.

  • Break down the passage into smaller words and syllables to pronounce them correctly.

  • Use pronunciation guides or dictionaries to help with difficult words.

  • Practice speaking the words out loud to improve pronunciation.

  • Ask for feedback from others to ensure correct pronunciation.

  • Focus on stress and intonation patterns in sentences for natural sounding speech.

Q29. Do you know about diseases?

Ans.

Yes, I have knowledge about various diseases and their symptoms, causes, and treatments.

  • I am familiar with common diseases such as diabetes, cancer, heart disease, and respiratory infections.

  • I understand the importance of early detection and prevention of diseases through regular check-ups and healthy lifestyle choices.

  • I have studied the impact of genetic factors, environmental influences, and lifestyle habits on the development of diseases.

  • I am aware of the role of medical p...read more

Q30. t-test significance

Ans.

A t-test is used to determine if there is a significant difference between the means of two groups.

  • T-test is a statistical test used to compare the means of two groups.

  • It calculates the t-value, which is then compared to a critical value to determine significance.

  • The lower the p-value, the more significant the difference between the groups.

  • For example, a t-test can be used to compare the average test scores of two different classes.

  • Make sure to check assumptions like normalit...read more

Q31. What is data engineering

Ans.

Data engineering involves designing, building, and maintaining data pipelines to collect, clean, and transform data for analysis.

  • Data engineering focuses on the architecture and infrastructure needed to handle large volumes of data.

  • It involves designing and implementing data pipelines to extract, transform, and load data into storage systems.

  • Data engineers work with tools like Apache Spark, Hadoop, and SQL databases to process and analyze data efficiently.

  • They also collaborat...read more

Q32. What is having in sql

Ans.

HAVING clause is used in SQL to filter records based on aggregate functions.

  • HAVING is used with GROUP BY to filter groups based on a specified condition

  • It is used to filter the results of aggregate functions like COUNT, SUM, AVG, etc.

  • It is similar to WHERE clause but operates on groups rather than individual rows

Q33. normalization, define example 1nf,2nf

Ans.

Normalization is the process of organizing data in a database to reduce redundancy and improve data integrity.

  • 1NF (First Normal Form) - Each column in a table must contain atomic values, and each row must be unique.

  • 2NF (Second Normal Form) - Table is in 1NF and all non-key attributes are fully functional dependent on the primary key.

Q34. Buy at less and sell at high

Ans.

The concept of buying low and selling high is a fundamental principle in investing and trading.

  • Buy low means purchasing an asset at a price lower than its perceived value.

  • Sell high means selling the asset at a price higher than the purchase price to make a profit.

  • This strategy requires market analysis, timing, and risk management.

  • Example: Buying stocks during a market dip and selling them when the market recovers for a profit.

Q35. What is javascript

Ans.

JavaScript is a programming language commonly used for creating interactive effects within web browsers.

  • JavaScript is a high-level, interpreted programming language.

  • It is primarily used for enhancing user interfaces and adding dynamic functionality to websites.

  • JavaScript can be embedded directly into HTML pages or included as external scripts.

  • Common use cases include form validation, interactive maps, and animations.

  • Popular JavaScript libraries/frameworks include jQuery, Reac...read more

Frequently asked in, ,

Q36. What is cancer ?

Ans.

Cancer is a group of diseases characterized by the uncontrolled growth and spread of abnormal cells.

  • Cancer can develop in any part of the body

  • There are over 100 different types of cancer

  • Common types include breast cancer, lung cancer, and prostate cancer

  • Risk factors for cancer include smoking, obesity, and genetics

  • Treatment options for cancer include surgery, chemotherapy, and radiation therapy

Q37. What are forecasting

Ans.

Forecasting is the process of making predictions or estimates about future trends based on past and present data.

  • Forecasting involves analyzing historical data to make informed predictions about future events or trends

  • It helps businesses and organizations plan for the future by anticipating demand, sales, or other key metrics

  • Common methods of forecasting include time series analysis, regression analysis, and qualitative techniques

  • Examples of forecasting include predicting sal...read more

Q38. Mention some pharma company name

Ans.

Some pharma companies include Pfizer, Johnson & Johnson, and Novartis.

  • Pfizer

  • Johnson & Johnson

  • Novartis

Q39. Buy and sell the share

Ans.

Buying and selling shares involves purchasing and selling stocks in the stock market to make a profit.

  • Research the company and its financial performance before buying shares

  • Monitor market trends and news that may impact the stock price

  • Set a target price for selling shares to make a profit

  • Consider using a brokerage platform to execute trades

  • Keep track of your investments and adjust your strategy as needed

Q40. what are osi layers

Ans.

The OSI (Open Systems Interconnection) model is a conceptual framework that standardizes the functions of a telecommunication or computing system into seven distinct layers.

  • Layer 1 - Physical layer: Deals with physical connections and transmission of raw data.

  • Layer 2 - Data link layer: Manages data frames and error detection.

  • Layer 3 - Network layer: Handles routing and logical addressing.

  • Layer 4 - Transport layer: Ensures end-to-end communication and error recovery.

  • Layer 5 - ...read more

Q41. Introduction C vs CPP PROJECT

Ans.

C and C++ are both programming languages, with C being a procedural language and C++ being an object-oriented language.

  • C is a procedural programming language, while C++ is an object-oriented programming language.

  • C does not support classes and objects, while C++ does.

  • C is used for system programming, embedded systems, and low-level programming, while C++ is used for application and game development.

  • C is simpler and more lightweight compared to C++.

  • C++ allows for features like ...read more

Q42. Game of trading

Ans.

Game of trading involves buying and selling assets to make a profit in a competitive market.

  • Players compete to buy low and sell high

  • Market conditions and player decisions impact prices

  • Strategies include risk management and market analysis

Q43. Explain projects

Ans.

Projects are specific tasks or assignments undertaken to achieve a particular goal or objective.

  • Projects involve a defined scope, timeline, and budget.

  • They require a team of individuals with specific skills and expertise.

  • Projects are temporary in nature and have a clear start and end date.

  • Examples include developing a new software application, implementing a marketing campaign, or constructing a building.

Frequently asked in, ,
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Interview experiences of popular companies

3.8
 • 2.8k Interviews
3.4
 • 1k Interviews
3.7
 • 221 Interviews
2.9
 • 110 Interviews
3.5
 • 75 Interviews
2.6
 • 15 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

Trainee Analyst 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

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