Samacheer Kalvi Books– Tamilnadu State Board Text Books Solutions for Class 1 to 12.

Wednesday, October 27, 2021

Samacheer Kalvi 11th Computer Application Chapter 16 Javascript Functions Notes PDF Download: Tamil Nadu STD 11th Computer Application Chapter 16 Javascript Functions Notes

Samacheer Kalvi 11th Computer Application Chapter 16 Javascript Functions Notes PDF Download: Tamil Nadu STD 11th Computer Application Chapter 16 Javascript Functions Notes
Samacheer Kalvi 11th Computer Application Chapter 16 Javascript Functions Notes PDF Download: Tamil Nadu STD 11th Computer Application Chapter 16 Javascript Functions Notes


Samacheer Kalvi 11th Computer Application Chapter 16 Javascript Functions Notes PDF Download: Students of class can download the Samacheer Kalvi 11th Computer Application Chapter 16 Javascript Functions Notes PDF Download from our website. We have uploaded the Samacheer Kalvi 11th Computer Application Chapter 16 Javascript Functions notes according to the latest chapters present in the syllabus. Download Samacheer Kalvi 11th Computer Application Chapter 16 Javascript Functions Chapter Wise Notes PDF from the links provided in this article.


Samacheer Kalvi 11th Computer Application Chapter 16 Javascript Functions Notes PDF Download

We bring to you specially curated Samacheer Kalvi 11th Computer Application Chapter 16 Javascript Functions Notes PDF which have been prepared by our subject experts after carefully following the trend of the exam in the last few years. The notes will not only serve for revision purposes, but also will have several cuts and easy methods to go about a difficult problem.


Board

Tamilnadu Board

Study Material

Notes

Class

Samacheer Kalvi 11th Computer Application

Subject

11th Computer Application

Chapter

Chapter 16 Javascript Functions

Format

PDF

Provider

Samacheer Kalvi Books


How to Download Samacheer Kalvi 11th Computer Application Chapter 16 Javascript Functions Notes PDFs?

  1. Visit our website - https://www.samacheerkalvibook.com/
  2. Click on the Samacheer Kalvi 11th Computer Application Notes PDF.
  3. Look for your preferred subject.
  4. Now download the Samacheer Kalvi 11th Computer Application Chapter 16 Javascript Functions notes PDF.

Download Samacheer Kalvi 11th Computer Application Chapter 16 Javascript Functions Chapterwise Notes PDF

Students can download the Samacheer Kalvi 11th Computer Application Chapter 16 Javascript Functions Notes PDF from the links provided in this article.


I. Choose The Correct Answer

Question 1.
The parameters work as:
(a) local variable
(b) global Variable
(c) file variable
(d) block variable
Answer:
(a) local variable

Question 2.
Predefined functions are also called as:
(a) library functions
(b) storage functions
(c) instructions
(d) commands
Answer:
(a) library functions

Question 3.
Larger programs are divided into smaller are called:
(a) modules
(b) block
(c) sets
(d) group
Answer:
(a) modules

Question 4.
Which of the following is used to enhance re-usability and program clarity?
(a) Functions
(b) Modules
(c) Sets
(d) Instructions
Answer:
(a) Functions

Question 5.
Which of the following allow the programmer to modularize a program?
(a) Library functions
(b) User defined functions
(c) Normal functions
(d) Ordinary functions
Answer:
(b) User defined functions

II. Answer To The Following Questions

Question 1.
What is a function in JavaScript?
Answer:
A function is a block of JavaScript code that is defined once but may be executed or invoked any number of times. Functions are used to encapsulate code that performs a specific task.

Question 2.
What is the use of function?
Answer:
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 code that performs a particular job in one place in order to enhance re-usability and program clarity.

Question 3.
Write a note on Library functions?
Answer:
Pre-defined functions are already defined in the JavaScript library which are also called Library functions. For example isNaN( ), toUpperCase( ), toLowerCase( ), length( ), alert( ), prompt( ),write( ) etc… are pre-defined functions.

Question 4.
Write a note on user defined functions?
Answer:
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 are called modules.

Question 5.
Write the syntax of functions?
Answer:
The format of a function definition is –
Function function-name(parameters list)
{
Declaration of variable Executable statements;
}

III. Answer To The Following Questions

Question 1.
Write a program in JavaScript to find the cube of a number using function?
Answer:
<html>
<head>
<title> print the cube number
</title>
</head>
<Title>
Function cube</Title>
<Script type = “text/Javascript”>
<!—
var input = window.prompt (“Enter value : ”, “0”);
var v = parselnt (input); var c = cube (v);
document, write In (“<br><h4><u> cube function </u> </h4>”);
document, write In (“Number *V* “<br> The cube =” *C);
function cube (x)
{
var cube = x* x * x; return c;
}
//–>
</script>
</head>
<body>
</body>
</html>
OUTPUT
Enter value : 5
Cube Function Number : 5
The cube : 125

