Trainee Analyst

50+ Trainee Analyst Interview Questions and Answers

Updated 14 Jul 2025
search-icon

Asked in Cognizant

2d ago

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

1d ago

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

Asked in Cognizant

5d ago

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

Asked in Cognizant

2d ago

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

Asked in Deloitte

4d ago

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

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

Trainee Analyst Jobs

NTT DATA logo
Process and Comm Training Analyst 2-6 years
NTT DATA
3.8
Noida
Envirocare Labs Pvt. Ltd. logo
Trainee Analyst- Instrumentation 0-1 years
Envirocare Labs Pvt. Ltd.
4.0
₹ 1 L/yr - ₹ 2 L/yr
(AmbitionBox estimate)
Kolkata
brickworks Ratings logo
Trainee Analyst 0-2 years
brickworks Ratings
3.5
Bangalore / Bengaluru

Asked in Deloitte

6d ago

Q. What code would you write using Object-Oriented Programming (OOP) concepts in Python for the given scenario?

Ans.

Implementing OOP concepts in Python for a Trainee Analyst role with a focus on data analysis.

  • Define a class 'DataAnalyzer' to encapsulate data analysis methods.

  • Use methods like 'load_data()', 'clean_data()', and 'analyze_data()' for modularity.

  • Implement inheritance by creating subclasses for different data types, e.g., 'CSVDataAnalyzer'.

  • Utilize encapsulation to protect data attributes, using private variables.

  • Example: 'self.__data' for private data storage.

Asked in MathCo

1d ago

Q. Suppose there are 3 students, each with salaries x, y, and z, but no one knows each other's salary. Find the average of their 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

Share interview questions and help millions of jobseekers 🌟

man-with-laptop

Asked in MathCo

2d ago

Q. A few audio clips will be played, and you need to repeat the sentences.

Ans.

The task involves listening to audio clips and accurately repeating the sentences spoken in them.

  • Active listening is crucial; focus on the tone and pronunciation.

  • Practice repeating sentences to improve memory retention.

  • Use phonetic spelling if necessary to capture difficult words.

  • Break down longer sentences into smaller parts for easier repetition.

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

6d ago

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

Asked in MathCo

5d ago

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

Asked in PharmaACE

3d ago

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

3d ago

Q. Tell me about your hometown.

Ans.

I hail from a vibrant town known for its rich culture, delicious cuisine, and warm-hearted people.

  • My native town is famous for its annual cultural festival, which attracts visitors from all over the region.

  • We have a unique local dish called 'XYZ', made from fresh ingredients sourced from local farms.

  • The community is known for its hospitality; it's common for neighbors to gather for tea and share stories.

  • Our town is surrounded by beautiful landscapes, including hills and river...read more

Asked in Lowe's

3d ago

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

Q. Why use Average 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

Asked in Deloitte

1d ago

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

Asked in QSpiders

4d ago

Q. If someone gave you a product, how would you sell it to them?

Ans.

Introducing the Smart Water Bottle: Stay hydrated with reminders and track your water intake effortlessly.

  • Smart reminders: Sends notifications to drink water at regular intervals.

  • Hydration tracking: Syncs with your smartphone to monitor daily water intake.

  • Eco-friendly design: Made from sustainable materials, reducing plastic waste.

  • Customizable settings: Users can set personal hydration goals based on activity levels.

2d ago

Q. What is the range of the 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

Q. How do you calculate an 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

Q. Where do you see yourself in 5 years?

Ans.

In five years, I envision myself as a skilled analyst, contributing to impactful projects and leading initiatives within the organization.

  • I aim to deepen my analytical skills by working on diverse projects, such as market research and data analysis.

  • I plan to take on leadership roles, mentoring new analysts and guiding teams to achieve their goals.

  • I hope to contribute to strategic decision-making processes, using data to drive business growth and innovation.

  • I aspire to continu...read more

2d ago

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

4d ago

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

5d ago

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

6d ago

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

Asked in Cognizant

1d ago

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

Asked in Arcesium

6d ago

Q. Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from 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'

Asked in CubeSimple

6d ago

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

2d ago

Q. What is the ratio of parts per million (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

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

1
2
Next

Interview Experiences of Popular Companies

Cognizant Logo
3.7
 • 5.9k Interviews
Deloitte Logo
3.7
 • 3k Interviews
WNS Logo
3.3
 • 1.1k Interviews
Tiger Analytics Logo
3.7
 • 232 Interviews
View all
Interview Tips & Stories
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories
Trainee Analyst 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