Which code fragment prints red: blue: small: medium?

Given the code fragment:

Which code fragment prints red: blue: small: medium?

Given the code fragment:

Which code fragment prints red: blue: small: medium?

A.
Option A

B.
Option B

C.
Option C

D.
Option D



Leave a Reply 4

Your email address will not be published. Required fields are marked *


Maxtor

Maxtor

Either B and D is correct.

Hala

Hala

no just D is correct. please check line 2 in B and notice that idx<index not idx<2 as should be.

renko

renko

Answer D is correct.