πŸ“Š Design and Analysis of Algorithms
Q. Which of the following is also known as LCM?
  • (A) lowest common divisor
  • (B) least common multiple
  • (C) lowest common measure
  • (D) highest common multiple
πŸ’¬ Discuss
βœ… Correct Answer: (A) lowest common divisor

Explanation: least common multiple is also known as lcm or lowest common multiple.

πŸ“Š Design and Analysis of Algorithms
Q. What is the LCM of two coprime numbers?
  • (A) 1
  • (B) 0
  • (C) addition of two coprime numbers
  • (D) multiplication of two coprime numbers
πŸ’¬ Discuss
βœ… Correct Answer: (D) multiplication of two coprime numbers

Explanation: coprime numbers have gcd 1. while lcm of coprime numbers is the product of those two coprime numbers.

πŸ“Š Design and Analysis of Algorithms
Q. In terms of Venn Diagram, which of the following expression gives LCM (Given A κ“΅ B ≠ Ø)?
  • (A) multiplication of a u b terms
  • (B) multiplication of a κ“΅ b terms
  • (C) multiplication of a*b terms
  • (D) multiplication of a-b terms
πŸ’¬ Discuss
βœ… Correct Answer: (A) multiplication of a u b terms

Explanation: in terms of venn diagram, the lcm is given by the union of two sets. so a u b gives the lcm. while a κ“΅ b gives the gcd.

πŸ“Š Design and Analysis of Algorithms
Q. What is the LCM according to the given Venn Diagram?
  • (A) 2
  • (B) 3
  • (C) 180
  • (D) 6
πŸ’¬ Discuss
βœ… Correct Answer: (C) 180

Explanation: in terms of venn diagram, the lcm is given by the union of two sets. so a u b gives the lcm. so product of all the terms is 180.

πŸ“Š Design and Analysis of Algorithms
Q. What is the lcm (a, b)?
  • (A) a + b
  • (B) gcd (a-b, b) if a>b
  • (C) lcm (b, a)
  • (D) a – b
πŸ’¬ Discuss
βœ… Correct Answer: (C) lcm (b, a)

Explanation: since the lcm function is commutative, so lcm (a, b) = lcm (b, a).

πŸ“Š Design and Analysis of Algorithms
Q. What is the following expression, lcm (a, lcm (b, c) equal to?
  • (A) lcm (a, b, c)
  • (B) a*b*c
  • (C) a + b + c
  • (D) lcm (lcm (a, b), c)
πŸ’¬ Discuss
βœ… Correct Answer: (D) lcm (lcm (a, b), c)

Explanation: since lcm function follows associativity, hence lcm (a, lcm (b, c) is equal to lcm (lcm (a, b), c).

πŸ“Š Design and Analysis of Algorithms
Q. Is lcm an associative function.
  • (A) true
  • (B) false
  • (C) ---
  • (D) ---
πŸ’¬ Discuss
βœ… Correct Answer: (A) true

Explanation: the lcm function is an associative function as lcm (a, lcm (b, c) is equal to lcm (lcm (a, b), c).

πŸ“Š Design and Analysis of Algorithms
Q. What is the following expression, lcm (a, gcd (a, b)) equal to?
  • (A) a
  • (B) b
  • (C) a*b
  • (D) a + b
πŸ’¬ Discuss
βœ… Correct Answer: (A) a

Explanation: since the lcm function follows absorption laws so lcm (a, gcd (a, b)) equal to a.

πŸ“Š Design and Analysis of Algorithms
Q. Which algorithm is the most efficient numerical algorithm to obtain lcm?
  • (A) euler’s algorithm
  • (B) euclid’s algorithm
  • (C) chebyshev function
  • (D) partial division algorithm
πŸ’¬ Discuss
βœ… Correct Answer: (B) euclid’s algorithm

Explanation: the most efficient way of calculating the lcm of a given number is using euclid’s algorithm which computes the lcm in much lesser time compared to other algorithms.

Jump to