{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

# PFC-quiz6 - thi trc nghim PFC Quiz6 slot 23(10 Ghi ch Nhng...

This preview shows pages 1–3. Sign up to view the full content.

Đ thi tr c nghi m PFC- Quiz6 - slot 23 (10') Ghi chú: Nh ng câu không ghi đi m đ c hi u là 1 đi m. ượ 6.01. (0.5 đi m) Which of the following correctly declares an array? int anarray[10]; đúng int anarray; anarray{10}; array anarray[10]; 6.02. (0.5 đi m) What is the index number of the last element of an array with 29 elements? 29 28 đúng 0 Programmer-defined 6.03. (0.5 đi m) Which of the following is a two-dimensional array? array anarray[20][20]; int anarray[20][20]; đúng int array[20, 20]; char array[20]; 6.04. (0.5 đi m) Which of the following correctly accesses the seventh element stored in foo, an array with 100 elements? foo[6]; đúng foo[7]; foo(7); foo 6.05. (0.5 đi m) Which of the following gives the memory address of the first element in array foo, an array with 100 elements? foo[0]; foo; đúng &foo; foo[1]; 6.06. What value does testarray[2][1][0] in the sample code below contain?

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
int testarray[3][2][2] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}; 3 5 7 9 11 đúng 6.07. Consider the following code: int i,j; int ctr = 0; int myArray[2][3];
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}