2
AssignmentMultiple Choice

Use Conditional Statements

Question 2 • VA-Information Technology Fundamentals B

Why are arrays considered to be immutable?

Answer
A
because an array can hold a combination of different object types
B
because the object type of an array cannot be changed after it is created
C
because an array usually has two or more dimensions
D
because an array’s object type can be changed over and over

Explanation

An array is considered immutable in this context because its object type is fixed when the array is created. It cannot later be changed to a different object type, which is why choice B is correct. The number of dimensions and whether the array holds mixed types do not explain this immutability.

AI-written and checked against the verified answer.