Zeus Learning
10+ EPL Limited Interview Questions and Answers
Q1. 80 pairs of socks in a dark room, 40 black, 40 white, how many minimum number of socks need to be taken out to get 15 pairs of socks
Minimum 31 socks need to be taken out to get 15 pairs of socks
To get 15 pairs of socks, you need to have 30 socks of different colors
After taking out 30 socks, the next sock you take out will complete the 15 pairs
So, minimum 31 socks need to be taken out to get 15 pairs of socks
Q2. 100 apples in 5 consecutive days, each day 6 more than the previous day, how many apples were eaten on the first day
The number of apples eaten on the first day can be calculated by working backwards from the total number of apples eaten over 5 days.
Calculate the total number of apples eaten over 5 days: 100 apples
Subtract the apples eaten on the 2nd day (6 more than the 1st day), 3rd day (6 more than the 2nd day), and so on until the 5th day to find the apples eaten on the 1st day
Example: 1st day = x, 2nd day = x + 6, 3rd day = x + 12, 4th day = x + 18, 5th day = x + 24. Total = 100 apples
Q3. pen weight = 2 kg + 1/2 of its own weight -> what is the weight of pen?
The weight of the pen is 4 kg.
To find the weight of the pen, we can set up the equation: pen weight = 2 kg + 1/2 of its own weight
Let x be the weight of the pen. The equation becomes: x = 2 + 1/2 * x
Solving for x, we get x = 4 kg
Q4. When designing an online carrom game, if the game is paused in between and then resumed again, what all things need to be saved?
When designing an online carrom game, the saved data when the game is paused and resumed should include player scores, positions of coins, game state, and timer status.
Player scores should be saved to ensure continuity.
Positions of coins on the board should be saved to resume the game accurately.
Game state (such as whose turn it is) should be saved to maintain the flow.
Timer status should be saved to resume the game with the correct time remaining.
Q5. 3 boxes with apples, oranges, apples + oranges --> labels are jumbled that is each box is labeled incorrectly, least number of steps required to correct the labels, considering each fruit we pick out is one ste...
read moreTo correct the labels on 3 boxes with jumbled fruit labels, the least number of steps required is 2.
Pick a fruit from the box labeled 'apples + oranges', since it must contain both fruits.
Then pick a fruit from the box labeled 'oranges', as it cannot contain apples.
Q6. make a 3 digit password from the given condition
Create a 3 digit password based on given condition.
The condition for the password is not provided.
Without the condition, it is impossible to create a password.
The password should be strong and not easily guessable.
Q7. 11 mins hourglass and 7 mins hourglass, use them both to calculate 15 mins
To calculate 15 mins using 11 mins and 7 mins hourglasses, start both hourglasses together. When the 7 mins hourglass runs out, flip it. When the 11 mins hourglass runs out, flip the 7 mins hourglass. When the 7 mins hourglass runs out again, 15 mins have passed.
Start both hourglasses together
When the 7 mins hourglass runs out, flip it
When the 11 mins hourglass runs out, flip the 7 mins hourglass
When the 7 mins hourglass runs out again, 15 mins have passed
Q8. What is the protocol used for communication over web pages
HTTP is the protocol used for communication over web pages.
HTTP stands for Hypertext Transfer Protocol
It is the foundation of data communication on the World Wide Web
HTTP uses a client-server model where the web browser acts as the client and sends requests to the web server
The web server responds with the requested data in the form of HTML, images, videos, etc.
Q9. two jugs -> 5L and 3L -> fill 4L using only them, while wasting the least amount of water
Fill 4L using 5L and 3L jugs with minimum water wastage
Fill the 3L jug and pour it into the 5L jug, leaving 1L in the 3L jug
Empty the 5L jug, then pour the 1L from the 3L jug into the 5L jug
Fill the 3L jug again and pour it into the 5L jug, now you have 4L in the 5L jug
Q10. Return addition and subtraction of two numbers from the same function
A function that returns the addition and subtraction of two numbers.
Create a function that takes two numbers as input parameters.
Inside the function, calculate the sum of the two numbers and store it in a variable.
Calculate the difference of the two numbers and store it in another variable.
Return an array of strings containing the sum and difference.
Q11. Find 2nd Largest Element in array
Iterate through array to find 2nd largest element
Iterate through array and keep track of largest and second largest elements
Handle edge cases like empty array or array with less than 2 elements
Example: ['3', '5', '2', '7', '1'] should return '5'
Q12. Print leaf nodes of binary tree
Print leaf nodes of binary tree
Traverse the tree recursively
If node is null, return
If node is leaf node, print it
Else, recursively traverse left and right subtrees
Q13. What is nodejs and what is promise. What is closures
Node.js is a runtime environment for executing JavaScript code outside of a web browser. Promises are objects representing the eventual completion or failure of an asynchronous operation. Closures are functions that have access to their own scope, as well as the scope in which they were defined.
Node.js is a runtime environment that allows you to run JavaScript on the server-side.
Promises are used in asynchronous programming to handle the results of asynchronous operations.
Clo...read more
Q14. Why Quality Assurance
Quality Assurance ensures that products meet high standards and customer expectations.
Ensures product quality and reliability
Identifies and fixes defects early in the development process
Increases customer satisfaction and trust in the product
Reduces risks and costs associated with product failures
Q15. What is js in java
JS in Java refers to JavaScript, a scripting language commonly used for web development.
JavaScript is a high-level, interpreted programming language.
It is commonly used for client-side web development.
JS can be embedded in HTML pages to add interactivity.
It is not the same as Java, which is a separate programming language.
Top HR Questions asked in EPL Limited
Interview Process at EPL Limited
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month