GoConqr has a new look! Let us know what you think.

Quiz

One-Dimensional Arrays

José Miguel Gallardo 4 questions

Take the quiz

Questions in this quiz (4)

  1. 1Which of the following is a One Dimensional array?
    1. Aint array[n];
    2. Bint array[n][n];
    3. Cint array;
  2. 2In what situation would you need a one dimensional array?
    1. AWhen I need to arrange a set of values and access them with ease.
    2. BWhen I need one variable to save one value.
    3. CWhen I need to write "Hello World"
  3. 3Choose the right way to create an array of size 4
    1. Aint a[4];
    2. Bint a[3];
    3. Cint a[n];
    4. Dint a[n-1];
  4. 4Which of the following codes gives a value of 2 on the third position of an array of size 3
    1. Aa[2]=3;
    2. Ba[1]=3;
    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.
Language
English
Views
12
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?