Question
A shopkeeper marks an item 50% above its cost price.
During a sale, he provides two successive discounts of 20% and 10%. Calculate the profit percentage.Solution
Let the Cost Price (CP) = โนx. Marked Price (MP) = CP ร 1.50 (since it's 50% above CP) = 1.5x Selling Price (SP) after two successive discounts of 20% and 10%: SP = 1.5x ร (1 - 0.20) ร (1 - 0.10) SP = 1.5ร0.72x SP = 1.08x
In a data analysis workflow, an index is created on a column with very low cardinality (e.g., a 'gender' column). What is a potential consequence of this?
Binary trees are often used to represent hierarchical data. Which of the following is NOT a direct application of binary trees?
What does it mean for an algorithm to be "in-place"?
What is the primary goal of the Matrix Chain Multiplication problem in dynamic programming?
Consider the following Java code:
public class LengthMix {
ย ย public static void main(String[] args) {
ย ย ย ย int[] numbers...
A function sum_matrix_elements(matrix, R, C) is designed to sum all elements of a matrix with R rows and C columns. The implementation uses nested loops...
Which is best fit for blank space 14?
Which of the following statements accurately describes Third Normal Form (3NF) in database normalization?
In a multi-homed network, BGP route flapping causes external instability. Which mechanism MOST effectively prevents repeated advertisement of unstable r...
What is the time complexity of the KMP algorithm for searching a pattern of length 'M' in a text of length 'N'?