XII STANDARD COMPUTER SCIENCE
Scoping
1. Which operator is used in programming language to map the variable and object?
(a) . (b)=
(c): : (d) ;
2. Which act as containers to map variables to objects?
(a)mapping (b) dictionary
(c)namespace (d) pointers
3. The scope of a variable is that part of the code where it?
(a) Comment (b) constructor
(c) Data Abstraction (d) Structure
4. The process of combining different pieces of information to create an object is
(a) Is acting (b) is working
(c) is visible (d) is executing
5. The rule used to decide the order in which the scopes are searched
(a) LEGB (b) LGEB
(b) LBGE (d) LEBG
6. A variable that can be accessed inside or outside of all functions in a program
(a)Local (b) Global
(c) Enclosed (d) Built-in
7. The inner function can also access the variable of the outer function
(a) Local scope (b)Enclosed scope
(c) Library file (d) Global
8. A part of a program is known as
(a) Module (b) Scope
(c)Library file (d) Global
9. Procedures and subroutines and functions are examples of
(a) modules (b) scope
(c)files (d) access control
10. Which principle is involved in arrangement of private variables and public
methods?
(a) Data encapsulation (b) Data security
(c) Data Hiding (d) Data Abstraction