Test
One-Dimensional Arrays
Preguntas del test (4)
1Which of the following is a One Dimensional array?
- Aint array[n];
- Bint array[n][n];
- Cint array;
2In what situation would you need a one dimensional array?
- AWhen I need to arrange a set of values and access them with ease.
- BWhen I need one variable to save one value.
- CWhen I need to write "Hello World"
3Choose the right way to create an array of size 4
- Aint a[4];
- Bint a[3];
- Cint a[n];
- Dint a[n-1];
4Which of the following codes gives a value of 2 on the third position of an array of size 3
- Aa[2]=3;
- Ba[1]=3;
- Ca[3]=3;
Información
- Descripción
- Computer Science (One Dimensional Arrays) Computer Science Test sobre One-Dimensional Arrays, creado por José Miguel Gallardo el 12/02/2015.
- Autor
- José Miguel Gallardo
- Idioma
- English
- Visitas
- 12
- Etiquetas
- Valoración
- Aún sin valoraciones Valora este test