Programming Concepts Questions and Answers

What is a Compiler? Explain the compiler design phases?

A compiler is a plan or a presentation in computer that converts the the origin of the rules and principles transcripts in a the form of a system of symbols and and rules that are used for communication with or between computers. The highly usual and conventional purpose for expecting the alteration of the origin of the rules and laws is to produce a feasible yet workable system of services and opportunities.

Its inclined to fulfill either a few or the entire list of functions that include a study or interpretation related to lexicon to perform preliminary processing on the data, to examine the information closely, interpretation according to the science of semantics, a series of rules of conduct or procedure and the process used to make a system of rules and laws.

In order to reduce the complexity of the plan of a compiler and the system of formation, the compiler is carried out in several stages. Furthermore, it might also contain stages that are as effective and functional as possible in order to make effective and successfully designed plans or systems.

What Is Inheritance?

Inheritance mainly suggests a certain object to be able to inherit the characteristics from any other objects. In a more concrete terms, the object is something that could pass on its state as well as behaviors to the children. For the inheritance to work, the objects need to have characteristics that are common with each other.

For instance, simply put that you make a class known as the “human”, which is representing your physical characteristics. Thus, it is a generic class that could surely represent you. It is a state that simply keeps a good track of the good things just like he number of arms, legs as well as the blood type. It has the behaviors of sleeping, walking and eating. The “human” is also a good one for getting the entire sense of what makes everyone to be the same, yet if you could not, simply tell them about the differences. If that’s the case, they could simply make new types of classes known as the Man and the Woman. The state as well as the behaviors of such classes would definitely differ from each other in many ways except for those that they inherit from the HUMAN.

It only means that inheritance mainly lets you encompass the class’ state of the parent as well as the behavior in the child. So, the class of the child could then extend the state as well as the behaviors reflecting the differences that it represents.

What is a Master Page?

When using ASP.NET in developing a website, the master page is a feature enabling the developer to define the common structure as well as internet markup elements for your website. It actually includes footers, headers, style definitions or even navigation bars. The master page could be shared up by any pages into your website and these are known as the content pages. The only thing is that, it will have the need to remove the duplicate code for the shared elements that are into your website.

Moreover, the master page is a very useful kind of mechanism in the ASP.NET in order to make a uniform layout for the entire pages. It could simply contain about one or more placeholders where the actual content is being restored. The master page will always be the same and it will provide a good kind of scaffolding for the entire pages that you have. For the reason that the master page is always similar, it mainly defines the feel and the look of the entire pages upon your website. The rest is being saved into the content placeholders that would merge the master pages and the entire page. This is simply how master pages work on a developer’s point of view.