Home » Programming & Data Structure » Programming and data structure miscellaneous » Question

Programming and data structure miscellaneous

Programming & Data Structure

  1. Which of the following statements is false?
    1. In statically types languages, each variable in program has a fixed type
    2. In un-typed languages, values do not have any types
    3. In dynamically typed languages, variable have no types
    4. In all statically typed languages, each variable in program is associated with value of only a single type during the execution of the program
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.



Your comments will be displayed only after manual approval.