11th Standard Syllabus & Materials
11th Standard
TN 11th Tamil இயற்கை வேளாண்மை,சுற்றுச்சூழல் -செய்யுள் - மனோன்மணீயம் Important Questions And Answers Study Material - QB365 Set A
NEW11th Standard
TN 11th Tamil என்னுயிர் என்பேன் -துணைப்பாடம் - இசைத்தமிழர் இருவர் Important Questions And Answers Study Material - QB365 Set A
NEW11th Standard
TN 11th Tamil மொழி கலை -செய்யுள் - ஒவ்வொரு புல்லையும் Important Questions And Answers Study Material - QB365 Set A
NEW11th Standard
TN 11th Tamil பீடு பெற நில் - இலக்கணம் - பகுபத உறுப்புகள் Important Questions And Answers Study Material - QB365 Set A
NEW11th Standard
TN 11th Tamil பீடு பெற நில் - துணைப்பாடம் - வாடிவாசல் Important Questions And Answers Study Material - QB365 Set A
NEW11th Standard
TN 11th Tamil பீடு பெற நில் - செய்யுள் - குறுந்தொகை Important Questions And Answers Study Material - QB365 Set A

Published on: 07/09/2019
Functions
Download Tamil Nadu 11th 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.
Write a note on Local Scope.
2.
What is Parameter and list its types?
3.
What are importance of void data type.
4.
What is default arguments? Give example.
5.
What are the information the prototype provides to the compiler?
6.
Write short note on pow() function in C++.
7.
Write a program to accept any integer number and reverse it.
8.
9.
Which of the following is the scope operator?
>
&
%
::
10.
Which is return data type of the function prototype of add(int, int);?
int
float
char
double
11.
12.
Which function is used to check whether a character is alphanumeric or not:
isalpha ( )
isdigit ()
isalnum ()
islower ()
13.
Which of the following header file defines the standard I/O predefined functions?
stdio.h
math.h
string.h
ctype.h
1.
(i) A local variable is defined within a block. A block of code begins and ends with curly braces { }.
(ii) The scope of a local variable is the block in which it is defined.
(iii) A local variable cannot be accessed from outside the block of its declaration.
(iv) A local variable is created upon entry into its block and destroyed upon exit
2.
Arguments or parameters are the means to pass values from the calling function to the called function. The variables used in the function definition as parameters are known as formal parameters. The constants, variables or expressions used in the function call are known as actual parameters.
Types : Default arguments and Constant Arguments.
3.
Void type has two important purposes:
(I) To indicate the function does not return a value
(ii) To declare a generic pointer
4.
In C++, one can assign default values to the formal parameters of a function prototype. The Default arguments allows to omit some arguments when calling the function.
When calling a function,
For any missing arguments, complier uses the values in default arguments for the called function.
i. The default value is given in the form of variable initialization.
Example: void defaultvalue(int n1-10. n2=100);
ii. The default arguments facilitate the function call statement with partial or no arguments.
Example: defaultvalue(x,y);
defaultvalue(200,150);
defaultvalue(150);
defaultvalue(x,150);
iii. The default values can be included in the function prototype from right to left, ie, we cannot have a default value for an argument in between the argument list.
Example: void defaultvalue(int n1-10, n2);//invalid prototype
void defaultvalue(int n1, n2 = 10);//valid prototype
5.
(i) The return value of the function is of type long.
(ii) fact is the name of the function.
(iii) The function is called with two arguments:
The first argument is of int data type.
The second argument is of double data type.
int display(int, int) // function prototype
The above function prototype provides details about the return data type, name of the function and a list of formal parameters or arguments.
6.
The pow() function returns base raised to the power of exponent. If any argument passed to pow() is long double, the return type is promoted to long double. If not, the return type is double. The pow() function takes two arguments.
(i) base- the base value
(ii) exponent - exponent of the base
Example :
cout <<pow(5,2);
output
25
7.
#include<iostream>
using namespace std;
int reverse (int n);
int main()
{
int n=0, result = 0;
cout<<"Enter number:"";
cin >>n;
result reverse (n);
cout<<"Reverse number is:" << result << endl;
}
int reverse (int n)
{
int temp=0, rev = 0;
while (n! =0).
{
temp=n;
rev= (rev*10) + temp;
n = n/10;
}
return rev;
}
Output:
Enter number: 1 2 3
Reverse number: 3 2 1
8.
9.
(d)
::
10.
(a)
int
11.
(a)
12.
(a)
isalpha ( )
13.
(a)
stdio.h
11th Standard Syllabus & Materials
11th Standard
TN 11th Tamil பீடு பெற நில் - செய்யுள் - காவடிச்சிந்து Important Questions And Answers Study Material - QB365 Set A
NEW11th Standard
TN 11th Tamil பீடு பெற நில் - உரைநடை - மலை இடப்பெயர்கள் : ஓர் ஆய்வு Important Questions And Answers Study Material - QB365 Set A
NEW11th Standard
TN 11th Tamil மாமழை போற்றுதும் - துணைப்பாடம் - யானை டாக்டர் Important Questions And Answers Study Material - QB365 Set A
NEW11th Standard
TN 11th Tamil மாமழை போற்றுதும் - செய்யுள் - ஐங்குறுநூறு Important Questions And Answers 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