Indicate when each of the following bindings takes place in Python (language des
ID: 3855369 • Letter: I
Question
Indicate when each of the following bindings takes place in Python (language design time, language implementation time, compile time, link time, load time, or run time). If more than one time is possible, choose the latest possible time. (a) Binding of the plain integer type to a specific number of bytes (i.e., the decision to use a specific number of bytes to store a plain integer value) (b) Binding of a variable to a specific type (c) Binding of the * operator to a particular operation (d) Binding of an operator to a particular associativity (left or right)Explanation / Answer
(a) The answer would be compile time. This is because the actual memory is allocated at this time when the integer value is already known or declared.
----------
(b) This happens during run time. Depending on the value to which the variable is to be bound, the type is decided during runtime.
---------
(c) In an expression, the decision of * is decided during compile time depending on the other operators in the same expression.
--------
(d) Associativity: This is always fixed for example ** operator has right associativity all the time. These are decided during language design time.