Question 2.
Write a program in JavaScript to find the sum of 10 numbers using function?
Answer:
<html>
<head>
<Title> Function sum of 10 Numbers </Title>
<Script type = “text/Javascript”>
<!—
var input 1 = window.prompt (“Enter initial value : ”, “0”);
var input 2 = window.prompt (“Enter final value : ”, “0”);
var v1 = parse Int (input 1);
var v2 = parse Int (input 2);
var r = res (v1 , v2);
document, write In (“<br><h4><u> Function for sum of 10 Numbers </u> </h4>”);
document, write In (“Initial Number : “ +v1+” <br> Final Number : “+v2+”<br>
The result =”+r);
function result (n)
{
var r = n* (n+1)/2
return r;
//–>
</script>
</head>
<body>
</body>
</html>
OUTPUT
Enter initial value : 1
Enterfinal value : 10
Function for sum of 10 numbers
Initial No : 1
FinalNo : 10
The result : 55

Samacheer Kalvi 11th Computer Applications Javascript Functions Additional Questions and Answers

I. Choose The Correct Answer

Question 1.
…………………… often use their argument values to compute a return value that becomes the value of the function invocation expression.
(a) function
(b) parameter
(c) non-parameter
(d) expression
Answer:
(a) function

Question 2.
…………………… method returns the element that has the ID attribute with the specified value.
(a) elements [o]
(b) getElementByid( )
(c) Nan ( )
(d) NaN (“A”)
Answer:
(b) getElementByid( )

II. Short Answers

Question 1.
What are the types of function?
Answer:
JavaScript supports two types functions. They are:

  1. Pre-defined or Library Functions
  2. User-defined Functions

Question 2.
Define NaN( )?
Answer:
The is NaN( ) function is used to check whether the given value or variable is valid number. This function returns true if the given value is not a number. For example is NaN(“12”), is NaN(“A”).

Question 3.
What are the different types of predefined functions?
Answer:

III. Explain in Detail

Question 1.
Write a program to find the sum of 2 numbers?
Answer:
<html>
<head>
<title>Function Example</title>
<script type=“text/JavaScript”>
var input1=window.prompt(“Enter Value 1 “0”);
var input2=window.prompt(“Enter Value2 “0”);
var v1=parselnt(input1);
var v2=parselnt(input2);
var s=sum(v1,v2);
document.writeln(“<br><h4><u>Example for Function</u></h4>”);
document.writeln(“First No + v1 + “ <br>Second No + v2 + “<br> The Sum =” + s);
function sum(x, y)
{
var s=x+y;
return s;
}
</script>
</head>
<body>
</body>
</html>

Question 2.
Write a program to validate whether the entered value is a number or not?
Answer:
<html>
<head>
<title>Example Program to test isNan( ) Function</title>
</head>
<body>
<h4><u>Example Program to test isNan() Function</u></h4>
<script language=“JavaScript”>
function checknum( )
{
var n=document.form1.text1 .value;
if(isNaN (n)==true)
{
document.form1.text2.value=“Not a Number +n;
}
else
{
document, form 1 ,text2.value=“It is Number : ”+n;
}
}
</script>
<form name=“form1’’>
Enter a Number 1:
<input type=“text” name=“textl” size=3>
<br><br>
<input type= “button” value=“Click to Check” onClick=“checknum( )”>
<input type=“text” name=“text2” size=30>
<br>
</form>
</body>
</html>

Question 3.
Write a program using functions to have an online quiz?
Answer:
<html>
<head>
<title>On-line Quiz</title>
<script type= “text/JavaScript”>
function checkAnswer( )
{
//var myQuiz=document.getElementById(“myQuiz”);
if (document.getElementById(“myQuiz”).elements[0],checked)
alert(“Congratulations, Your Answer is correct”);
else
alert(“Your Answer is incorrect, Please try Again”);
}
</script>
</head>
<body>
<form id=“myQuiz” aotion=“JavaScript:checkAnswer( )”>
<p> Which is not a Programming Language: <br>
<input type=“radio” name=“radiobutton” value=“Word” />
<label> MS-Word</label>
<input type=“radio” name=“radiobutton” value=“Cobol” />
<label> COBOL</label>
<input type=“radio” name=“radiobutton” value=“CPP” />
<label> C++</label>
<input type=“radio” name=“radiobutton” value=“VB” />
<label>Visual BASIC</label><br><br>
<input type=“submit” name-“submit” value=“Submit” />
<input type=“reset” name=“reset” value=“Reset” />
</p>
</form>
</body>
</html>


How to Prepare using Samacheer Kalvi 11th Computer Application Chapter 16 Javascript Functions Notes PDF?

Students must prepare for the upcoming exams from Samacheer Kalvi 11th Computer Application Chapter 16 Javascript Functions Notes PDF by following certain essential steps which are provided below.


  • Use Samacheer Kalvi 11th Computer Application Chapter 16 Javascript Functions notes by paying attention to facts and ideas.
  • Pay attention to the important topics
  • Refer TN Board books as well as the books recommended.
  • Correctly follow the notes to reduce the number of questions being answered in the exam incorrectly
  • Highlight and explain the concepts in details.


Samacheer Kalvi 11th Computer Application All Chapter Notes PDF Download


Frequently Asked Questions on Samacheer Kalvi 11th Computer Application Chapter 16 Javascript Functions Notes


How to use Samacheer Kalvi 11th Computer Application Chapter 16 Javascript Functions Notes for preparation??

Read TN Board thoroughly, make separate notes for points you forget, formulae, reactions, diagrams. Highlight important points in the book itself and make use of the space provided in the margin to jot down other important points on the same topic from different sources.

How to make notes for Samacheer Kalvi 11th Computer Application Chapter 16 Javascript Functions exam?

Read from hand-made notes prepared after understanding concepts, refrain from replicating from the textbook. Use highlighters for important points. Revise from these notes regularly and formulate your own tricks, shortcuts and mnemonics, mappings etc.
Share:

0 comments:

Post a Comment

Copyright © Samacheer Kalvi Books: Tamilnadu State Board Text Books Solutions About | Contact | Privacy Policy