Question
In a bag, the ratio of yellow and orange marbles is 4:5
respectively, and the ratio of orange and purple marbles is 1:3 respectively. If the total number of yellow, orange, and purple marbles is 96, then how many orange marbles are there in the bag?Solution
ATQ,
Let the number of yellow marbles = 4x Then, number of orange marbles = (5/4) × 4x = 5x And, number of purple marbles = (3/1) × 5x = 15x Now, 4x + 5x + 15x = 96 ⇒ 24x = 96 ⇒ x = 96 / 24 = 4 So, number of orange marbles = 5x = 5 × 4 = 20
Which of the following techniques is primarily used to address overfitting in machine learning models?
In Java, what will be the output of the following code snippet?
public class Test {
   public static void main(String[] args) { <...
Which algorithm is used for computing Max-Flow in a network?
Which of the following allows dynamic memory allocation?
Which of the following best describes the mechanism of a Cross-Site Scripting (XSS) attack?
Which OSI model layer is responsible for reliable delivery of data between devices?
What is the purpose of the keys() method in a dictionary?
Which heap property is correct?
Which of the following accurately describes the role of a "foreign key" in a relational database system?
Which of the following is a disadvantage of using arrays?