Code TracingFoundational
What value is returned? sum = 0 for n in [2, 4, 6]: sum = sum + n return sum
A.6
B.10
C.12
D.24
The loop adds 2 + 4 + 6, which equals 12.
Assess entry-level programming fundamentals, basic logic and readiness for a junior technical role.
A preview from the supplied content for this template. Use it as a reference when building your test.
The loop adds 2 + 4 + 6, which equals 12.
Undo normally removes the most recently added action first.
The inner operation can run approximately n × n times.
Binary search relies on ordered data to discard half the search space.
The supplied content includes 16 more questions.
Review this preview, then create a test that matches your candidates, employees or learners.
Use This Template