Question
What is the least number which when divided by 3, 15 &
18 leave a remainder 6 in each case & it is also divisible by 12?Solution
Number which when divided by 3, 15 & 18 leaves a remainder 6 = LCM (3, 15 & 18)k+6 = 90k+6, Now it should be also divisible by 12. So (90k+6)/12 = (84k+6k+6)/12 , it means (6k+6) should be divisible by 12. So when k = 1 then it will be 6×1+6= 12 which is divisible by 12. Hence final answer = 90k+6 = 90 × 1 + 6 = 96.
Which of the following algorithms is most commonly used in Operating Systems for deadlock prevention?
In C, which function is used to release dynamically allocated memory?
In C, what will be the output of the following code?
int a = 5;
printf("%d", a++);
Which Java keyword is used to inherit a class?
In C++, which feature allows hiding the internal details of a class?
- Which of the following is the primary benefit of Big Data analytics in decision-making?
Which of the following is used to declare a list in Python?
In Java, which method is used to start a thread?
Which Python keyword is used to handle exceptions?
In Python, which of the following is immutable?