Exam (elaborations) java arrays
1. In the array declaration String[] word = new String[5]; what is a. the array name? b. the base type? c. the length of the array? d. the range of values an index accessing this array can have? e. one of the indexed variables (or elements) of this array? 2. In the array double [] score = new double [10]; what is a. the value of h ? b. the fi rst index of score ? c. the last index of score ?
Written for
- Institution
-
Harvard University
- Course
-
Java
Document information
- Uploaded on
- February 7, 2023
- Number of pages
- 23
- Written in
- 2022/2023
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
Also available in package deal