Trainee Analyst
50+ Trainee Analyst Interview Questions and Answers

Asked in Cognizant

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

Asked in VMware Software

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

Asked in Cognizant

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

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
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'

Asked in Deloitte

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

Asked in Principal Global Services

Q. How will you design a sign in option? How can you make it secure?
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




Asked in Deloitte

Q. What code would you write using Object-Oriented Programming (OOP) concepts in Python for the given scenario?
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

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

Asked in MathCo

Q. A few audio clips will be played, and you need to repeat the sentences.
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.
Asked in Axxela Advisory Services LLP

Q. What qualities should a stock trader have?
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

Asked in Tiger Analytics

Q. Difference between PCA, KNN , Decision Tree
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

Q. sort an array of integers, find the max of two numbers using sql
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

Q. How many iPhones were sold in India last month?
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.

Asked in State Bank of India

Q. Tell me about your hometown.
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

Q. What is the difference between var, let, and const?
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
Asked in Publicis Global Delivery

Q. Why use Average CPC when we have normal CPC?
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

Q. Write a program to swap the substrings of two strings
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

Q. If someone gave you a product, how would you sell it to them?
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.

Asked in Envirocare Labs

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

Asked in Ascensus Global Services

Q. How do you calculate an annuity in advance?
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
Asked in Sunidhi Securities & Finance

Q. Where do you see yourself in 5 years?
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

Asked in Analytical Solutions

Q. Components and working of HPLC instrument.
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

Asked in Hexaware Technologies

Q. What is pointers Oops concepts Maltitherding
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

Asked in Envirocare Labs

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

Asked in Sun Flag Steel

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

Q. Write a program to reverse a string
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

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

Q. How do you create a pivot table?
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

Asked in Envirocare Labs

Q. What is the ratio of parts per million (ppm)?
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
Asked in Publicis Global Delivery

Q. What is Impression Share?
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
Interview Questions of Similar Designations
Interview Experiences of Popular Companies








Reviews
Interviews
Salaries
Users

