NAME: ________________________
← C++ Programming in easy steps: Beginners 5 Part 2 Test
3 Written Questions
3 Multiple Choice Questions
- The special ............ null character allows an array with a text string, to be counted in the syntax.
- If an array had:
[3] time, [2] depth, [2] height and a [4] width,
how many elements would there be? ie: 3 x 2 x 2 x 2
(Note: Feel free to use a calculator.) - To reference a value from an array, with multiple indices (index), The grids dimensions need to be referenced with numbers starting at zero.
If the array name was "coords", and you needed to reference "element 2", how would you reference that number?
ie: ................................ {{ 1, 2, 3 } , { 4, 5, 6 }} ;
(Note: the data type is an integer.)
2 True/False Questions
-
6 → The special ............ null character allows an array with a text string, to be counted in the syntax.
-
int coords[0] [0] = → (index), The grids dimensions need to be referenced with numbers starting at zero.
If the array name was "coords", and you needed to reference "element 1", how would you reference that number?
ie: ................................ {{ 1, 2, 3 } , { 4, 5, 6 }} ;
(Note: the data type is an integer.)
Regenerate Test