Given the code fragment:
Which code fragment prints red: blue: small: medium?
A.
Option A
B.
Option B
C.
Option C
D.
Option D
Given the code fragment:
Which code fragment prints red: blue: small: medium?
A.
Option A
B.
Option B
C.
Option C
D.
Option D
Either B and D is correct.
no just D is correct. please check line 2 in B and notice that idx<index not idx<2 as should be.
Answer D is correct.
D