• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Part: 10 Appendix > Chapter 4

Chapter 4

A1: C. Index loops can iterate only over numeric values.
A2: D. Because the counter i is incremented and then displayed, the first value displayed is 2. The number 4 is shown because the loop does not terminate immediately when the condition is false; rather, it finishes the loop.
A3: A. The variable specified in the item attribute takes on the keys of the structure in the loop.
A4: B and D. The conditional loop has only one attribute, condition, and the collection loop uses item.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint