CBSE Class 12 Computer Science C++ Programming Worksheet

Read and download free pdf of CBSE Class 12 Computer Science C++ Programming Worksheet. Students and teachers of Class 12 Computer Science can get free printable Worksheets for Class 12 Computer Science C++ Programming in PDF format prepared as per the latest syllabus and examination pattern in your schools. Class 12 students should practice questions and answers given here for Computer Science in Class 12 which will help them to improve your knowledge of all important chapters and its topics. Students should also download free pdf of Class 12 Computer Science Worksheets prepared by teachers as per the latest Computer Science books and syllabus issued this academic year and solve important problems with solutions on daily basis to get more score in school exams and tests

Worksheet for Class 12 Computer Science C++ Programming

Class 12 Computer Science students should refer to the following printable worksheet in Pdf for C++ Programming in Class 12. This test paper with questions and answers for Class 12 will be very useful for exams and help you to score good marks

Class 12 Computer Science Worksheet for C++ Programming

1. Write a program to input two numbers m and n and display first m multiples of n.

2. Write a program to input day number of a week and display the corresponding day name.

3. Write a menu driven program to calculate the volume of a cube, cuboid, or cylinder depending upon user’s choice.

4. Write a program to read a string and print out the following :
1) No. of capital alphabets,
2) No. of small alphabets,
3) No. of non-alphabets

5. Write a program to read a string and print it after replacing each of its capital alphabets by the corresponding small alphabet and each small alphabet by its corresponding capital alphabet.

6. Write a program to input 10 elements in an array and then display these elements.

7. Write a program to input 10 elements in an array and then display these elements in reverse order.

8. Write a program to input elements in a 2D array and then display this array in matrix form.

9. Write a program to input elements in a 2D array and then display the sum of main diagonal elements of this array.

10. A class STUDENT has 3 data members:
Name, Roll Number, Marks of 5 subjects, Stream
and member functions to input and display data. It also has a function member to assign stream on the basis of the table given below:
Average Marks Stream
96% or more Computer Science
91% - 95% Electronics
86% - 90% Mechanical
81% - 85% Electrical
75% - 80% Chemical
71% - 75% Civil
Declare a structure STUDENT and define the member functions.
Write a program to define a structure STUDENT and input the marks of n (<=5) students and for each student allot the stream.

11. Define a class student with the following specifications:
Private members of the class:
Admission Number - An Integer
Name - string of 20 characters
Class - Integer
Roll Number - Integer
Public members of the class:
getdata() - To input the data
showdata() - To display the data
Write a program to define an array of 10 objects of this class, input the data in this array and then display this list.

12. Define a class MP in C++ with following description :
Private members :
a. MP name of type string
b. Party name of type string
c. No. of votes received as integer
d. Nomination money as float
Public members :
• A constructor to initialize MP name as NULL, Party name as “Independent” & nomination money as 5000.
• A destructor to destruct MP class object.
• A function INMP( ) to input data for MP.
• A function OUTMP( ) to allow user to view the content of all the data members.

13. Write a program that show the concept of Multiple inheritance.

14. Create a class student with data members name, class, section, roll No. and function members getdata(), printdata(), and promote(). From this class derive a class 'Sr_std' with additional data member stream. Also include another function member change_stream().
Use these classes in a program.

15. Write a program to input the name of a text file from the user and display:
a) The number of blanks present in the file.
b) The number of lines present in the file.
c) The number of capital alphabets present in the file.
d) The number of small alphabets present in the file.
e) The number of lines starting with a capital alphabet.
f) The number of words present in the file.
g) The number of digits present in the file.
h) to count the number of complete words as “to” and “are”

16. Write a program to input the name of a text file from the user. Then input a string and search for the string in the file. The program should an appropriate message if the file with the given name is not present.

17. Write a program to input a text file name, read the contents of the file and create a new file named COPY.TXT, which shall contain only those words from the original file which don’t start with an uppercase vowel (i.e., with ‘A’, ‘E’, ‘I’, ‘O’, ‘U’). For example, if the original file contains
The First Step To Getting The Things You Want Out Of Life is This: Decide What You Want. - Ben Stein
Then the text file COPY.TXT shall contain
The First Step To Getting The Things You Want Life is This: Decide What You Want. - Ben Stein

18. Write an interactive C++ program to open a text file and then display the following:
1) all the alphabetic characters present in the file.
2) Number of numeric characters present in the file.

19. Create a text file (w/o using any C++ program) containing the names of students and their marks in the following format:
Ajay 350
Vijay 340
where name and marks are separated by either a space or a tab and end of line is a record separator. Write a program to read this file and display the records in two columns name and marks. Within the name column, the students' names are to be left justified and marks are to be right justified in the marks column.

20. Declare a structure telerec in C++, containing name (20 characters) and telephone number. Write a program to maintain a file of telephone records. The program should allow the following functions on the file:
1) To append records in the file.
2) Display the name for a given telephone number. If the telephone number does not exist then display error message "record not found".
3) Display the telephone number(s) for a given name. If the name does not exist then display error message "record not found".

21. A blood bank maintains a data file that contains the following information for every donor: Name, Date of Birth, Telephone number, Blood group. Write a program in C++ to do the following:
1) Given a blood group, display name, date of birth and phone number of all the persons of the given blood group.
2) Append records in the file.
3) Input a telephone number and modify the corresponding record.

22. Create two payroll files COMP1.DAT and COMP2.DAT. Each of the files should have the following fields: EmpNo : Integer Name: A string of 20 characters Salary : A floating point no.
Both the files should be created in the increasing order of the EmpNo. Your program should then merge the two files and obtain a third file NEWCOMP.DAT. The program should also display the data from all the three files.Do not use arrays for merging and sorting of the files. You can assume that the EmpNo are unique.

