MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

DATA STRUCTURES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What does the term immutable mean?
A
unable to be changed
B
unable to speak
C
can be modified
D
can be increased in size
Explanation: 

Detailed explanation-1: -: not capable of or susceptible to change.

Detailed explanation-2: -In object-oriented and functional programming, an immutable object (unchangeable object) is an object whose state cannot be modified after it is created. This is in contrast to a mutable object (changeable object), which can be modified after it is created.

Detailed explanation-3: -Immutable refers to something that cannot be changed or modified. Hence, immutable objects are ones that cannot be modified after they have been created. This is an object whose internal state does not change after it has been created completely.

Detailed explanation-4: -An immutable value is one whose content cannot be changed without creating an entirely new value. In JavaScript, primitive values are immutable-once a primitive value is created, it cannot be changed, although the variable that holds it may be reassigned another value.

Detailed explanation-5: -Share to Facebook Share to Twitter. Definition(s): Data that can only be written, not modified or deleted.

There is 1 question to complete.