📖 generic · 12th TN - English Medium · COMPUTER SCIENCE · Page 27definition

SCOPING

Chapter 9: Front Matter · COMPUTER SCIENCE

SCOPING The process of binding a variable name with an object is called mapping. = (equal to sign) is used in programming languages to map the variable and object. Note Programming languages keeps track of all these mappings with namespaces. Namespaces are containers for mapping names of variables to objects .

You can think of them as dictionaries, containing list of words and its meanings. The words are mapped with its meaning in dictionaries whereas names are mapped with objects (name = object) in programming language. This allows access to objects by names you choose to assign to them. In the following example, a is first mapped to the integer .

In this case, a is the variable name, while the integer value is the object. Then, b is set equal to a . This actually means that b is now bound to the same integer value as a , which is . .

a:= . b:=a 12th Computer Chapter - - Mapping

Related topics

Have a question about this topic?

Get an AI answer grounded in your actual textbook — with the exact page reference.

Ask AI about this topic →