23. Write a menu driven program in C++ to perform the following functions on a binary file “BOOK.DAT” containing objects of the following class:
class Book
{ int BookNo; char Book_name[20];
public: void enterdetails(); void showdetails();
int Rbook_no() {return Book_no;}
int Rbook_name() {return Book_name;}
};
1. Append Records
2. Modify a record for a given book no.
3. Delete a record with a given book no.
4. Search for a record with a given Book name

More Worksheets for Class 12 Computer Science
CBSE Class 12 Computer Science Arrays Stacks Queues And Linked List Worksheet Set A
CBSE Class 12 Computer Science Arrays Stacks Queues And Linked List Worksheet Set B
CBSE Class 12 Computer Science Arrays Worksheet
CBSE Class 12 Computer Science Boolean Algebra Worksheet Set A
CBSE Class 12 Computer Science Boolean Algebra Worksheet Set B
CBSE Class 12 Computer Science C++ Programming Worksheet
CBSE Class 12 Computer Science Case Study Based Questions
CBSE Class 12 Computer Science Class And Objects Worksheet Set A
CBSE Class 12 Computer Science Class And Objects Worksheet Set B
CBSE Class 12 Computer Science Classes Objects Constructors And Destructors Worksheet
CBSE Class 12 Computer Science Communication And Network Concepts Worksheet
CBSE Class 12 Computer Science Computer Networking Worksheet
CBSE Class 12 Computer Science Constructors And Destructors Worksheet
CBSE Class 12 Computer Science Data File Handling Worksheet
CBSE Class 12 Computer Science Database Concepts And Sql Worksheet
CBSE Class 12 Computer Science Dbms And Structured Query Language Worksheet
CBSE Class 12 Computer Science Flow Of Control Worksheet
CBSE Class 12 Computer Science Function Overloading Worksheet
CBSE Class 12 Computer Science Function And Structures Worksheet
CBSE Class 12 Computer Science Fundamentals Of Computer Worksheet
CBSE Class 12 Computer Science Inheritance Extending Classes Worksheet
CBSE Class 12 Computer Science Linked Lists Stacks And Queues Worksheet
CBSE Class 12 Computer Science Network And Communication Technology Worksheet
CBSE Class 12 Computer Science Object Oriented Programming In C++ Worksheet
CBSE Class 12 Computer Science Object Oriented Programming Worksheet
CBSE Class 12 Computer Science Oop Classes And Objects Worksheet
CBSE Class 12 Computer Science Pointer Worksheet
CBSE Class 12 Computer Science Program List Worksheet
CBSE Class 12 Computer Science Programming In C++ Worksheet
CBSE Class 12 Computer Science Revision Worksheet Set A
CBSE Class 12 Computer Science Revision Worksheet Set B
CBSE Class 12 Computer Science Revision Worksheet Set C
CBSE Class 12 Computer Science SQL Worksheet Set A
CBSE Class 12 Computer Science SQL Worksheet Set B
CBSE Class 12 Computer Science Stacks Queues And Linked List Worksheet
CBSE Class 12 Computer Science Sure Shot Questions Worksheet Set A
CBSE Class 12 Computer Science Sure Shot Questions Worksheet Set B
CBSE Class 12 Computer Science Sure Shot Questions Worksheet Set C
CBSE Class 12 Computer Science Sure Shot Questions Worksheet Set D
CBSE Class 12 Computer Science Text Files Worksheet
CBSE Class 12 Computers Boolean Algebra Worksheet
CBSE Class 12 Computers Classes And Objects Worksheet
CBSE Class 12 Computers Constructors And Destructors Worksheet
CBSE Class 12 Computers Data Structures Worksheet
CBSE Class 12 Computers Files Worksheet
CBSE Class 12 Computers Inheritance Worksheet
CBSE Class 12 Computers Networking Worksheet
CBSE Class 12 Computers Object Oriented Programming Worksheet
CBSE Class 12 Computers Pointers Worksheet

Worksheet for CBSE Computer Science Class 12 C++ Programming

We hope students liked the above worksheet for C++ Programming designed as per the latest syllabus for Class 12 Computer Science released by CBSE. Students of Class 12 should download in Pdf format and practice the questions and solutions given in the above worksheet for Class 12 Computer Science on a daily basis. All the latest worksheets with answers 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 class tests and examinations. Expert 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 worksheet 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. We have also provided a lot of MCQ questions for Class 12 Computer Science in the worksheet so that you can solve questions relating to all topics given in each chapter.

Where can I download latest CBSE Printable worksheets for Class 12 Computer Science C++ Programming

You can download the CBSE Printable worksheets for Class 12 Computer Science C++ Programming for latest session from StudiesToday.com

Is there any charge for the Printable worksheets for Class 12 Computer Science C++ Programming

There is no charge for the Printable worksheets for Class 12 CBSE Computer Science C++ Programming you can download everything free

Are there any websites that offer free test sheets for Class 12 Computer Science C++ Programming

Yes, studiestoday.com provides all latest NCERT C++ Programming Class 12 Computer Science test sheets with answers based on the latest books for the current academic session

What topics are covered in CBSE Class 12 Computer Science C++ Programming worksheets?

CBSE Class 12 Computer Science C++ Programming worksheets cover all topics as per the latest syllabus for current academic year.

How can I use worksheets to improve my Class 12 Computer Science scores?

Regular practice with Class 12 Computer Science worksheets can help you understand all concepts better, you can identify weak areas, and improve your speed and accuracy.