Skip to content
free
K
1
2
practice
Home
Math
English
Science
Social Studies
Contact
Language
English
Español
Sign In
/
High School Electives
/
Computer Science
/
Nested Control Structures
Grade Level
Computer Science
HSCS.095 Nested Control Structures
0%
Skill Level
🔴 Hard
00:00
Progress to Next Level
25% to Medium
Easy
Medium
Hard
Mastery
100%
A programmer traces this code. What is the most accurate outcome? i <- 0 mark <- 0 WHILE i < 3 j <- 0 WHILE j < 2 IF i + j > 2 THEN mark <- mark + 1 END IF // j is not updated here END WHILE i <- i + 1 END WHILE
A
The program finishes with mark equal to 0.
B
The program skips the inner loop because j starts at 0.
C
The program finishes with mark equal to 3.
D
The program gets stuck in the inner loop on the first outer iteration.
Submit Answer