OA. free
Free
Ukg Core Computer Science Core Computer Science Medium

Analyze the following code snippet and determine its time complexity: Pick ONE option

Ukg technical mcq question, verified with a worked answer. Free to practise - no sign-up.

Analyze the following code snippet and determine its time complexity:

i++;
s+=i;
printf("Best of Luck");
}
function(ceil(n/2));
}

Pick ONE option

Choose one option.
Show answer & explanation
Answer: A. A) O(1)

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.