0% found this document useful (0 votes)
12 views1 page

CHPT 3

The document consists of a series of multiple-choice questions related to computer science concepts, specifically focusing on scoping, variable access, and programming principles. Key topics include the use of operators for mapping variables to objects, the definition of variable scope, and the principles of data encapsulation and abstraction. The questions also cover the characteristics of local and global variables, as well as the relationship between functions and their scopes.

Uploaded by

msharur4
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views1 page

CHPT 3

The document consists of a series of multiple-choice questions related to computer science concepts, specifically focusing on scoping, variable access, and programming principles. Key topics include the use of operators for mapping variables to objects, the definition of variable scope, and the principles of data encapsulation and abstraction. The questions also cover the characteristics of local and global variables, as well as the relationship between functions and their scopes.

Uploaded by

msharur4
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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

You might also like