PAGETURNER
BOX
REVIEW
GO
The default method for argument passing in C
is referred to as call by ____________
Answer here:
That is correct!
You've got it on the 2nd try.
You've finally got it!
Sorry, try again.
No, try one more time.
Please review Topic 2: Arrays as Arguments
FORGET1
The correct answer is value . Arrays are an exception;
they have their addresses rather than values passed.
Based on the following declaration:
char name[17];
int february[28];
float matrix[3][15];
which references (indexings) are wrong?
a c = name[17];
b name[0] = 'K';
c february[28]= temperature;
d force = matrix[2][14];
e power = matrix[2][-1];
f a, c, and e
g d and e
Select one:
That is correct!
You've got it on the 2nd try.
You've finally got it!
Sorry, try again.
No, try one more time.
Please review Topic 3: Array Indexing
FORGET2
The correct choice is c , since the upper bound on the index in name
is 16, the upper bound on february is 27 and -1 is an illegal subscript.
Please examine the matrix ar_2d[3][3] with the
physical arrangement as shown below.
--------------
| 3 | -4 | 0 |
--------------
| 0 | 3 | 0 |
--------------
| 0 | 0 | -7 |
--------------
Which initialization statement will cause such a
physical arrangement?
a int ar_2d[][3] = {{ 3, -4, 0},{0,3,0}, { 0,0,-7}};
b float ar_2d[3][3] ={3, -4, 0, 0, 3, 0, 0, 0, -7};
c int ar_2d[3][] = {{ 3, -4, 0},{0,3,0}, {0, 0,-7}};
Select one:
That is correct!
You've got it on the 2nd try.
You've finally got it!
Sorry, try again.
No, try one more time.
Please review Topic 4: Array Initialization
FORGET3
The correct choice is a , in multidimensional array declarations, one needs
to specify the right index only. Choice b is wrong because the entries are
integers. Choice c is wrong because only the left index was specified.