PFC-quiz6 - thi trc nghim PFC Quiz6 slot 23(10 Ghi ch Nhng cu khng ghi im c hiu l 1 im 6.01(0.5 im Which of the following correctly declares an

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Đ 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?
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/05/2012 for the course PFC 101 taught by Professor Abc during the Spring '11 term at Hanoi University of Technology.

Page1 / 4

PFC-quiz6 - thi trc nghim PFC Quiz6 slot 23(10 Ghi ch Nhng cu khng ghi im c hiu l 1 im 6.01(0.5 im Which of the following correctly declares an

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online