Today is the 896th day of learning programming with the cool drizzle!
Hello, everyone! This is the test for GESP202509 Level 2.
Day 896


GESP202509 Level 2
Multiple Choice Question
Question 8
After executing the following C++ code, the output is (
)

A. 110
B. 12
C. Uncertain
D. No output
Answer: B
START OF SPRING
Solution:This question tests the use of nested loops.
When the outer loop exits, the value of i is definitely 12; neither continue nor break can interfere with the execution of the outer loop. The value of j will flow to 1, at which point the if condition in the inner loop will be satisfied, and break will execute. At this time, the value of j is 1. Therefore, the answer is B.

20
25
11

NOVEMBER
Day
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Sunday
1
12
2
13
3
14
4
15
5
16
6
17
7
Beginning of Winter
8
Chinese Journalist Day
9
Fire Safety Day
10
21
11
22
12
23
13
24
14
25
15
26
16
27
17
28
18
29
19
30
20
October
21
2nd
22
Light Snow
23
4th
24
5th
25
6th
26
7th
27
Thanksgiving
28
9th
29
10th
30
11th
Cool Drizzle
Cool Drizzle
Open Wisdom Station
