MCQ Answer

Which loop condition is used in the algorithm to find the GCD of two numbers using Euclid's method?

Which loop condition is used in the algorithm to find the GCD of two numbers using Euclid's method?

Euclid's method से GCD निकालने वाले algorithm में कौन-सी loop condition उपयोग होती है?
Topic : Operators Expressions and Python Statements

A. a > b

B. b == 0

C. while (b != 0)

D. a == b




Correct Answer is :

C. while (b != 0)



Explanation
Euclid's algorithm repeatedly computes the remainder until b becomes zero.

Euclid's algorithm में remainder तब तक निकाला जाता है जब तक b zero नहीं हो जाता।
Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad