CBSE Class 12 Computer Science Header Files Worksheet

Read and download free pdf of CBSE Class 12 Computer Science Header Files Worksheet. Download printable Computer Science Class 12 Worksheets in pdf format, CBSE Class 12 Computer Science Header Files Worksheet has been prepared as per the latest syllabus and exam pattern issued by CBSE, NCERT and KVS. Also download free pdf Computer Science Class 12 Assignments and practice them daily to get better marks in tests and exams for Class 12. Free chapter wise worksheets with answers have been designed by Class 12 teachers as per latest examination pattern

Header Files Computer Science Worksheet for Class 12

Class 12 Computer Science students should refer to the following printable worksheet in Pdf in Class 12. This test paper with questions and solutions for Class 12 Computer Science will be very useful for tests and exams and help you to score better marks

Class 12 Computer Science Header Files Worksheet Pdf

Header files, Find & Coorect errors, Outputs, Function Overloading ,Classes & Object
 
1. What do you understand by Polymorphism? Give a suitable example of the same.How matching is done in function overloading.
 
2. Using the concept of function overloading provide the appropriate prototype and coding for the following assumptions.
Print(50,’*’) – to display the character * 50 times
Print(void) – to display the character % 25 times
Print(’#’) – to display the character # 30 times
Print(10) – to display the character $ 10 times
 
3. Apply the Function overloading concept and provide the coding for the following assumptions.
Count(char[],char ) – to count and display the number of occurrences of a character in the character array.
Count(char[]) – to count & display the number of occurrences of the character ‘a’ in the character array.
Count(long) – to count the number of digits in the long variable.
 
4. Define the following : Data Encapsulation, Data Hiding, Class, Object, Data Abstraction (support with example)
 
5. Differentiate between public and private visibility modes in context of Object Oriented Programming using a suitable example illustrating each.
 
6. How are data abstraction and data encapsulation inter-related?
 
7. Find Header Files For The Following
 
(a) Write the names of the header files to which the following belong:
(i) setw() (ii) sqrt() (iii) toupper() (iv) frexp() (v) isalnum() (vi) pow() (vii)clrscr()
 
(b)Name the header files that shall be needed for the following code.
void main()
{ char str*+=” air force schools “;
cout<
}
8. Identify and correct the errors in the following :
(a ) #include [iostream.h]
class PAYITNOW
{
int Charge;
PUBLIC:
void Raise(){cin>>Charge;}
void Show{cout<
};
void main()
{
PAYITNOW P;
P.Raise();
Show();
}
(b ) #include
class MEMBER
{
int Mno;
float fees=0;
PUBLIC:
void Register(){cin>>Mno>>fees;}
void Display();
}
Class MEMBER::Display()
{cout<
};
9. (a) Give the output of the following program
#include
int a=3;
void demo(int x,int y,int &z)
{ a+= x+y ;
z= a+y;
y+=x;
cout<
}
void main()
{
int a=2, b=5;
demo(::a,a,b);
cout<<::a<
demo(::a,a,b); }
(b)Find the output of the following program
# include
struct play
{
int score, bonus;
};
void calculate ( play &p, int n=10)
{
p.score ++ ;
p.bonus +=n;
}
void main()
{
play pl={10,15};
calculate (pl,5);
cout<
calculate(pl);
cout<
calculate(pl,15);
cout<
 
10. Define a class in C++ with following description:
 
Private Members :
A data member Flight number of type integer
A data member Destination of type string
A data member Distance of type float
A data member Fuel of type float
A member function CALFUEL() to calculate the value of Fuel as per the following
criteria
Distance                                  Fuel
<=1000                                  500
more than 1000 and <=2000    1100
more than 2000                       2200
Public Members :
A function FEEDINFO() to allow user to enter values for Flight Number, Destination,Distance & call the function CALFUEL() to calculate the quantity of Fuel
A function SHOWINFO() to allow user to view the content of all the data members
 
11. Define a class batsman with the following specifications:
 
Private members:
bcode 4 digits, bname 20 characters, innings, notout, runs all of them integer type.
batavg, it is calculated according to the formula batavg =runs/(innings-notout)
calcavg() Function to compute batavg
Public members:
readdata() Function to accept value from bcode, name, innings, notout and invoke the function calcavg()
displaydata() Function to display all the data members on the screen.
 
12. Define a class Clothing in C++ with the following descriptions :
 
Private members :
Code of type string, Type of type string, Size of type integer, Material of type string and Price of type float
A function CalcPrice() which calculates and assigns the value of Price as follows :
For the value of Material as “ Cotton “
 
Type           Price (Rs.)
Trouser       1500
Shirt           1200
 
For material other than Cotton” the above mentioned Price gets reduced by 15%.
Public Members :
A constructor to assign initial values of Code , Type and Material with the word “
NOT ASSIGNED” and Size and Price with 0.
A function Enter() to input the values of the data members Code , Type , Size and Material and invoke the CalcPrice() function.
A function Show() which displays the content of all the data members of Clothing.


Please click on below link to download CBSE Class 12 Computer Science Header Files Worksheet

Practice Worksheets Class 12 Computer Science
CBSE Class 12 Computer Science All Chapters Worksheet
CBSE Class 12 Computer Science Arrays Worksheet
CBSE Class 12 Computer Science Binary Files Worksheet
CBSE Class 12 Computer Science Boolean Algebra Worksheet
CBSE Class 12 Computer Science C++ Worksheet Set A
CBSE Class 12 Computer Science C++ Worksheet Set B
CBSE Class 12 Computer Science Classes And Objects Worksheet
CBSE Class 12 Computer Science Communication Technology Worksheet
CBSE Class 12 Computer Science Computer Networks Worksheet Set A
CBSE Class 12 Computer Science Computer Networks Worksheet Set B
CBSE Class 12 Computer Science Computer Networks Worksheet Set C
CBSE Class 12 Computer Science Constructor And Destructor Worksheet Set A
CBSE Class 12 Computer Science Constructor And Destructor Worksheet Set A
CBSE Class 12 Computer Science Constructor And Destructor Worksheet Set B
CBSE Class 12 Computer Science Data Base Concept Worksheet
CBSE Class 12 Computer Science Data File Handling Worksheet
CBSE Class 12 Computer Science Data Management Worksheet Set A
CBSE Class 12 Computer Science Data Management Worksheet Set B
CBSE Class 12 Computer Science Data Management Worksheet Set C
CBSE Class 12 Computer Science Data Management Worksheet Set D
CBSE Class 12 Computer Science Data Management Worksheet Set E
CBSE Class 12 Computer Science File Handling Worksheet Set A
CBSE Class 12 Computer Science File Handling Worksheet Set B
CBSE Class 12 Computer Science File Handling Worksheet Set C
CBSE Class 12 Computer Science Function In Python Program Worksheet
CBSE Class 12 Computer Science Functions Worksheet Set A
CBSE Class 12 Computer Science Functions Worksheet Set B
CBSE Class 12 Computer Science Header Files Worksheet
CBSE Class 12 Computer Science Implementation of Queue Worksheet Set A
CBSE Class 12 Computer Science Implementation of Queue Worksheet Set B
CBSE Class 12 Computer Science Implementation of Stack Worksheet
CBSE Class 12 Computer Science Inheritance Worksheet Set A
CBSE Class 12 Computer Science Inheritance Worksheet Set B
CBSE Class 12 Computer Science Pointers Worksheet
CBSE Class 12 Computer Science Programming and Computational Thinking Worksheet Set A
CBSE Class 12 Computer Science Programming and Computational Thinking Worksheet Set B
CBSE Class 12 Computer Science Programming and Computational Thinking Worksheet Set C
CBSE Class 12 Computer Science Programming and Computational Thinking Worksheet Set D
CBSE Class 12 Computer Science Programming and Computational Thinking Worksheet Set E
CBSE Class 12 Computer Science Programming and Computational Thinking Worksheet Set F
CBSE Class 12 Computer Science Python Worksheet
CBSE Class 12 Computer Science Recursion Worksheet
CBSE Class 12 Computer Science Revision Worksheet
CBSE Class 12 Computer Science Society Law and Ethics Worksheet Set A
CBSE Class 12 Computer Science Society Law and Ethics Worksheet Set B
CBSE Class 12 Computer Science Society Law and Ethics Worksheet Set C
CBSE Class 12 Computer Science Society Law and Ethics Worksheet Set D
CBSE Class 12 Computer Science Society Law and Ethics Worksheet Set E
CBSE Class 12 Computer Science Sql Worksheet Set A
CBSE Class 12 Computer Science Sql Worksheet Set B
CBSE Class 12 Computer Science Using Python Libraries Worksheet
CBSE Class 12 Computer Science Worksheet Set A Solved
CBSE Class 12 Computer Science Worksheet Set B Solved
CBSE Class 12 Computer Science Worksheet Set C Solved
CBSE Class 12 Computer Science Worksheet Set D Solved
CBSE Class 12 Computer Science Worksheet Set E Solved
CBSE Class 12 Computer Science Worksheet Set F Solved

Header Files CBSE Class 12 Computer Science Worksheet

The above practice worksheet for Header Files has been designed as per the current syllabus for Class 12 Computer Science released by CBSE. Students studying in Class 12 can easily download in Pdf format and practice the questions and answers given in the above practice worksheet for Class 12 Computer Science on a daily basis. All the latest practice worksheets with solutions have been developed for Computer Science by referring to the most important and regularly asked topics that the students should learn and practice to get better scores in their examinations. Studiestoday is the best portal for Printable Worksheets for Class 12 Computer Science students to get all the latest study material free of cost. Teachers of studiestoday have referred to the NCERT book for Class 12 Computer Science to develop the Computer Science Class 12 worksheet. After solving the questions given in the practice sheet which have been developed as per the latest course books also refer to the NCERT solutions for Class 12 Computer Science designed by our teachers. After solving these you should also refer to Class 12 Computer Science MCQ Test for the same chapter. We have also provided a lot of other Worksheets for Class 12 Computer Science which you can use to further make yourself better in Computer Science.

Where can I download latest CBSE Practice worksheets for Class 12 Computer Science Header Files

You can download the CBSE Practice worksheets for Class 12 Computer Science Header Files for the latest session from StudiesToday.com

Are the Class 12 Computer Science Header Files Practice worksheets available for the latest session

Yes, the Practice worksheets issued for Header Files Class 12 Computer Science have been made available here for the latest academic session

Is there any charge for the Practice worksheets for Class 12 Computer Science Header Files

There is no charge for the Practice worksheets for Class 12 CBSE Computer Science Header Files you can download everything free

How can I improve my scores by solving questions given in Practice worksheets in Header Files Class 12 Computer Science

Regular revision of practice worksheets given on studiestoday for Class 12 subject Computer Science Header Files can help you to score better marks in exams

Are there any websites that offer free Practice test papers for Class 12 Computer Science Header Files

Yes, studiestoday.com provides all the latest Class 12 Computer Science Header Files test practice sheets with answers based on the latest books for the current academic session