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 Study Material
CBSE Class 12 Computer Science C++ Programming Worksheet
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. Studiestoday is the best portal for Class 12 students to get all the latest study material free of cost.
Worksheet for Computer Science CBSE Class 12 C++ Programming
Expert teachers of studiestoday have referred to the NCERT book for Class 12 Computer Science to develop the Computer Science Class 12 worksheet. If you download the practice worksheet for one chapter daily, you will get higher and better marks in Class 12 exams this year as you will have stronger concepts. Daily questions practice of Computer Science worksheet and its study material will help students to have a stronger understanding of all concepts and also make them experts on all scoring topics. You can easily download and save all revision worksheet for Class 12 Computer Science also from www.studiestoday.com without paying anything in Pdf format. 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
C++ Programming worksheet Computer Science CBSE Class 12
All worksheets given above for Class 12 Computer Science have been made as per the latest syllabus and books issued for the current academic year. The students of Class 12 can be rest assured that the answers have been also provided by our teachers for all worksheet of Computer Science so that you are able to solve the questions and then compare your answers with the solutions provided by us. 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. All study material for Class 12 Computer Science students have been given on studiestoday.
C++ Programming CBSE Class 12 Computer Science Worksheet
Regular worksheet practice helps to gain more practice in solving questions to obtain a more comprehensive understanding of C++ Programming concepts. Worksheets play an important role in developing an understanding of C++ Programming in CBSE Class 12. Students can download and save or print all the worksheets, printable assignments, and practice sheets of the above chapter in Class 12 Computer Science in Pdf format from studiestoday. You can print or read them online on your computer or mobile or any other device. After solving these you should also refer to Class 12 Computer Science MCQ Test for the same chapter.
Worksheet for CBSE Computer Science Class 12 C++ Programming
CBSE Class 12 Computer Science best textbooks have been used for writing the problems given in the above worksheet. If you have tests coming up then you should revise all concepts relating to C++ Programming and then take out a print of the above worksheet and attempt all problems. 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
You can download the CBSE Printable worksheets for Class 12 Computer Science C++ Programming for latest session from StudiesToday.com
Yes, you can click on the links above and download Printable worksheets in PDFs for C++ Programming Class 12 for Computer Science
Yes, the Printable worksheets issued for Class 12 Computer Science C++ Programming have been made available here for latest academic session
You can easily access the links above and download the Class 12 Printable worksheets Computer Science C++ Programming for each chapter
There is no charge for the Printable worksheets for Class 12 CBSE Computer Science C++ Programming you can download everything free
Regular revision of practice worksheets given on studiestoday for Class 12 subject Computer Science C++ Programming can help you to score better marks in exams
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
Yes, studiestoday provides worksheets in Pdf for C++ Programming Class 12 Computer Science in mobile-friendly format and can be accessed on smartphones and tablets.
Yes, worksheets for C++ Programming Class 12 Computer Science are available in multiple languages, including English, Hindi
CBSE Class 12 Computer Science worksheets help students practice all concepts given in their books, improve problem-solving skills, and prepare effectively for CBSE exams
CBSE Class 12 Computer Science C++ Programming worksheets cover all topics as per the latest syllabus for current academic year.
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.
All worksheets for Class 12 Computer Science and for C++ Programming have solved questions with step by step guide for each solution
Practice atleast one worksheet of C++ Programming every day for Class 12 Computer Science