12th Standard Syllabus & Materials
12th Standard
TN 12th Computer Applications மின்னணு தரவு பரிமாற்றம் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications மின் - வணிக பாதுகாப்பு அமைப்புகள் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications மின்னணு செலுத்தல் முறைகள் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications மின் - வணிகம் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications திறந்த மூல கருத்துருக்கள் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications வலையமைப்பு வடமிடல் Sample Question Papers Study Material - QB365 Set A

Published on: 03/02/2021
12th Standard Computer Science English Medium Scoping Reduced Syllabus Important Questions 2021
Download Tamil Nadu 12th Standard Computer Science question papers, model tests, one-mark questions, important questions, and public exam papers in PDF format. Free study materials and answer keys for TN State Board students.
Questions + Answers key
Take MCQ Computer Science Test

1.
_________members of the class are accessible from outside the class
Private
Privated
Public
All of these
2.
___________is a selective restriction of access to data in a program?
Control variable
System authentication
Access control
Module
3.
In Object Oriented Programming Language security is implanted through_______
Access modifiers
Access modules
Access variables
Keywords
4.
______can be separately compiled and stored in a library
Characteristics
Syntax
Modules
none of these
5.
The inner function can access the variable of the outer function. This is called________scope.
Local
Function
Enclosed
Global
6.
A Function always first look up for a variable name in its______ scope
Local
Enclosed
Global
Built-in
7.
The scope of a_______ is that part of the code where it is visible
Keyword
Variable
Function
Operator
8.
Fill up the blank in assign a variable with________to an object.
=
! =
: =
= =
9.
Scope refers to the visibility of___________.
Variables
Parameters
Functions
All of these
10.
By default, the C++ and Java class members are
Private
Protected
Public
Local
11.
By default, the Python. class members are
Private
Protected
Global
Public
12.
Which of the following members of a class are accessible from within the class and available to its subclass?
Private
Protected
Public
All of these
13.
Find the odd man out
Public
Local
Protected
Private
14.
Which of the following variable can be accessed inside or outside of all the functions in a program?
Local
Global
Enclosed
Built-in
15.
How many types of variable scope are there?
2
4
3
6
16.
17.
Which of the following refers to the addresses to an object in memory?
Functions
Indentation
Variables
Operators
18.
Which of the following members of a class can be handled only from within the class?
Public members
Protected members
Secured members
Private members
19.
Which of the following security technique that regulates who can use resources in a computing environment?
Password
Authentication
Access control
Certification
20.
The process of binding a variable name with an object is called
Scope
Mapping
late binding
early binding
21.
Which of the following refers to the visibility of variablesin one part of a program to another part of the same program.
Scope
Memory
Address
Accessibility
22.
What is meant by module?
23.
What is modular programming?
24.
Write the output of the following program
Disp()
a:=10
Disp 1():
print a
Disp 1():
print a
Disp()
25.
Write the output of the following program
a:=10
Disp():
a:=7
print a
Disp 1():
print a
26.
Write the output of the following program
Entire Program
Disp():
a:=7
print a
Disp ()
27.
What are the types of variable scope
28.
What is the use of LEGB rule?
29.
Define variable.
30.
How Python represents the private and protected Access specifiers?
31.
What do you mean by Namespaces?
32.
What is Mapping?
33.
Why scope should be used for variable. State the reason.
34.
What is a scope?
35.
Write a short note on types of variable scope.
36.
Write a note on access modifiers of a class.
37.
How will you ensure the principle of data encapsulation in object - oriented programming?
38.
Write a note on module.
39.
Write a note on built-in scope.
40.
How the changes inside the function can't affect the variable on the outside of the function in unexpected ways?
41.
Identify the scope of the variables in the following pseudo code and write its output
color:= 'Red'
mycolor( ):
b:='Blue'
myfavcolor( ):
g:='Green'
printcolor, b, g
myfavcolor( )
printcolor, b
mycolor( )
print color
42.
Why access control is required?
43.
Define Enclosed scope with an example.
44.
45.
Define Local scope with an example.
46.
Explain the concept access control.
47.
Write any five benefits in using modular programming.
48.
Write any Five Characteristics of Modules.
49.
Explain the types of scopes for variable or LEGB rule with example.
1.
(c)
Public
2.
(c)
Access control
3.
(a)
Access modifiers
4.
(c)
Modules
5.
(c)
Enclosed
6.
(a)
Local
7.
(b)
Variable
8.
(c)
: =
9.
(d)
All of these
10.
(a)
Private
11.
(d)
Public
12.
(b)
Protected
13.
(b)
Local
14.
(b)
Global
15.
(b)
4
16.
(a)
17.
(b)
Indentation
18.
(d)
Private members
19.
(c)
Access control
20.
(b)
Mapping
21.
(a)
Scope
22.
A module is a part of a program. Programs are composed of one or more independently developed modules
23.
The process of subdividing a computer program into separate sub-programs is called modular programming.
24.
The output of the program
10
10
25.
The output of the program
7
10
26.
The output of the program
7
27.
(i) Local scope
(ii) Enclosed scope
(iii) Global scope
(iv) Built-in scope
28.
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).
29.
Variable are addresses (references, or pointers, to an object in memory
30.
Python prescribes a convention of prefixing the name of the variable or method with single or double underscore to emulate the behavior of protected and private access specifiers.
Example: self_n2 = n2
31.
Namespaces are containers for mapping names of variables to objects.
Example : a : =5
Here the variable 'a' is mapped to the value '5.
32.
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.
33.
Scope should be used for a variable because; it limits a variables scope to a single definition. That is the variables are visible only to that part of the code. Essentially, variables are addresses to an object in memory. When you assign a variable with := to an instance (object), you're binding (or mapping) the variable to that instance. Multiple variables can be mapped to the same instance.
34.
Scope refers to the visibility of variables, parameters and functions in one part of a program to another part of the same program.
35.
(i) Public members (generally methods declared in a class) are accessible from outside the class.
(ii) A variable which is declared outside of all the functions in a program is known as global variable.
(iii) A variable which is declared inside a function which contains another function definition with in it, the inner function can also access the variable of the outer function. This scope is called enclosed scope.
(iv) Built-in scope the widest scope has all the names that are pre-loaded into program scope when we. start the compiler or interpreter.
36.
(i) Public members (generally methods declared in a class) are accessible from outside the class.
(ii) Protected members of a class are accessible from within the class and are also available to its sub-classes.
(iii) Private members of a class are denied access from outside the class. They can be handled only from within the class.
37.
Public members (generally methods declared in a class) are accessible from outside the class. The object of the same class is required to invoke a public method. This arrangement of private instance variables and public methods ensures the principle of data encapsulation.
38.
(i) A module is a part of a program. Programs are composed of one or more independently developed modules. A single module can contain one or several statements closely related each other.
(ii) Modules work perfectly on individual level and can be integrated with other modules. A software program can be divided into modules to ease the job of programming and debugging as well.
(iii) A program can be divided into small functional modules that work together to get the output. The process of subdividing a computer program into separate subprograms is called Modular programming.
(iv) Modular programming enables programmers to divide up the work and debug pieces of the program independently. The examples of modules are procedures, subroutines, and functions.
39.
(i) Built-in scope is the widest scope. The built -in scope has all the names that are pre-loaded into the program scope when we start the compiler or interpreter.
(ii) Any variable or module which is defined in the library functions of a programming language has Built-in or module scope. They are loaded as soon as the library files are imported to the program.

(iii) Normally only Functions or modules come along with the software, as packages, therefore they will come under Built in scope.
40.
(i) Every variable defined in a program has global scope.
(ii) Once defined, every part of your program can access that variable. But it is a good practice to limit a variable's scope to a single definition.
(iii) This way, changes inside the function can't affect the variable on the outside of the function in unexpected ways.
41.
Output:
Red, Blue, Green
Red, Blue
Red.
Seope f Variables :

42.
(i) Access control is a security technique that regulates who or what can view or use resources in a computing environment.
(ii) It is a fundamental concept in security that minimizes risk to the object.
(iii) In other words access control is a selective restriction of access to data.
(iv) In object oriented programming languages is implemented through access modifiers.
43.
(i) All programming languages permit functions to be nested. A function (method) within another function is called nested function.
(ii) A variable which is declared, inside a function which contains another function definition with in it, the inner function can also access the variable of the outer function. This scope is called enclosed scope.
(iii) When a compiler or interpreter search for a variable in a program, it first searches Local, and then searches Enclosing scopes. Consider the following example
|
1. Disp(); |
Entire program |
Output of the program 10 10 |
44.
45.
(i) Local scope refers to variables defined in current function. Always, a function will first look up for a variable name in its local scope.
(ii) Only if it does not find it there, the outer scopes are checked.
(iii) Look at this example:
|
1. Disp(): |
Entire program |
Output of the Program 7 |
(iv) On execution of the above code the variable a displays the value 7, because it is defined and available in the local scope.
46.
(i) Access control is a security technique that regulates who or what can view or use resources in a computing environment.
(ii) It is a fundamental concept in security that minimizes risk to the object.
(iii) In other words access control is a selective restriction of access to data. IN Object oriented programming languages it is implemented through access modifiers.
(iv) Classical object-oriented languages, such as C++ and Java. control the access to class members by public, private and protected keywords.
(v) Private members of a class are denied access from the outside the class. They can be handled only from within the class.
(vi) Public members (generally methods declared in a class) are accessible from outside the class. The object of the same class is required to invoke a public method. This arrangement of private instance variables and public methods ensures the principle of data encapsulation.
(vii) Protected members of a class are accessible from within the class and are also available to its sub-classes. No other process is permitted access to it. This enables specific resources of the parent class to be inherited by the child class.
(viii) Python doesn't have any mechanism that effectively restricts access to any instance variable or method. Python prescribes a convention of prefixing the name of the variable or method with single or double underscore to emulate the behaviour of protected and private access specifiers.
(ix) All members in a Python class are public by default. whereas by default in C++ and java they are private. Any member can be accessed from outside the class environment in Python which is not possible in C++ and java.
47.
(i) Less code to be written.
(ii) A single procedure can be developed for reuse, eliminating the need to retype the code many times.
(iii) Programs can be designed more easily because a small teana deals with only a
small part of the entire code.
(iv) Modular programming allowS many programmers to collaborate on the same
application.
(v) The code is stored across multiple files.
(vi) Code is short, sirnple and easy to understand.
(vii) Errors can easily be identified, as they are localized to a subroutine or function.
(viii) The same code can be used in man applications.
(ix) The scoping of variables can easily be controlled.
48.
The following are the desirable characteristics of a module.
(i) Modules contain instructions, processing logic, and data.
(ii) Modules can be separately compiled and stored in a library.
(iii) Modules can be included in a program.
(iv) Module segments can be used by invoking a name and some parameters.
(v) Module segments can be used by other modules.
49.
Types of Variable Scope:
There are 4 types of Variable Scope, let's discuss them one by one:
Local Scope:
(i) Local scope refers to variables defined in current function. Always, a function will first look up for a variable name in its local scope. Only if it does not find it there, the outer scopes are checked.
Look at this example
| 1. Disp(): 2. a:=7 3. print a 4. Disp() |
Entire program |
Output of the Program 7 |
(ii) On execution of the above code the variable a displays the value 7, because it is defined and available in the local scope.
Global Scope:
(i) A variable which is declared outside of all the functions in a program is known as global variable.
(ii) This means, global variable can be accessed inside or outside of all the functions in a program.
Example:
| 1. a:=10 2. Disp(): 3. a:=7 4. print a 5. Disp() 6. print a |
Entire program |
Output of the Program 7 10 |
(iii) On execution of the above code the variable 'a' which is defined inside the function displays the value 7 for the function call Disp() and then it displays 10; because a is defined in global scope.
Enclosed Scope:
(i) All programming languages permit functions to be nested. A function (method) with in another function is called nested function.
(ii) A variable which is declared inside a function which contains another function definition with in it, the inner function can also access the variable of the outer function. This scope is called enclosed scope.
(iii) When a compiler or interpreter search for a variable in a program, it first search Local, and then search Enclosing scopes. Consider
the following example:
| 1. Disp(): 2. a:=10 3. Disp1() 4. print a 5. Disp1() 6. print a 7. Disp() |
Entire Program |
Output of the Program 10 10 |
(iv) In the above example Disp1( ) is defined with in Disp( ). The variable 'a' defined in Disp( ) can be even used by Disp1( ) because it is also a member of Disp( ).
Built-in Scope:
(i) The built-in scope has all the names that are pre-loaded into the program scope when we start the compiler or interpreter.
(ii) Any variable or function which is defined in the modules of a programming language has Built-in or module scope. They are loaded as soon as the library files are imported to the program.Consider the following example.
| Library files associated with the software |
LEGB rule :
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).
.png)
12th Standard Syllabus & Materials
12th Standard
TN 12th Computer Applications களப்பெயர் முறைமை (DNS) Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications வலையமைப்பு எடுத்துக்காட்டுகள் மற்றும் நெறிமுறைகள் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications கணினி வலையமைப்பு ஓர் அறிமுகம் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications PHP-உடன் MySQL-ஐ இணைத்தல் Sample Question Papers Study Material - QB365 Set A
Tamilnadu Stateboard 12th Standard Subjects

Maths

Chemistry

Physics

Biology

Computer Science

Business Maths and Statistics

Economics

Commerce

Accountancy

History

Computer Applications

Biology

Computer Technology

Computer Applications

Computer Science

Business Maths and Statistics

Commerce

Economics

Maths

Chemistry

Physics

Computer Technology

History

Accountancy

Tamil

English

French
Tamilnadu Stateboard Standards