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: 19/09/2019
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.
How the value returned from lambda function?
2.
What is anonymous function or lambda function?
3.
What are called tuples?
4.
Write the output for the following program.
5.
Write the syntax for passing arguments to functions.
6.
Differentiate parameters and arguments.
7.
Write the output of the following program.
8.
What is meant by block in python?
9.
How the statements in a black are written in python?
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.
Lambda function can take any number of arguments and must return one value in the form of an expression.
2.
In Python, anonymous function is a function that is defined without a name. While normal functions are defined using the def keyword, in Python anonymous functions are defined using the lambda keyword. Hence, anonymous functions are also called as lambda functions.
3.
Non-keyword variable arguments are called tuples.
4.
def display (a, b):
return a * * b
print (area (2, 5)
Output: 32
5.
Syntax:
def function_name (parameter(s) separated by comma):
6.
Parameters are the variables used in the function definition whereas arguments are the values we pass to the function parameters.
7.
Example:
def hello():
print ("hello - Python")
return
print (hello())
Output:
hello - Python
None
8.
A block is one or more lines of code, grouped together so that they are treated as one big sequence of statements while execution.
9.
In Python, statements in a block are written with indentation.
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