Question
The average of five consecutive even numbers is 20. Find
the second largest number.Solution
ATQ,
Let the first number be 'x'
Therefore, the five consecutive even numbers will be 'x', (x + 2), (x + 4), (x + 6), (x + 8)
ATQ:
x + (x + 2) + (x + 4) + (x + 6) + (x + 8) = 5 × 20
Or, 5x + 20 = 100
Or, 5x = 100 - 20
Or, 5x = 80
Or, x = 80 ÷ 5 = 16
Therefore, the first number = 16
Second largest number = (x + 6) = 16 + 6 = 22
In Python, which method is used to convert a string to lowercase?
In Java, which method is called when an object is garbage collected?
In C, what will be the output of the following code?
int a = 5;
printf("%d", a++);
Which of the following is correct for a single-line comment in C++?
Which of the following systems is typically designed to support managerial decision-making? Â Â Â Â Â Â
Which of the following algorithms is commonly used in Machine Learning for clustering tasks?   Â
Which of the following is used to handle exceptions in Java?
Which of the following is true about Java interfaces?
Which of the following algorithms is used for finding Minimum Spanning Tree?
Which of the following is used to declare a list in Python?