Question
The value of a stock increased by 25% in the first
quarter of the year. In the second quarter, it decreased by 10% from its value at the end of the first quarter. If the stock's value at the end of the second quarter is Rs 225, what was its original value?Solution
Let the original value of stock = 100x Value of stock after first quarter = 125x Value of stock after second quarter = 90% of 125x = 112.5x 112.5x = 225 x = 2 original value of stock = 100x = 200
Which tree traversal is most suitable for finding the shortest path in an unweighted graph represented as a tree?
Which C operator is used to access a value at a memory address stored in a pointer?
Which Python keyword is used to define a function?
Which of the following statements is correct for Python lists?
Which of the following is used to handle exceptions in Java?
- Which network device operates at the Data Link Layer of the OSI model and helps to filter and forward data between LAN segments?
In Python, what does len() function do?
Which algorithm is used to find the shortest path from a single source in graphs with negative weights?
In Java, which method is used to start a thread?
Which of the following is a valid C++ constructor?