Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

How is binding important in transforming source code? What are the tools and tra

ID: 657643 • Letter: H

Question

How is binding important in transforming source code? What are the tools and transformations that create running programs? Compare and contrast compiled, interpreted and iterative (C#) languages.

There may be more than one definition for a given name, and each occurrence of the name must be bound appropriately. What is this concept known as? What is namespace refinement? What are the block constructs in ML, Prolog and Java (and other C-like languages) that contain definitions? What is this concept known as?

Explanation / Answer

================================================================================
How is binding important in transforming source code?

Ans:
   Binding: Binding means connecting the function call to a function implementation.

  
   There are two types of binding.
   1.Static binding :

       Static binding is done at compile time when a function is called in order to match it with the definition.
      
   2.Dynamic binding :
       Dynamic binding is at run time where we can specify that the compiler matches a
       function call with the correct function definition at run time.

Hence, Binding is important while transforming source code to executable program.

================================================================================  
What are the tools and transformations that create running programs?
Ans:
   The tools which transforms source code to executable program is called compilers.

   For exmple running C++ gcc compiler is used
               running JAVA programs jdk is used.
================================================================================
Compare and contrast compiled, interpreted and iterative (C#) languages.
Ans:
   Compiled Languages:
   -------------------

       In a compiled language, source is reduced to a set of machine-specific instructions
       before being saved as an executable file.
      
       Ex:
           C, C++
      
   Interpreted Languages:
   ----------------------

       In interpreted languages, source code is saved in the same format that we entered.
      
       Ex:
           Python
  

   Compiled programs generally run faster than interpreted ones because interpreted programs must be reduced to
   machine instructions at runtime.
  
   Iterative Languages:
   --------------------

       Iterative languages are built around or offering generators.
       Example :
           C#
================================================================================  

There may be more than one definition for a given name, and each occurrence of the name must be bound appropriately.
What is this concept known as?
Ans:
   Overriding.

   The functions with more same name and with same signature and return type is called as overriding.
   Generally the derived classed can have the overrided functions at that time.
   Using dynamic binding the compiler chooses which function to execute at run time.
================================================================================  
What is namespace refinement?
Ans:

   Most namespace constructs have some way to   allow part of the namespace to be kept private