Discrete Mathematics Questions and Answers – Number Theory – Primes and Greatest Common Divisors

This set of Discrete Mathematics Multiple Choice Questions & Answers (MCQs) focuses on “Number Theory – Primes and Greatest Common Divisors”.

1. The prime factorization of 7007 is __________
a) 73.11.13
b) 72.11.13
c) 7.11.13
d) 7.113.13
View Answer

Answer: b
Explanation: Perform successive division beginning with 2.

2. Out of following which one is Mersenne Primes?
a) 3
b) 7
c) 2047
d) 31
View Answer

Answer: c
Explanation: 2047 = 23.89 also not in form of 2b-1 form.

3. Out of the following which of these integers is not prime?
a) 21
b) 35
c) 71
d) 101
View Answer

Answer: b
Explanation: 35 = 5.7 which is the product of two prime numbers.
advertisement
advertisement

4. The prime factorization of 1001 is __________
a) 73.11.13
b) 72.11.13
c) 7.11.13
d) 7.113.13
View Answer

Answer: c
Explanation: Perform successive division beginning with 2.

5. Which positive integer less than 21 are relatively prime to 21?
a) 18
b) 19
c) 21
d) 24
View Answer

Answer: b
Explanation: gcd(19,21) = 1. According to the definition of relatively prime gcd of two numbers is 1.
Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!

6. Is 7, 8, 9, 11 are pairwise relatively prime.
a) True
b) False
View Answer

Answer: a
Explanation: gcd(7, 9) = gcd(8, 9) = gcd(9, 11) = gcd(11, 7) = 1. The numbers 7 and 11 are prime and numbers 8 and 9 are relatively prime.

7. The greatest common divisor of 313.517 and 212.35 is __________
a) 30
b) 31
c) 33
d) 35
View Answer

Answer: d
Explanation: gcd(a, b) = 3min(13, 5).5min(17, 0).2min(12, 0).
advertisement

8. The greatest common divisor of 0 and 5 is ___________
a) 0
b) 1
c) 2
d) 5
View Answer

Answer: b
Explanation: gcd(0, 5) = 0min(1, 0).5min(0, 1).

9. The lcm of 3 and 21 is ________ if gcd(3,21)=3.
a) 3
b) 12
c) 21
d) 42
View Answer

Answer: c
Explanation: 3 * lcm(3, 21) = 63 hence, lcm(3, 21) = 63 / 3 = 21.
advertisement

10. The least common multiple of 41.42 and 42.41 is ____________
a) 42
b) 41
c) 84
d) 41.42
View Answer

Answer: d
Explanation: lcm(41 * 42, 42 * 42) = 41.42.42.41 / 41.42 = 41.42.

Sanfoundry Global Education & Learning Series – Discrete Mathematics

To practice all areas of Discrete Mathematics, here is complete set of 1000+ Multiple Choice Questions and Answers.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.