St. Britto Hr. Sec. School - Madurai
12th Computer Science Weekly Test - 1 ( Scoping )-Aug 2020
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Define Local scope with an example.
-
Identify the scope of the variables in the following pseudo code and write its
output
color:= Red
mycolor( ):
b:=Blue
lue
myfavcolor( ):
g:=Green
printcolor, b, g
myfavcolor( )
printcolor, b
mycolor( )
print color -
-
Write a short note on types of variable scope.
-
How the changes inside the function can’t affect the variable on the outside of the function in unexpected ways?
-
-
Write a note on module.
-
How will you ensure the principle of data encapsulation in object - oriented programming?
-
-
Explain the concept access control.
-
Write any Five Characteristics of Modules
-
-
Explain the types of scopes for variable or LEGB rule with example.
-
Write any five benefits in using modular programming.