11th Standard Syllabus & Materials
11th Standard
TN 11th English Supplementary - 3 - The First Patient (Play) Sample Question Papers Study Material - QB365 Set A
NEW11th Standard
TN 11th English Prose - 3 - Forgetting Sample Question Papers Study Material - QB365 Set A
NEW11th Standard
TN 11th English Prose - 2 - The Queen of Boxing Sample Question Papers Study Material - QB365 Set A
NEW11th Standard
TN 11th English Poem - 1 - Once Upon A Time Sample Question Papers Study Material - QB365 Set A
NEW11th Standard
TN 11th English Prose - 1 - The Portrait of a Lady Sample Question Papers Study Material - QB365 Set A
NEW11th Standard
TN 11th Computer Applications Tamil Computing Sample Question Papers Study Material - QB365 Set A

Published on: 09/09/2019
JavaScript Functions
Download Tamil Nadu 11th Standard Computer Applications 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 Applications Test

1.
Which of the following allow the programmer to modularize a program
Library functions
user defined functions
Normal functions
Ordinary functions
2.
Which of the following is used to enhance reusability and program clarity.
functions
modules
sets
instructions
3.
Larger programs are divided into smaller are called
modules
block
sets
Group
4.
Predefined functions are also called as
Library functions
storage functions
instructions
commands
5.
The parameters work as
Local variable
Global Variable
File variable
block variable
6.
Write the syntax of functions.
7.
Write a note on user defined functions.
8.
Write a note on Library functions.
9.
What is the use of function?
10.
What is a function in JavaScript?
11.
Write a program in JavaScript to find the sum of 10 numbers using function.
12.
Write a program in JavaScript to find the cube of a number using function.
1.
(b)
user defined functions
2.
(a)
functions
3.
(a)
modules
4.
(a)
Library functions
5.
(a)
Local variable
6.
The format of a functions definition is
Function function-name(parametets list)
7.
User-defined functions allow the programmer to modularize a program. Most computer programs that solve real-world problems are much large, occupy more space in the computer memory and takes more time to execute. Hence such large programs are divided into small programs called modules.
8.
Pre-defined functions are already defined in the JavaScript library which are also called Library functions. For example is NaN(), to UpperCase(), to LowerCase(), length(), alert(), prompt(), write() etc., are pre-defined functions.
9.
Functions are used to encapsulate code that performs. a specific task. Sometimes functions are defined for commonly required tasks to avoid the repetition entailed in typing the same statements over and over. More generally, they are used to keep the code that performs a particular job in one place in order to enhance reusability and program clarity.
10.
A function is a block ofJavaScript code that is defined once but may be executed or invoked any number of times.
11.
< html >
< body >
< script language = "JavaScript" type "text/ JavaScript" >
var N;
var N = prompt("Enter the N terms", "O");
var x = parse Int(N);
var s = sum(x);
document.write in("The sum of 10 numbers = "+8);
function sum (x)
{
var s = 0;
var s = (x*(x + 1))/2;
return s ;
}
return
< /script >
< /body >
< /html >
12.
Program to find the cube of a number:
< html >
< body >
< script language = "JavaScript" type = "text/ JavaScript" >
var N = window.prompt("Enter the number to find cube" ,"O")',
var x = parse Int(N);
vary s = cube (x);
document, written ("The cube of a number" + x + "is" +s); function cube(m)
{
var s = m*m*m;
returns s ;
}
< /script >
< /body >
< /html >
11th Standard Syllabus & Materials
11th Standard
TN 11th Computer Applications Computer Ethics and Cyber Security Sample Question Papers Study Material - QB365 Set A
NEW11th Standard
TN 11th Computer Applications JavaScript Functions Sample Question Papers Study Material - QB365 Set A
NEW11th Standard
TN 11th Computer Applications Control Structure in JavaScript Sample Question Papers Study Material - QB365 Set A
NEW11th Standard
TN 11th Computer Applications Introduction to JavaScript Sample Question Papers Study Material - QB365 Set A
Tamilnadu Stateboard 11th Standard Subjects

Maths

Commerce

Economics

Biology

Business Maths and Statistics

Accountancy

Computer Science

Physics

Chemistry

Maths

Biology

Economics

Physics

Chemistry

History

Business Maths and Statistics

Computer Science

Accountancy

Computer Applications

History

Computer Technology

Commerce

Computer Applications

Computer Technology

Tamil

English

French
Tamilnadu Stateboard Standards