<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>TN Board 12th Computer Science Important Questions Chapter 3 &#8211; Samacheer Kalvi</title>
	<atom:link href="https://samacheer-kalvi.com/tag/tn-board-12th-computer-science-important-questions-chapter-3/feed/" rel="self" type="application/rss+xml" />
	<link>https://samacheer-kalvi.com</link>
	<description>Tamilnadu State Board Text Books Solutions for Class 3 to 12</description>
	<lastBuildDate>Thu, 07 Oct 2021 06:07:26 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.5</generator>
<site xmlns="com-wordpress:feed-additions:1">196241473</site>	<item>
		<title>TN Board 12th Computer Science Important Questions Chapter 3 Scoping</title>
		<link>https://samacheer-kalvi.com/tn-board-12th-computer-science-important-questions-chapter-3/</link>
					<comments>https://samacheer-kalvi.com/tn-board-12th-computer-science-important-questions-chapter-3/#respond</comments>
		
		<dc:creator><![CDATA[Prasanna]]></dc:creator>
		<pubDate>Thu, 07 Oct 2021 05:30:21 +0000</pubDate>
				<category><![CDATA[Important Questions]]></category>
		<category><![CDATA[Scoping]]></category>
		<category><![CDATA[TN Board 12th Computer Science Important Questions Chapter 3]]></category>
		<guid isPermaLink="false">https://samacheer-kalvi.com/?p=46265</guid>

					<description><![CDATA[TN State Board 12th Computer Science Important Questions Chapter 3 Scoping Question 1. What is meant by built-in scope? Answer: Any variable or module which is defined in the library functions of a programming language has Built-in scope or module scope. Normally only functions or modules come along with the software, as packages. Therefore they will come under Built-in scope. Question 2. What is a modular programming and write the examples? Answer: A program can be defined into small functional modules that work together to get the outputThe process of sub dividing a computer program into separate sub programs is called modular programming. Eg: Procedures, Subroutines and Functions. Question 3. What is a life time variable? Answer: The duration for which a variable is alive is called its life time of the variable. Question 4. What is a Module? Answer: A module is a part of a program. Programs are composed of one or more independently developed modules. Modules work perfectly on individual level and can be integrated with other modules. Question 5. Write the types of variable scope. Answer: There are four types of variable scope, they are Local scope Enclosed scope Global scope Built-in-scope Question 6. What is &#8230;]]></description>
										<content:encoded><![CDATA[<h2>TN State Board 12th Computer Science Important Questions Chapter 3 Scoping</h2>
<p>Question 1.<br />
What is meant by built-in scope?<br />
Answer:<br />
Any variable or module which is defined in the library functions of a programming language has Built-in scope or module scope.</p>
<p>Normally only functions or modules come along with the software, as packages. Therefore they will come under Built-in scope.</p>
<p>Question 2.<br />
What is a modular programming and write the examples?<br />
Answer:<br />
A program can be defined into small functional modules that work together to get the outputThe process of sub dividing a computer program into separate sub programs is called modular programming.<br />
Eg: Procedures, Subroutines and Functions.</p>
<p><img decoding="async" src="https://samacheer-kalvi.com/wp-content/uploads/2021/08/Samacheer-Kalvi.png" alt="Samacheer Kalvi TN State Board 12th Computer Science Important Questions Chapter 3 Scoping" width="147" height="12" /></p>
<p>Question 3.<br />
What is a life time variable?<br />
Answer:<br />
The duration for which a variable is alive is called its life time of the variable.</p>
<p>Question 4.<br />
What is a Module?<br />
Answer:<br />
A module is a part of a program. Programs are composed of one or more independently developed modules.<br />
Modules work perfectly on individual level and can be integrated with other modules.</p>
<p>Question 5.<br />
Write the types of variable scope.<br />
Answer:<br />
There are four types of variable scope, they are</p>
<ol>
<li>Local scope</li>
<li>Enclosed scope</li>
<li>Global scope</li>
<li>Built-in-scope</li>
</ol>
<p><img decoding="async" src="https://samacheer-kalvi.com/wp-content/uploads/2021/08/Samacheer-Kalvi.png" alt="Samacheer Kalvi TN State Board 12th Computer Science Important Questions Chapter 3 Scoping" width="147" height="12" /></p>
<p>Question 6.<br />
What is the use of LEGB rule?<br />
Answer:<br />
The LEGB rule is used to decide the order in which the the scopes are to be searched for scope resolution.<br />
The scopes are listed bfclow in terms of hierarchy (highest to lowest).</p>
<p>Question 7.<br />
What is LEGB rule?<br />
Answer:<br />
LEGB rule means, scope also defines the order in which variables have to be mapped to the object in order to obtain the value.</p>
<p>Question 8.<br />
What is Access control?<br />
Answer:<br />
Access control is a security technique that regulates who or what can view Or use resources in a computing environment. It is a fundamental concept in security that minimizes risk to the object.</p>
<p><img decoding="async" src="https://samacheer-kalvi.com/wp-content/uploads/2021/08/Samacheer-Kalvi.png" alt="Samacheer Kalvi TN State Board 12th Computer Science Important Questions Chapter 3 Scoping" width="147" height="12" /></p>
<p>Question 9.<br />
Define<br />
(a) Private Members<br />
(b) Public Members<br />
(c) Protected Members<br />
Answer:<br />
(a) Private Members:<br />
Private members of a class are denied access from the outside the class. They can be handled only from within the class.</p>
<p>(b) Public Members:<br />
Public members are accessible from , outside the class. The object of the same class is required to invoke a public method.</p>
<p>(c) Protected Members:<br />
Protected Members of a class are accessible from within the class and are also available to its sub-classes.</p>
<p><img decoding="async" src="https://samacheer-kalvi.com/wp-content/uploads/2021/08/Samacheer-Kalvi.png" alt="Samacheer Kalvi TN State Board 12th Computer Science Important Questions Chapter 3 Scoping" width="147" height="12" /></p>
<p>Question 10.<br />
What are the hierarchy of scopes using LEGB rule?<br />
Answer:<br />
Local (L) &#8211; Defined inside class<br />
Enclosed (E) &#8211; Nested function concept<br />
Global (G) &#8211; Defined at the uppermost level<br />
Built-in (B) &#8211; Modules or Reserved names</p>
<p>Question 11.<br />
Explain the variable scope with examples.<br />
Answer:<br />
(i) Scope refers to the visibility of variables, parameters and functions.<br />
(ii) When you assign a variable with := to an instance (object), you are binding the variable to that instance. Multiple variables can be mapped to the same instance.<br />
(iii) Eg: a:=5, b:=a<br />
Here, a is first mapped to the integer 5. Here a is the variable name and 5 is the object.<br />
(iv) Then, b is set equal to a, this actually means that b is now bound to the same integer value as a, which is 5.<br />
(v) The scope of a variable is that part of the code where it is visible.<br />
Eg:<br />
Disp( ):<br />
a:=7<br />
(vi) When you try to display the value of a outside the procedure the program flags gives the error. So the life time of the variable is only till the end of the procedure.</p>
<p><img decoding="async" src="https://samacheer-kalvi.com/wp-content/uploads/2021/08/Samacheer-Kalvi.png" alt="Samacheer Kalvi TN State Board 12th Computer Science Important Questions Chapter 3 Scoping" width="147" height="12" /></p>
<p>Question 12.<br />
Write a simple example using LEGB rule?<br />
Answer:<br />
The LEGB rule is used to decide the order in which the scopes are to be searched for scope resolution. The scopes are listed below in terms of hierarchy (highest to lowest).<br />
1. X : =‘outer × variable’<br />
2. display ( ):<br />
3. X : = ‘inner × variable’<br />
4. display ( )<br />
When the above statements are executed the output will be printed as<br />
outer × variable<br />
inner × variable</p>
<p><img decoding="async" src="https://samacheer-kalvi.com/wp-content/uploads/2021/08/Samacheer-Kalvi.png" alt="Samacheer Kalvi TN State Board 12th Computer Science Important Questions Chapter 3 Scoping" width="147" height="12" /></p>
<p>Question 13.<br />
What is a scope?<br />
Answer:<br />
Scope refers to the visibility of variables, parameters and functions in one part of a program to another part of the same program.</p>
<p>Question 14.<br />
Why scope should be used for variable? State the reason.<br />
Answer:</p>
<ol>
<li>The scope of a variable is that part of the code where it is visible. Scope also defines the order in which variables have to be mapped to the object in order to obtain the value.</li>
<li>Variables are addresses (references or pointers), to an object in memory.</li>
</ol>
<p>Question 15.<br />
What is Mapping?<br />
Answer:<br />
The process of binding a variable name with an object is called Mapping; = (Equal to sign) is used in programming languages to map the variable and object.</p>
<p><img decoding="async" src="https://samacheer-kalvi.com/wp-content/uploads/2021/08/Samacheer-Kalvi.png" alt="Samacheer Kalvi TN State Board 12th Computer Science Important Questions Chapter 3 Scoping" width="147" height="12" /></p>
<p>Question 16.<br />
What do you mean by Namespaces?<br />
Answer:</p>
<ul>
<li>Programming languages keeps track of all these mappings with namespaces.</li>
<li>Namespaces are containers for mapping names of variables to objects.</li>
</ul>
<p>Question 17.<br />
How Python represents the private and protected Access specifiers?<br />
Answer:</p>
<ol>
<li>Private members of a class are denied access from the outside class. They can be handled only from within the class.</li>
<li>Protected members of a class are accessible from within the class and are also available to its sub-classes.</li>
</ol>
<p>Question 18.<br />
Define Local scope with an example.<br />
Answer:<br />
(i) The local scope refers to variables defined in current function.<br />
(ii) Always a function will first look up for a variable name in its local scope.<br />
Eg: Disp( ):<br />
a:=10<br />
print a<br />
Disp( )<br />
(iii) Here a is declared as local scope variable. And displays its value is 10.</p>
<p><img decoding="async" src="https://samacheer-kalvi.com/wp-content/uploads/2021/08/Samacheer-Kalvi.png" alt="Samacheer Kalvi TN State Board 12th Computer Science Important Questions Chapter 3 Scoping" width="147" height="12" /></p>
<p>Question 19.<br />
Define Global scope with an example.<br />
Answer:<br />
A variable which is declared outside of all the functions in a program is called as global scope.<br />
A global variable can be accessed inside or outside of all the functions in a program.<br />
Eg: a:=70<br />
Disp( )<br />
a:=10<br />
Print a<br />
Disp 1( ):<br />
Print a</p>
<p>Here variable a:=10 is declared inside the function, so it is known as local scope. And variable a:=70 is declared outside the function, so it is known as global scope.</p>
<p>Question 20.<br />
Define Enclosed scope with an example.<br />
Answer:<br />
A variable which is declared inside a function which contains another function definition within it, the inner function can also access the variable of the outer function. This scope is called enclosed scope.</p>
<p>When a compiler or interpreter search for a variable in a programs, it first search local scope, and then search enclosing scopes.<br />
Eg: Disp( )<br />
a:=10<br />
Disp 1( ):<br />
Print a<br />
Disp 1( ):<br />
print a<br />
Disp( )<br />
Here, Disp1( ) is a member of Disp( ). So the inner function can also access the variable of the outer function.</p>
<p><img decoding="async" src="https://samacheer-kalvi.com/wp-content/uploads/2021/08/Samacheer-Kalvi.png" alt="Samacheer Kalvi TN State Board 12th Computer Science Important Questions Chapter 3 Scoping" width="147" height="12" /></p>
<p>Question 21.<br />
Why access control is required?<br />
Answer:</p>
<ol>
<li>Access control is required in object oriented programming languages.</li>
<li>Access control is a security technique that regulates who or what can view or use resources in computing environment.</li>
<li>In other words access control is a selective restriction of access to data.</li>
<li>Object oriented languages control the access to class members by public, private and protected keywords.</li>
</ol>
<p>Question 22.<br />
Identify the scope of the variables in the following pseudo code and write its output.<br />
Answer:<br />
color:= Red<br />
mycolor( ):<br />
b:=Blue<br />
myfavcolor( ):<br />
g:=Green<br />
printcolor, b, g<br />
myfavcolor( )<br />
printcolor, b<br />
mycolor( )<br />
printcolor<br />
g &#8211; Local variable<br />
b &#8211; Enclosed variable<br />
color &#8211; Global variable<br />
Output:<br />
Red blue Green<br />
Red blue<br />
Red</p>
<p><img decoding="async" src="https://samacheer-kalvi.com/wp-content/uploads/2021/08/Samacheer-Kalvi.png" alt="Samacheer Kalvi TN State Board 12th Computer Science Important Questions Chapter 3 Scoping" width="147" height="12" /></p>
<p>Question 23.<br />
Explain the types of scopes for variable or LEGB rule with example.<br />
Answer:<br />
There are four types of variable scope.<br />
(i) Local scope:<br />
The local scope refers to variables defined in current function. Always a function will first look up for a variable name in its local scope.<br />
Eg: Disp( ):<br />
a:=10<br />
print a<br />
Disp( )<br />
Here a is declared as local scope variable.<br />
And displays its value is 10.</p>
<p>(ii) Global scope:<br />
A variable which is declared outside of all the functions in a program is called as global scope.<br />
A global variable can be accessed inside or outside of all the functions in a program.<br />
Eg: a:=70<br />
Disp( )<br />
a:=10<br />
Print a<br />
Disp 1( ):<br />
Print a<br />
Here variable a:=10 is declared inside the function, so it is known as local scope. And variable a:=70 is declared outside the function, so it is known as global scope.</p>
<p>(iii) Enclosed scope:<br />
A variable which is declared inside a function which contains another function definition within it, the inner function can also access the variable of the outer function. This scope is called enclosed scope.<br />
When a compiler or interpreter search for a variable in a programs, it first Search local scope, and then search enclbsing scopes.<br />
Eg: Disp( )<br />
a:=10<br />
Disp1( ):<br />
Print a<br />
Disp1( ):<br />
print a<br />
Disp( )<br />
Here, Disp1( ) is a member of Disp( ). So the inner function can also access the variable of the outer function.</p>
<p>(iv)Built-in scope:<br />
The built-in scope has all names that are pre-loaded into the program scope when we start the compiler.<br />
Any variable or module which is defined in the library functions of a programming languages has built-in scope.<br />
Eg: Library files, Functions, or modules come along with the software, they will ’ come under built in scope.</p>
<p><img decoding="async" src="https://samacheer-kalvi.com/wp-content/uploads/2021/08/Samacheer-Kalvi.png" alt="Samacheer Kalvi TN State Board 12th Computer Science Important Questions Chapter 3 Scoping" width="147" height="12" /></p>
<p>Question 24.<br />
Write any Five Characteristics of Modules.<br />
Answer:<br />
The following are the desirable characteristics of a module.</p>
<ol>
<li>Modules contain instructions, processing logic, and data.</li>
<li>Modules can be separately compiled and stored in a library.</li>
<li>Modules can be included in a program.</li>
<li>Module segments can be used by invoking a name and some parameters</li>
<li>Module segments can be used by other modules.</li>
</ol>
<p>Question 25.<br />
Write any five benefits in using modular programming.<br />
Answer:<br />
The benefits of using modular programming include:</p>
<ol>
<li>Less code to be written.</li>
<li>A single procedure can be developed for reuse, eliminating the need to retype the code many times.</li>
<li>Programs can be designed more easily because a small team deals with only a small part of the entire code.</li>
<li>Modular programming allows many programmers to collaborate on the same application.</li>
<li>The code is stored across multiple files.</li>
<li>Code is short, simple and easy to understand.</li>
<li>Errors can easily be identified, as they are localized to a subroutine or function.</li>
<li>The same code can be used in many applications.</li>
<li>The scoping of variables can easily be controlled.</li>
</ol>
<p><img decoding="async" src="https://samacheer-kalvi.com/wp-content/uploads/2021/08/Samacheer-Kalvi.png" alt="Samacheer Kalvi TN State Board 12th Computer Science Important Questions Chapter 3 Scoping" width="147" height="12" /></p>
<p><span style="color: #0000ff;">Hands On Practice (Tb. P. No. 28):</span></p>
<p>Question 1.<br />
Observe the following diagram and Write the pseudo code for the following:<br />
Answer:</p>
<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-46305" src="https://samacheer-kalvi.com/wp-content/uploads/2021/10/TN-State-Board-12th-Computer-Science-Important-Questions-Chapter-3-Scoping-1.png" alt="TN State Board 12th Computer Science Important Questions Chapter 3 Scoping 1" width="229" height="336" srcset="https://samacheer-kalvi.com/wp-content/uploads/2021/10/TN-State-Board-12th-Computer-Science-Important-Questions-Chapter-3-Scoping-1.png 229w, https://samacheer-kalvi.com/wp-content/uploads/2021/10/TN-State-Board-12th-Computer-Science-Important-Questions-Chapter-3-Scoping-1-204x300.png 204w" sizes="(max-width: 229px) 100vw, 229px" /></p>
<p>sum( ) :<br />
num 1 := 20<br />
sum1 ( ) :<br />
num 1 := num 1 + 10<br />
sum2 ( ) :<br />
num 1 := num 1 + 10<br />
sum2( ):<br />
sum1 ( ):<br />
num1 :=10<br />
Sum( ) :<br />
print num 1</p>
<p><img decoding="async" src="https://samacheer-kalvi.com/wp-content/uploads/2021/08/Samacheer-Kalvi.png" alt="Samacheer Kalvi TN State Board 12th Computer Science Important Questions Chapter 3 Scoping" width="147" height="12" /></p>
<p><span style="color: #0000ff;">Choose the best answer:</span></p>
<p>Question 1.<br />
Normally every variable defined in a program has:<br />
(a) Global scope<br />
(b) Local scope<br />
(c) Enclosed scope<br />
(d) Built-in scope<br />
Answer:<br />
(a) Global scope</p>
<p>Question 2.<br />
Which sign is used in programming languages to map the variable and object?<br />
(a) +<br />
(b) &#8211;<br />
(c) :=<br />
(d) /<br />
Answer:<br />
(c) :=</p>
<p>Question 3.<br />
How many type of scope variables available in python language?<br />
(a) 2<br />
(b) 3<br />
(c) 4<br />
(d) 5<br />
Answer:<br />
(c) 4</p>
<p><img decoding="async" src="https://samacheer-kalvi.com/wp-content/uploads/2021/08/Samacheer-Kalvi.png" alt="Samacheer Kalvi TN State Board 12th Computer Science Important Questions Chapter 3 Scoping" width="147" height="12" /></p>
<p>Question 4.<br />
Match the following:</p>
<table border="2">
<tbody>
<tr>
<td width="156">(i) Local</td>
<td width="162"> (A) Nested</td>
</tr>
<tr>
<td width="156">(ii) Enclosed</td>
<td width="162"> (B) Modules</td>
</tr>
<tr>
<td width="156">(iii) Global</td>
<td width="162"> (C) Inside</td>
</tr>
<tr>
<td width="156">(iv) Built in</td>
<td width="162"> (D) Uppermost</td>
</tr>
</tbody>
</table>
<p>(a) (i) &#8211; B, (ii) &#8211; C, (iii) &#8211; A, (iv) &#8211; D<br />
(b) (i) &#8211; C, (ii) &#8211; A, (iii) &#8211; D, (iv) &#8211; B<br />
(c) (i) &#8211; B, (ii) &#8211; A, (iii) &#8211; D, (iv) &#8211; C<br />
(d) (i) &#8211; C, (ii) &#8211; D, (iii) &#8211; B, (iv) &#8211; A<br />
Answer:<br />
(b) (i) &#8211; C, (ii) &#8211; A, (iii) &#8211; D, (iv) &#8211; B</p>
<p>Question 5.<br />
Match the following:</p>
<table border="2">
<tbody>
<tr>
<td width="210">(i) Access control</td>
<td width="204">(A) Outside the class</td>
</tr>
<tr>
<td width="210">(ii) public Members</td>
<td width="204">(B) Within the class</td>
</tr>
<tr>
<td width="210">(iii) Private Members</td>
<td width="204">(C) Security technique</td>
</tr>
<tr>
<td width="210">(iv) Protected Members</td>
<td width="204">(D) Denied outside the class</td>
</tr>
</tbody>
</table>
<p>(a) (i) &#8211; C, (ii) &#8211; A, (iii) &#8211; D, (iv) &#8211; B<br />
(b) (i)- C, (ii) &#8211; B, (iii) &#8211; D, (iv) &#8211; A<br />
(c) (i) &#8211; B, (ii) &#8211; D, (iii) &#8211; C, (iv) &#8211; A<br />
(d) (i) &#8211; B, (ii) &#8211; C, (iii) &#8211; A, (iv) &#8211; D<br />
Answer:<br />
(a) (i) &#8211; C, (ii) &#8211; A, (iii) &#8211; D, (iv) &#8211; B</p>
<p><img decoding="async" src="https://samacheer-kalvi.com/wp-content/uploads/2021/08/Samacheer-Kalvi.png" alt="Samacheer Kalvi TN State Board 12th Computer Science Important Questions Chapter 3 Scoping" width="147" height="12" /></p>
<p>Question 6.<br />
Choose the incorrect pair.<br />
(a) Module &#8211; Small Program<br />
(b) Program &#8211; Built in scope<br />
(c) Software &#8211; Packages<br />
(d) Debugging &#8211; Errors<br />
Answer:<br />
(b) Program &#8211; Built in scope</p>
<p>Question 7.<br />
Choose the correct pair.<br />
(a) Namespaces &#8211; Mapping names<br />
(b) LEGB &#8211; Variable rule<br />
(c) Function &#8211; Output<br />
(d) Scope &#8211; Language<br />
Answer:<br />
(a) Namespaces &#8211; Mapping names</p>
<p>Question 8.<br />
Choose the incorrect statement:<br />
(a) Modules can be separately compiled.<br />
(b) Modules can be used by other modules.<br />
(c) Modules are not easy to understand.<br />
(d) Errors can easily be identified in modules.<br />
Answer:<br />
(c) Modules are not easy to understand.</p>
<p><img decoding="async" src="https://samacheer-kalvi.com/wp-content/uploads/2021/08/Samacheer-Kalvi.png" alt="Samacheer Kalvi TN State Board 12th Computer Science Important Questions Chapter 3 Scoping" width="147" height="12" /></p>
<p>Question 9.<br />
Choose the correct statement:<br />
(a) C++ is a function<br />
(b) A default members in a python class are public.<br />
(c) Python prescribes a suffixing file name of the variable.<br />
(d) A default members in a C++ members are public.<br />
Answer:<br />
(b) A default members in a python class are public.</p>
<p>Question 10.<br />
Assertion (A):<br />
Local scope refers to variables defined in current function.<br />
Reason (R):<br />
Always, a function will first look up for a variable name in its local scope.<br />
(a) A and R are True and R is the correct explanation for A.<br />
(b) A is True but R is False.<br />
(c) A is False but R is True.<br />
(d) Both A and R are False<br />
Answer:<br />
(a) A and R are True and R is the correct explanation for A.</p>
<p>Question 11.<br />
Assertion (A):<br />
A module is a part of a program.<br />
Reason (R):<br />
Modules work not perfectly on individual level.<br />
(a) A and R are True and R is the correct explanation for A.<br />
(b) A is True but R is False.<br />
(c) A is False but R is True.<br />
(d) Both A and R are False.<br />
Answer:<br />
(b) A is True but R is False.</p>
<p><img decoding="async" src="https://samacheer-kalvi.com/wp-content/uploads/2021/08/Samacheer-Kalvi.png" alt="Samacheer Kalvi TN State Board 12th Computer Science Important Questions Chapter 3 Scoping" width="147" height="12" /></p>
<p>Question 12.<br />
Assertion (A):<br />
Private members of a class are accessible from the outside the class.<br />
Reason (R):<br />
It can be handled only from outside the class.<br />
(a) A and R are True and R is the correct explanation for A.<br />
(b) A is True but R is False.<br />
(c) A is False but R is True.<br />
(d) Both A and R are False.<br />
Answer:<br />
(d) Both A and R are False.</p>
<p>Question 13.<br />
Assertion (A):<br />
Protected members of a class are accessible from within the class.<br />
Reason (R):<br />
They can be handled only from outside the class.<br />
(a) A and R are True and R is the correct explanation for A.<br />
(b) A is True but R is False.<br />
(c) A is False but R is True.<br />
(d) Both A and R are False.<br />
Answer:<br />
(b) A is True but R is False.</p>
<p>Question 14.<br />
Pick the odd one out:<br />
(a) C++<br />
(b) Java<br />
(c) Python<br />
(d) Module<br />
Answer:<br />
(d) Module</p>
<p><img decoding="async" src="https://samacheer-kalvi.com/wp-content/uploads/2021/08/Samacheer-Kalvi.png" alt="Samacheer Kalvi TN State Board 12th Computer Science Important Questions Chapter 3 Scoping" width="147" height="12" /></p>
<p>Question 15.<br />
Pick the odd one out:<br />
(a) Procedures<br />
(b) Scope<br />
(c) Subroutines<br />
(d) Functions<br />
Answer:<br />
(b) Scope</p>
<p>Question 16.<br />
Which type of variable declared outside the functions in a program?<br />
(a) Local<br />
(b) Global<br />
(c) private<br />
(d) Enclosed<br />
Answer:<br />
(b) Global</p>
<p>Question 17.<br />
Which of the following contain Instructions processing logic and data?<br />
(a) Modules<br />
(b) Scofje<br />
(c) Variable<br />
(d) Identifier<br />
Answer:<br />
(a) Modules</p>
<p><img decoding="async" src="https://samacheer-kalvi.com/wp-content/uploads/2021/08/Samacheer-Kalvi.png" alt="Samacheer Kalvi TN State Board 12th Computer Science Important Questions Chapter 3 Scoping" width="147" height="12" /></p>
<p>Question 18.<br />
Which part of a program that can see or use as variable?<br />
(a) function<br />
(b) scope<br />
(c) Indentation<br />
(d) Identifier<br />
Answer:<br />
(b) scope</p>
<p>Question 19.<br />
Which of the following refers in the addresses to an object in memory?<br />
(a) Functions<br />
(b) Scope<br />
(c) Indentation<br />
(d) Identifier<br />
Answer:<br />
(c) Indentation</p>
<p>Question 20.<br />
Which of the following is not a module?<br />
(a) Indentation<br />
(b) Procedure<br />
(c) Subroutines<br />
(d) Function<br />
Answer:<br />
(a) Indentation</p>
<p><img decoding="async" src="https://samacheer-kalvi.com/wp-content/uploads/2021/08/Samacheer-Kalvi.png" alt="Samacheer Kalvi TN State Board 12th Computer Science Important Questions Chapter 3 Scoping" width="147" height="12" /></p>
<p>Question 21.<br />
Which is called contain instructions, processing logic and data?<br />
(a) Function<br />
(b) Modules<br />
(c) Scope<br />
(d) Indentation<br />
Answer:<br />
(b) Modules</p>
<p>Question 22.<br />
How many access control keywords are there?<br />
(a) 2<br />
(b) 3<br />
(c) 4<br />
(d) 5<br />
Answer:<br />
(b) 3</p>
<p>Question 23.<br />
Which is a python class members?<br />
(a) Public<br />
(b) Private<br />
(c) Global<br />
(d) Protected<br />
Answer:<br />
(a) Public</p>
<p><img decoding="async" src="https://samacheer-kalvi.com/wp-content/uploads/2021/08/Samacheer-Kalvi.png" alt="Samacheer Kalvi TN State Board 12th Computer Science Important Questions Chapter 3 Scoping" width="147" height="12" /></p>
<p>Question 24.<br />
Which of the following is does not visibility of scope?<br />
(a) Modules<br />
(b) Variables<br />
(c) Functions<br />
(d) Identifiers<br />
Answer:<br />
(a) Modules</p>
<p>Question 25.<br />
The duration for which a variable is alive is called:<br />
(a) Duration Time<br />
(b) Life Time<br />
(c) Running Time<br />
(d) Execution Time<br />
Answer:<br />
(b) Life Time</p>
<p>Question 26.<br />
Which of the following refers to the visibility of variables in one part of a program to another part of the same program?<br />
(a) Scope<br />
(b) Memory<br />
(c) Address<br />
(d) Accessibility<br />
Answer:<br />
(a) Scope</p>
<p>Question 27.<br />
The process of binding a variable name with an object is called:<br />
(a) Scope<br />
(b) Mapping<br />
(c) late binding<br />
(d) early binding<br />
Answer:<br />
(b) Mapping</p>
<p>Question 28.<br />
Which of the following is used in programming languages to map the variable and object?<br />
(a) ::<br />
(b) :=<br />
(c) =<br />
(d) = =<br />
Answer:<br />
(b) :=</p>
<p><img decoding="async" src="https://samacheer-kalvi.com/wp-content/uploads/2021/08/Samacheer-Kalvi.png" alt="Samacheer Kalvi TN State Board 12th Computer Science Important Questions Chapter 3 Scoping" width="147" height="12" /></p>
<p>Question 29.<br />
Containers for mapping names of variables to objects is called<br />
(a) Scope<br />
(b) Mapping<br />
(c) Binding<br />
(d) Namespaces<br />
Answer:<br />
(d) Namespaces</p>
<p>Question 30.<br />
Which scope refers to variables defined in current function?<br />
(a) Local Scope<br />
(b) Global scope<br />
(c) Module scope<br />
(d) Function Scope<br />
Answer:<br />
(a) Local Scope</p>
<p>Question 31.<br />
The process of subdividing a computer program into separate sub-programs is called:<br />
(a) Procedural Programming<br />
(b) Modular programming<br />
(c) Event Driven Programming<br />
(d) Object oriented Programming<br />
Answer:<br />
(b) Modular programming</p>
<p><img decoding="async" src="https://samacheer-kalvi.com/wp-content/uploads/2021/08/Samacheer-Kalvi.png" alt="Samacheer Kalvi TN State Board 12th Computer Science Important Questions Chapter 3 Scoping" width="147" height="12" /></p>
<p>Question 32.<br />
Which of the following security technique that regulates who can use resources in a computing environment?<br />
(a) Password<br />
(b) Authentication<br />
(c) Access control<br />
(d) Certification<br />
Answer:<br />
(c) Access control</p>
<p>Question 33.<br />
Which of the following members of a class can be handled only from within the class?<br />
(a) Public members<br />
(b) Protected members<br />
(c) Secured members<br />
(d) Private members<br />
Answer:<br />
(d) Private members</p>
<p>Question 34.<br />
Which members are accessible from outside the class?<br />
(a) Public members<br />
(b) Protected members<br />
(c) Secured members<br />
(d) Private members<br />
Answer:<br />
(a) Public members</p>
<p><img decoding="async" src="https://samacheer-kalvi.com/wp-content/uploads/2021/08/Samacheer-Kalvi.png" alt="Samacheer Kalvi TN State Board 12th Computer Science Important Questions Chapter 3 Scoping" width="147" height="12" /></p>
<p>Question 35.<br />
The members that are accessible from within the class and are also available to its subclasses is called<br />
(a) Public members<br />
(b) Protected members<br />
(c) Secured members<br />
(d) Private members<br />
Answer:<br />
(b) Protected members</p>
<h4><a href="https://samacheer-kalvi.com/tn-board-12th-computer-science-important-questions/">TN Board 12th Computer Science Important Questions</a></h4>
]]></content:encoded>
					
					<wfw:commentRss>https://samacheer-kalvi.com/tn-board-12th-computer-science-important-questions-chapter-3/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">46265</post-id>	</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 

Served from: samacheer-kalvi.com @ 2026-06-27 12:50:33 by W3 Total Cache
-->