Answer the following statements true (T) or false (F)

1. When a program is executed, array element indices are checked for validity—all indices must be greater than or equal to 0 and less than or equal to the length of the array.
2. ComboBox property ItemSource specifies the source of the items displayed in the ComboBox.
3. String method Replace receives two arguments—the substring that should be replaced throughout the original String and the replacement substring.
4. To pass an array argument to a method, specify the name of the array followed by empty parentheses.
5. An individual element of an integer array is passed to a method by value.

1. False: When a program is executed, array element indices are checked for validity—all indices must be greater than or equal to 0 and less than the length of the array.
2. False. ComboBox property DataSource specifies the source of the items displayed in the ComboBox.
3. True.
4. False. To pass an array argument to a method, specify the name of the array without using parentheses.
5. True.
False. Arrays are passed to methods by reference; therefore, changes made within the method modify the original array itself.

Computer Science & Information Technology

You might also like to view...

The ________ is used to set the name of the Form file.

a) File Name property b) Solution Explorer c) startup object d) Name property

Computer Science & Information Technology

A _________ is a set of guidelines designed to help professionals thread their way through a sometimes tangled web of ethical on-the-job decisions.

A. non-compete clause B. confidentiality statement C. proprietary information D. code of ethics

Computer Science & Information Technology