-
Which of the following statements is false?
-
- In statically types languages, each variable in program has a fixed type
- In un-typed languages, values do not have any types
- In dynamically typed languages, variable have no types
- In all statically typed languages, each variable in program is associated with value of only a single type during the execution of the program
- In statically types languages, each variable in program has a fixed type
Correct Option: C
(a) True for statically typed languages where each variable has fixed type. Similarly (d) is also correct.
(b) True, in un-typed languages types of values are not defined.
But option (c) is false, since in dynamically typed language variables have dynamically changing types but not that they have no type. Hence (c) is correct option.