Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. True/False _(a) Not all elements of an array must be the same type. --(b) We

ID: 3869859 • Letter: 1

Question

1. True/False _(a) Not all elements of an array must be the same type. --(b) We can define a data type with a class, i.e. the objects of a class have the same type name as the class name (c) A class can have two properties with the same name. (d) A class can have two properties with the same type _(e) The last element in an array of length x is at index x-1. () Objects cannot be passed into a function as parameters. (g) An array element is accessed with parentheses. (h) All objects of a class have the same properties, but the values of those properties may be different. (0) A class has to have at least one property defined

Explanation / Answer

1. False

All elements of the array has to be of same type for most of the languages except for Python, etc.

2. True

To create an object we use class name only as type for it.

3. False

Since there will be ambiguity on which property to choose if we have them with same name, we can't have.

4. True

Variables names should be unique but not data types.