State whether the following are true or false. If the answer is false, explain why.

1) An array can store many different types of values.
2) An array subscript should normally be of data type float.
3) If there are fewer initializers in an initializer list than the number of elements in the ar ray, the remaining elements are initialized to the last value in the initializer list.
4) It’s an error if an initializer list has more initializers than there are elements in the array.
5) An individual array element that is passed to a function and modified in that function will contain the modified value when the called function completes execution.


1) False. An array can store only values of the same type.
2) False. An array subscript should be an integer or an integer expression.
3) False. The remaining elements are initialized to zero.
4) True.
5) False. Individual elements of an array are passed by value. If the entire array is passed to a function, then any modifications to the elements will be reflected in the original.

Computer Science & Information Technology

You might also like to view...

The following data sequence is to be MFM encoded for recording on a diskette. Draw the resulting waveform that would be presented to the write head.

10101001100001111 What will be an ideal response?

Computer Science & Information Technology

A common problem with inkjet printers is the tendency for the ____________ to dry out when the printer is not used, even for a relatively short time.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

A DBMS feature known as __________ ensures that transactions are updated in an orderly manner by establishing update rules.

A. serializability B. optimization C. prioritization D. normalization

Computer Science & Information Technology

A user is experiencing slowness while opening documents from the hard drive. Which of the following tools should a technician use as a FIRST step in solving this problem?

A. Defrag B. Event Viewer C. Performance Monitor D. Regedit

Computer Science & Information Technology