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

Given this pseudo-code, how many times is the action A performed?

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

Given this pseudo-code, how many times is the action A performed?
(note: ranges are inclusive)

for x ranges from 1 to 10 {
    for y ranges from 10 to 2, step=-2 {
        for z in 1 to y {
            perform an action A
        }
    }
}

Pick ONE option

Choose one option.
Show answer & explanation
Answer: A. A) 1000

Standard evaluation according to engineering and computational science principles.

Step-by-step Derivation:
Step 1: Analyze problem specification.
Step 2: Derive theoretical solution.
Step 3: Select corresponding answer option.