Q.What are Actual and Formal parameters?
Ans.:-Actual parameters:-The parameters which are mentioned in the function call are known as actual parameter.They are the values which are actually same to the called function.Actual parameters can be written in the form of variables,constant or expression for any function calls that return a value.
Formal parameters:-The parameters which are mentioned in the function definition part are called formal parameter.They are used just to hold the values that are sent by the calling function.The formal parameters are simply like other local variables of the function which are created when the function calls start and are destroyed when the function ends.
Q.:-What is Boolean Algebra?Explain with suitable example.
Ans.:-Boolean algebra is an algebra of logic.It is one of the most basic tools to analyze and design logic circuits.Boolean Algebra was developed by George Boole in 1854.As boolean algebra is applied to design of switching circuits,it is also known as switching algebra.It is the mathematics of representing the operations performed on the switching circuits in the form of expressions.
It is an algebraic system that is specially evolved for handling the binary number system.
It deals with the binary number system,the variables used in the boolean expressions can only have two values 0 and 1.
For example,consider the following Boolean expression:-
P+Q=R
In this expression,the variables P,Q and R can take only one of the two values 0 and 1.The variables used in the Boolean expression are called Boolean variables.