Question: What is the difference between early binding and late binding?

  1. Early binding is when a variable is assigned a value when a scope is created. Late binding is when a variable is assigned a value after a scope is exited
  2. Early binding is when a variable is assigned a value when the program starts. Late binding is when a variable is assigned after the program is running
  3. There is no difference. In both cases, variables are assigned values when a program has completed startup and is running
  4. Early binding is when a variable is assigned its value at compile time. Late binding is when a variable is assigned a value at run time

Answer: The correct answer of the above question is Option D:Early binding is when a variable is assigned its value at compile time. Late binding is when a variable is assigned a value at run time