Quiz
One-Dimensional Arrays
Questions in this quiz (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;
Information
- Description
- Computer Science Computer Science (One Dimensional Arrays) Quiz on One-Dimensional Arrays, created by José Miguel Gallardo on 12/02/2015.
- Author
- José Miguel Gallardo
- Language
- English
- Views
- 12
- Tags
- Rating
- No ratings yet Rate this quiz