Analyst
400+ Analyst Interview Questions and Answers for Freshers
Q1. Reverse a Number Problem Statement
Given an integer 'N', write a program to generate the reverse of the number and print the resulting reversed number.
The reversed number should not include any leading zeros t...read more
Q2. Good old standard problem: Playing number game with your friend to select any of the number between 1 to 3. Whoever reaches 20 first, wins. You have to tell the strategy to win the game. Basically, you start wi...
read moreThe strategy is to always subtract the number chosen by the friend from 4 to ensure reaching 16 first.
Start with 20 and subtract the number chosen by the friend from 4.
Continue this strategy until reaching 16 before the friend reaches 17-19.
Ensure the friend ends up at any number between 17 to 19 before reaching 16.
Q3. what will you do if set of box suddenly switched off?
I would check if it's a power outage or a technical issue and troubleshoot accordingly.
Check if other devices are also affected by the power outage
If it's a technical issue, check the power source and connections
Try turning the box back on and see if it works
If the issue persists, seek technical assistance
Q4. Given a tank with liquid, and there are flows in and out, inflow is U and outflow is Kx, where x is current height of liquid in tank, all needed quantities given, what are the conditions for overflow and steady...
read moreConditions for overflow and steady state in a tank with inflow and outflow
Overflow occurs when the inflow rate is greater than the outflow rate
Steady state is achieved when the inflow rate equals the outflow rate
Overflow can be prevented by adjusting the inflow rate or increasing the outflow rate
Steady state can be maintained by balancing the inflow and outflow rates
Q5. Given we have a (un)biased die, with given probabilities, and we toss it till we get a sum of 100 or more (basically if the sum crosses 100), and we stop. What is the most probable number you will get on the la...
read moreThe most probable number on the last toss is 6.
The probability of getting a sum of 100 or more is highest when the sum is 99.
The last toss will be made to reach the sum of 100, so the most probable number is the one that will take the sum closest to 100.
The sum of 94 can be achieved by rolling a 6 on the last toss, which is the most probable number.
Q6. Maximum Subarray Sum Problem Statement
Given an array ARR
consisting of N
integers, your goal is to determine the maximum possible sum of a non-empty contiguous subarray within this array.
Example of Subarrays:...read more
Share interview questions and help millions of jobseekers 🌟
Q7. What is truth? Like the one you have been taught or the one you learn yourself like your parents teach you to not cut nails at night etc ot go to the temple?
Truth is subjective and can be influenced by personal experiences and cultural beliefs.
Truth is not always objective or universal
It can be shaped by personal experiences and cultural beliefs
What is considered true in one culture may not be true in another
Truth can also change over time as new information is discovered
For example, the belief that the earth was flat was once considered true, but is now known to be false
Q8. LRU Cache Design Question
Design a data structure for a Least Recently Used (LRU) cache that supports the following operations:
1. get(key)
- Return the value of the key if it exists in the cache; otherwise, re...read more
Analyst Jobs
Q9. Shortest Path in a Binary Matrix Problem Statement
Given a binary matrix of size N * M
where each element is either 0 or 1, find the shortest path from a source cell to a destination cell, consisting only of 1s...read more
Q10. Suppose a man starts at 0, and has to go to 20 on the number line. He can either move in steps of 1 or 2. How many number of ways can he do this? Extending this, if we know the number of ways for going from 0 t...
read moreCount number of ways to reach 20 on number line starting from 0 in steps of 1 or 2. Derive recursive formula for n+1.
Use dynamic programming to count number of ways for each step.
For each step, number of ways is sum of number of ways for previous 1 or 2 steps.
Recursive formula: ways[n+1] = ways[n] + ways[n-1]
Q11. 3. Do you know about OOP concepts? Explain.
Yes
OOP stands for Object-Oriented Programming
It is a programming paradigm that organizes code into objects
OOP concepts include encapsulation, inheritance, and polymorphism
Encapsulation allows bundling of data and methods into a single unit
Inheritance enables the creation of new classes based on existing ones
Polymorphism allows objects of different classes to be treated as the same type
Example: A car class can have properties like color and speed, and methods like start and st...read more
Q12. There is an urn with n red balls and 1 black ball in it. You and your friend play a game where you take turns drawing from the urn. The player who draws the black ball first wins. Should you go first or second?
Go second. The probability of winning is higher when going second.
The probability of winning when going first is (1/n+1), while the probability of winning when going second is (n/n+1)
This is because the first player has a chance of drawing the black ball on their turn, while the second player has a chance of drawing the black ball on their turn or the first player's turn
For example, if there are 10 red balls and 1 black ball, the probability of winning when going first is 1/1...read more
Q13. There is a closed room with 3 bulbs and there are three switches outside. You can toggle any two switches once without looking inside the room and map the bulbs to their corresponding switches. (Since I had don...
read moreYou can map the bulbs to their corresponding switches by toggling two switches and leaving one switch untouched.
Toggle switch 1 and switch 2, leave switch 3 untouched.
After a few minutes, toggle switch 2 back to its original position.
Enter the room and observe the bulbs.
The bulb that is on corresponds to switch 1, the bulb that is off and still warm corresponds to switch 2, and the bulb that is off and cool corresponds to switch 3.
Q14. Suppose there are N chocolates, and I pick a random one, and eat that chocolate and also everything to the right of it. I then continue this process with the remaining. How many ways are there to do this?
There are (N-1)! ways to eat chocolates from left to right.
The first chocolate can be chosen in N ways, the second in (N-1) ways, and so on.
However, since the order of chocolates eaten matters, we need to divide by the number of ways to order N chocolates, which is N!.
Therefore, the total number of ways to eat chocolates is (N-1)!
For example, if N=4, there are 3! = 6 ways to eat the chocolates.
Q15. Given 3 functions, f which gives the first day of the current month, g gives the next working day and h gives the previous working day, conpute the 3rd working day? Compute the 2nd working day of the previous m...
read moreCompute working days using given functions f, g, and h.
To compute the 3rd working day, apply function g three times to function f.
To compute the 2nd working day of the previous month, apply function h to function f, then apply function g twice.
To compute the 4th working day of the next month, apply function g four times to function f.
Q16. Can some work you did at Microsoft be used in DB (I wasn’t at all expecting this but thought and found that an algo I designed could be applied to a problem in the stock market domain)?
Yes, an algorithm I designed at Microsoft can be applied to a problem in the stock market domain.
I designed an algorithm at Microsoft that can be used in the stock market domain
The algorithm can be applied to solve a specific problem in the stock market
The work I did at Microsoft has potential applications in the financial industry
Q17. Suppose you and I are playing a dice game. The one who get the lesser number looses the games. The dice has n sides. If I start the game, what is the probablity of you winning?
Probability of winning a dice game where the one with lesser number wins.
The probability of winning depends on the number of sides on the dice.
If the dice has an odd number of sides, the probability of winning is higher for the second player.
If the dice has an even number of sides, the probability of winning is equal for both players.
Q18. There is a 2D plane with infinite parallel, vertical lines with a spacing of 1 unit between them. You drop a rod of length L randomly on the plane, with random position and orientation. What is the probability...
read moreProbability of a randomly dropped rod of length L intersecting a line on a 2D plane with infinite parallel, vertical lines.
The probability depends on the length of the rod L.
The probability can be calculated using geometric probability.
The probability is 1 - (2L - 1) / infinity.
For example, if L = 1, the probability is 0.5.
If L = 2, the probability is 0.75.
Q19. Given a biased coin, how do you create an unbiased toss?
Flip the coin twice and consider the outcome as follows.
Flip the coin twice and consider the outcome as follows:
- If both flips are heads or both are tails, discard and flip again.
- If the first flip is heads and the second is tails, consider it as heads.
- If the first flip is tails and the second is heads, consider it as tails.
This method ensures a 50-50 chance of getting either heads or tails.
Alternatively, use a physical method to balance the weight distribution of the coi...read more
Q20. Given a number line, and we have a rod of length L. We drop the rod on the line, what is the probability that it covers an integer?
Probability of a rod of length L covering an integer on a number line.
The probability depends on the length of the rod and the distance between adjacent integers on the number line.
If the length of the rod is less than the distance between adjacent integers, the probability is zero.
If the length of the rod is greater than or equal to the distance between adjacent integers, the probability is (L - d)/d, where d is the distance between adjacent integers.
The probability can be c...read more
Q21. Puzzle: Given two hour glass, one measuring 4 mins and the other 7 mins, how to measure 9 mins
To measure 9 minutes using two hourglasses of 4 and 7 minutes, start both hourglasses simultaneously. When the 4-minute hourglass runs out, flip it again. When the 7-minute hourglass runs out, flip it again. When the 4-minute hourglass runs out for the third time, 9 minutes will have passed.
Start both hourglasses simultaneously
When the 4-minute hourglass runs out, flip it again
When the 7-minute hourglass runs out, flip it again
When the 4-minute hourglass runs out for the thir...read more
Q22. How will you cut a piece of cake to 8 in minimum cuts
Cut the cake in half horizontally, then vertically, and then diagonally twice.
Cut the cake in half horizontally.
Cut the cake in half vertically.
Cut the cake diagonally from the center to the edge twice.
Total cuts required: 7
Q23. Supposed there is a party, with 9 people, each person wants to give gifts to 3 people and also wants a gift from them. Is this scenario possible? If not, when is this possible? Give me a general case
No, it is not possible for each person to give gifts to 3 people and receive a gift from them in a party of 9 people.
In this scenario, each person would need to receive 3 gifts, which is not possible if there are only 9 people.
This scenario would be possible if there were at least 10 people at the party.
In general, for a party of n people, each person can give gifts to n-1 people and receive gifts from n-1 people.
Q24. What are the fields in EXTC that are related to IT ?
Fields in EXTC related to IT
Digital Signal Processing
Microprocessors and Microcontrollers
Computer Networks
Data Communication
Wireless Communication
Mobile Communication
Internet of Things
Cloud Computing
Artificial Intelligence
Machine Learning
Q25. If an ant had to travel along the walls, what is the minimum distance between the opposite ends of a cuboid?
The minimum distance between opposite ends of a cuboid is the length of the diagonal of the cuboid.
To find the diagonal, use the Pythagorean theorem: diagonal = sqrt(length^2 + width^2 + height^2)
The length, width, and height of the cuboid must be known to calculate the diagonal
The ant can travel along any of the three pairs of opposite walls, so the minimum distance is the shortest diagonal
Example: A cuboid with length = 3, width = 4, and height = 5 has a diagonal of sqrt(3^...read more
Q26. Output of the following code: integer a, b, c; set a = 11, b = 12, c = 10; if (b > 0) b++ else a++ end if for (each b from 0 to 5) a = a + 1 end for print (a + c)
The code sets values for three integers and performs conditional and loop operations to print the sum of two integers.
The value of 'a' is set to 11, 'b' to 12, and 'c' to 10.
The 'if' condition checks if 'b' is greater than 0 and increments 'b' if true, else increments 'a'.
The 'for' loop runs for each value of 'b' from 0 to 5 and increments 'a' by 1.
The final output is the sum of 'a' and 'c', which is 18.
Q27. Trade life cycle and types of tlc where it functions.
Trade life cycle includes pre-trade, trade execution, trade confirmation, settlement, and accounting. It functions in various types of trades.
Trade life cycle involves pre-trade, trade execution, trade confirmation, settlement, and accounting
It functions in various types of trades such as equity, fixed income, foreign exchange, and derivatives
In equity trading, the trade life cycle starts with the order placement and ends with the settlement of the trade
In foreign exchange tr...read more
Q28. What is the process of launching a new product to market ? Explain each step ?
Launching a new product involves several steps, from ideation to market launch.
Conduct market research to identify customer needs and preferences
Develop a product concept and create a prototype
Test the product with focus groups and make necessary adjustments
Create a marketing plan and determine pricing strategy
Launch the product and monitor sales and customer feedback
Make any necessary improvements or adjustments based on feedback
Continue to promote and market the product to ...read more
Q29. What in your opinion would be the repercussions if the fiscal cliff was not avoided, both in US and in the global economy. Will India be affected and why?
Failure to avoid fiscal cliff could lead to severe economic repercussions globally and in the US, with India also being affected.
The US economy could experience a recession, with a potential decrease in GDP and increase in unemployment rates
Global financial markets could experience volatility and uncertainty
India could be affected due to its close economic ties with the US, with potential impacts on trade and investment
The failure to address the fiscal cliff could also lead t...read more
Q30. What is WACC? How do value a company? Suggest a method that can help you decide on project undertaking?
WACC is the weighted average cost of capital. To value a company, one can use various methods such as DCF, comparables, or precedent transactions. A method to decide on project undertaking is NPV analysis.
WACC is the average cost of all the capital a company has raised
To value a company, one can use DCF, comparables, or precedent transactions
DCF involves projecting future cash flows and discounting them back to present value
Comparables involves comparing the company to simila...read more
Q31. A Big Bazaar store had low profits for the last two months. Whats going on?
Low profits in Big Bazaar store for last two months.
Check if there is a decrease in footfall or sales.
Analyze the competition in the area.
Check if there are any supply chain issues.
Evaluate the marketing strategies and promotions.
Assess the economic conditions of the area.
Consider the impact of COVID-19 on consumer behavior.
Review the store's inventory management and pricing strategies.
Q32. Client is experiencing some problems with its BPO in terms of dissatisfied customers. How would you identify the problems in the call center? Suggest solutions
Identifying problems and suggesting solutions for dissatisfied customers in BPO call center.
Conduct customer satisfaction surveys to identify specific issues
Analyze call recordings to identify agent behavior and training needs
Review call center metrics such as average handle time and first call resolution
Implement additional training for agents on customer service and problem-solving
Improve communication channels between agents and management for issue escalation and resoluti...read more
Q33. Cube with six colors how many different cubes can be obtained?
There are 6 colors, so 6^3 = 216 different cubes can be obtained.
The cube has 6 faces, each of which can be one of 6 colors.
Therefore, there are 6 options for the first face, 6 for the second, and 6 for the third.
To find the total number of possible cubes, we multiply these options together: 6 x 6 x 6 = 216.
Q34. Okay. How many people attended StanChart Mumbai Marathon?
The number of attendees at StanChart Mumbai Marathon is not available.
Data on the number of attendees is not available.
The organizers have not released any official figures.
It is unclear how many people participated in the marathon.
Q35. You have an n x n matrix in which all the rows and all the columns are sorted. Given an input number, describe an algorithm to search for the number in the matrix
Algorithm to search for a number in an n x n matrix with sorted rows and columns.
Start from the top-right corner of the matrix
If the current element is greater than the target, move left
If the current element is less than the target, move down
Repeat until the target is found or the bottom-left corner is reached
Q36. You have two brands of milk that you can sell in your store,. Which one would you pick?
I would pick the brand that has a higher quality and better taste.
Check the quality and taste of both brands
Consider the price of each brand
Look at the expiration date of both brands
Consider the popularity of each brand among customers
Q37. How will you solve a trans-shipment problem in excel solver software?
Trans-shipment problem can be solved in Excel Solver by setting up a linear programming model.
Define decision variables for the amount of goods to be shipped between each pair of locations.
Set up constraints to ensure that the supply and demand at each location are met.
Add constraints to limit the amount of goods that can be shipped through intermediate locations.
Define the objective function to minimize the total cost of shipping.
Use Excel Solver to find the optimal solution...read more
Q38. Is the price of a barrier option more or less than a normal option?
The price of a barrier option is generally less than a normal option.
Barrier options have a condition that must be met for the option to be activated, which reduces the likelihood of the option being exercised.
This reduced likelihood of exercise means that barrier options are generally cheaper than normal options.
However, the price of a barrier option can vary depending on the specific conditions and terms of the option.
For example, a knock-in barrier option may be more expen...read more
Q39. Calculate what single cut bookmyshow should charge from the customers depending on the various factor..... Ans. List the factors like movie of superstar, festival occasion etc.
BookMyShow should charge different prices based on factors like movie of superstar, festival occasion, etc.
Consider the popularity of the movie star
Take into account the demand for tickets during festival occasions
Analyze the competition and market trends
Offer discounts for bulk bookings or loyalty programs
Consider the cost of production and distribution
Adjust prices based on the time of day or week
Use dynamic pricing to optimize revenue
Examples: Charge higher prices for a mo...read more
Q40. What's the difference between final and finally keywords in java?
final keyword is used to declare a constant value while finally is used to define a block of code that will be executed after a try-catch block.
final keyword is used to declare a variable whose value cannot be changed
finally keyword is used to define a block of code that will be executed after a try-catch block
final can be used with classes, methods, and variables
finally is always used with try-catch block
Example: final int x = 10; try { //some code } catch(Exception e) { //s...read more
Q41. Explain P2P process and also explain how will you audit the same
P2P process involves procurement of goods/services from a supplier and payment to the supplier.
P2P stands for Procure-to-Pay process
It involves identifying the need for goods/services, selecting a supplier, creating a purchase order, receiving the goods/services, and making payment to the supplier
The audit of P2P process involves reviewing the controls in place to ensure accuracy and completeness of transactions, verifying the existence of proper documentation, and testing th...read more
Q42. Given coordinates of some points, find a figure that encompasses all of the points. The figure should have the least possible area and be formed by joining points using straight lines. Convex Hull.
The Convex Hull is the smallest convex polygon that encloses all given points.
Sort the points based on their x-coordinate.
Find the upper hull by starting from the leftmost point and moving clockwise.
Find the lower hull by starting from the rightmost point and moving counterclockwise.
Combine the upper and lower hulls to form the convex hull.
Q43. If there was a hole of dimension x on a beach, how much sand does it contain?
The amount of sand in a hole of dimension x on a beach cannot be determined without additional information.
The volume of sand in the hole depends on the depth of the hole as well as its length and width.
To calculate the volume, the formula V = lwh can be used, where l is the length, w is the width, and h is the depth of the hole.
Without knowing the specific dimensions of the hole, it is impossible to determine the amount of sand it contains.
Q44. Ps -ef what will it do what is strace command . What is tar and how to uncompress a file without extracting it what is /etc/motd what does it do
Ps -ef lists all processes, strace command traces system calls, tar is used for archiving files, /etc/motd displays message of the day.
Ps -ef command lists all processes running on the system
Strace command is used to trace system calls made by a process
Tar command is used to archive files and directories
To uncompress a file without extracting it, you can use 'tar -xOzf file.tar.gz | less' to view the contents without extracting
/etc/motd is a file that displays a message of th...read more
Q45. What are other flavours of linux have you used any other flavour . Diff between telnet and ssh . What is NFS and port no. What is ncat command
I have used various flavors of Linux such as Ubuntu, CentOS, and Fedora. Telnet is insecure while SSH is secure. NFS is a network file system with port number 2049. Ncat is a networking utility for reading and writing data across networks.
Flavors of Linux I have used include Ubuntu, CentOS, and Fedora
Telnet is insecure as it sends data in plain text, while SSH encrypts data for secure communication
NFS (Network File System) allows sharing files/folders over a network, using po...read more
Q46. What is derivative and type of derivative
A derivative is a financial instrument whose value is derived from an underlying asset. Types include futures, options, and swaps.
A derivative is a contract between two parties based on an underlying asset.
It derives its value from the performance of the underlying asset.
Common types of derivatives include futures, options, forwards, and swaps.
Derivatives are used for hedging, speculation, and arbitrage.
Examples of derivatives include stock options, commodity futures, and int...read more
Q47. What is linux & why linux is considered to be more secured .how to secure the linux server & what is DNS .how to host a webpage in linux
Linux is an open-source operating system known for its security features. DNS is a system that translates domain names to IP addresses. Hosting a webpage in Linux involves setting up a web server.
Linux is an open-source operating system that is considered more secure due to its strong user permissions system and regular security updates.
To secure a Linux server, best practices include keeping the system updated, using strong passwords, limiting user access, and implementing f...read more
Q48. You roll a die until the sum of all die rolls becomes at least 100. What is the most likely value of the last roll?
What is the most likely value of the last roll in a game where a die is rolled until the sum of all rolls is at least 100?
The last roll must be at least 4 to reach a sum of 100
The probability of rolling a 4, 5, or 6 is 1/2
The most likely value of the last roll is 4 or 5
Q49. If I have to buy fuel from you, what option would I buy?
You can buy fuel from us through our fuel card program.
We offer a fuel card program that allows you to purchase fuel from our network of stations.
Our fuel card program offers discounts and rewards for frequent users.
You can easily track your fuel expenses and usage through our online portal.
We also offer customized fuel solutions for businesses and fleets.
Our fuel is high-quality and meets all industry standards.
Q50. If we increase the volatility of the stock, how does the price of a call option change?
Increasing stock volatility increases the price of a call option.
Higher volatility means higher potential for the stock to move in the option holder's favor, increasing the option's value
The option's delta and gamma will also increase with higher volatility
Example: If a call option on a stock with a strike price of $50 has a premium of $2 when the stock has a volatility of 20%, increasing the volatility to 30% may increase the premium to $2.50 or higher
Interview Questions of Similar Designations
Top Interview Questions for Analyst Related Skills
Interview experiences of popular companies
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
Reviews
Interviews
Salaries
Users/Month