Consider the following Structure definition and declaration. Which assignment statement would correctly record that player number 13 had three home runs so far this season?

```
Structure playerType
Dim fullname As String
Dim team As String
Dim position As String
Dim homerun As Double
Dim average As Double
Dim rbi As Double
End Structure
Dim player(45) As playerType
```
(A) ``` player(13) = 3
```
(B) ``` player(13).homerun(3)
```
(C) ``` playerType(13).homerun = 3
```
(D) ``` player(13).homerun = 3
```
(E) None of the above

(D) ``` player(13).homerun = 3
```

Computer Science & Information Technology

You might also like to view...

The y -axis of the waveform view represents the ______.

A. amplitude value B. frequency C. time

Computer Science & Information Technology

Here is a simpler version of the add(Object, int) method from Section 3.4.9. Under what circumstances will it fail? How do you fix this problem?

``` 1 public void add( E e, int p ) { 2 if (( p < 0 ) || ( p > length ) ) 3 throw new IndexOutOfBoundsException(); 4 SLNode newnode = new SLNode ( e, null ); 5 6 SLNode cursor = find( p – 1 ); 7 addAfter( cursor, newnode ); 8 length++; 9 } ```

Computer Science & Information Technology