GCD Subtraction Method
 1) What is the purpose of the above program? To find the sum of two numbers To find the difference between two numbers To swap two numbers To find the GCD of two numbers using the subtraction method

 2) What is the initial value of the variable "temp1"? num1 num2 None of these 0

 3) What is the condition for the "while" loop to continue executing? (num1 + num2) != 0 (num1 / num2) != 0 (num1 * num2) != 0 (num1 - num2) != 0

 4) What is the value of "temp2" in each iteration of the "while" loop? num1 / num2 num1 * num2 num1 + num2 num1 - num2

 5) What is the purpose of the "if" statement inside the while loop? To update the value of temp2 To update the value of temp1 To swap the values of num1 and num2 To check which number is greater

 6) What is the final output of the program "if num1 = 10 and num2 = 20"? 20 30 10 None of these

 7) What is the final output of the program "if num1 = 50 and num2 = 50"? 0 50 The program will result in an error None of these

 8) What happens if the user inputs the same value for "num1" and "num2"? The program will swap the values of "num1" and "num2" The program will result in an error None of these The program will return the value of "num1"

 9) Which method is used to find the GCD in the above program? Subtraction method Euclidean algorithm Prime factorization method Division method

 10) What happens if the user inputs non-integer values for "num1" and "num2"? The program will result in an error None of these The program will convert the values to integers The program will round the values to the nearest integer