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: 22/01/2020
Python Functions
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.
What is local variable?
2.
How the value returned from lambda function?
3.
What are the methods used to parse the arguments to the variable length arguments?
4.
Write the syntax of variable - length arguments.
5.
What are arguments? What are the types?
6.
Write the syntax for passing arguments to functions.
7.
Differentiate parameters and arguments.
8.
How the nested block are indented?
9.
How to set the limit for recursive function? Give an example.
10.
What is base condition in recursive function?
11.
Define global scope.
12.
What is meant by scope of variable? Mention its types.
13.
What are the main advantages of function?
14.
Write the different types of function.
15.
What is function?
1.
A variable declared inside the function's body or in the local scope is known as local variable.
2.
Lambda function can take any number of arguments and must return one value in the form of an expression.
3.
In Variable Length arguments we can parse the arguments using two methods.
(i) Non keyword variable arguments
(ii) Keyword variable arguments
4.
def function_name(*args):
function_body
return_statement
5.
Arguments are used to call a function and there are primarily 4 types of functions. They are: Required arguments, Keyword arguments, Default arguments and Variable-length arguments.
6.
Syntax:
def function_name (parameter(s) separated by comma):
7.
Parameters are the variables used in the function definition whereas arguments are the values we pass to the function parameters.
8.
A block within a block is called nested block. When the first block statement is indented by a single table space, the second block of statement is indented-by double tab spaces.
9.
(i) Python stops calling recursive function after 1000 calls by default.
(ii) So, it also allows you to change the limit using sys.setrecursionlimit (limit_value).
Example:
import sys
sys.setrecursionlimit(3000)
def fact(n):
if n == 0:
return 1
else:
return n * fact(n-1)
print(fact (2000))
10.
(i) A recursive function calls itself.
(ii) The condition that is applied in any recursive function is known as base condition.
(iii) A base condition is must in every recursive function otherwise it will continue to execute like an infinite loop.
11.
A variable with global scope can be used anywhere in the program. It can be created by defining a variable outside the scope of any function.
12.
Scope of variable refers to the part of the program, where it is accessible, i.e., area where the variables can refer (use) it. The scope holds the current set of variables and their values. The two types of scopes - local scope and global scope.
13.
Main advantages of functions are
(i) It avoids repetition and makes a high degree of code reusing.
(ii) It provides better modularity for your application.
14.
(i) User defined functions.
(ii) Built in functions.
(iii) Lambda functions.
(iv) Recursion functions.
15.
(i) Functions are named blocks of code that are designed to do specific job.
(ii) If you need to perform that task multiple times throughout your program, you just call the function dedicated to handling that task.
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