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 ?
Información del documento
- Subido en
- 7 de febrero de 2023
- Número de páginas
- 23
- Escrito en
- 2022/2023
- Tipo
- Examen
- Contiene
- Preguntas y respuestas