What will be the output of the following code: Pick ONE option
Ukg technical mcq question, verified with a worked answer. Free to practise - no sign-up.
What will be the output of the following code:
INTEGER n;
n = 100;
QUEUE q;
while (n > 0)
q.push(n % 3)
n /= 3
while (q.size())
PRINT q.front()
q.pop()
Pick ONE option
Show answer & explanation
Answer: A. A) 10201
Accurate technical and quantitative evaluation based on foundational principles.
Step-by-step Derivation:
Step 1: Formulate problem conditions.
Step 2: Apply logical deduction.
Step 3: Conclude correct option.