University of Iowa Computer Science Department

Quiz 07

 

1. Given a list box named lstBox, display in a MessageBox the current number of elements in the lstBox. Note: I am not asking for you to display the actual elements, just the total number of elements.

2. Assume that you have the following array declaration:

int[] a = new int[10];

Draw a picture of how this structure will be allocated in memory. Recall that an array is a reference type.

UI CLAS CRA ACM Valid CSS! Valid XHTML 1.0 Transitional Level Double-A conformance icon, W3C-WAI Web Content Accessibility Guidelines 1.0 Cynthia tested
| Modified: .