Computer Programming Test

profiletarn_a

An “array” is defined a collection of data contained in a single variable 
name. Each element of the array can be reference by a numerical index.

In this example the syntax for defining an array is as follows:

ARRAY=arrayname{element1,elment2,element3,…} 

Consider these three arrays:

ARRAY=daysofweek{“Sun”,“Mon”,“Tue”,“Wed”,“Thu”,“Fri”,“Sat”}
ARRAY=favoriteNums{3,4,5,6,7}

ARRAY=Nums{7,11,13,15,18}

You are using a certain computer language that allows you to reference 
the first element (“Sun”) of the above “daysofweek” array by using the 
following syntax: “daysofweek[0]”. 

What would be the value of “favoriteNums[3]”.

 

A Thu
B Wed
C 5
D 6
E 7
F 3

    • 11 years ago
    • 20
    Answer(1)

    Purchase the answer to view it

    blurred-text
    NOT RATED
    • attachment
      maak.docx