Вы находитесь на странице: 1из 2

CLASS XII (PRACTICALS)

1. Write a program using classes and objects to create the class Garment.
2. Write a menu driven program to create the class BANK to intialise ,deposit ,withdraw and display the
details of 3 customers.
3. Write a program to create the class ADMISSION that generates 2 random admission numbers from
the list of given admission numbers.
4. Write a program to show the working of a constructor and a destructor in a class.
5. Write a program to maintain the details of college students and print them using inheritance.

6. Write a program to show constructor overloading.


7. Write a menu driven program to create the text file that

i) count the no. of words in a file


ii) count the no. of lines in a flie
iii) count and display the words starting with the vowels and store them in new file.
iv) count and display the words starting with uppercase alphabets
v) count the no. of blank spaces.

8. Write a program to create the binary file with 5 records and display them.
9. Write a program to search a record in a binary file.
10. Write a program to append a record in a binary file.
11. Write a program to insert data in a binary file.
12. Write a program to delete a record from the binary file.
13. Write a program to modify the data in already created binary file.
14. Given the binary file TELEPHONE.DAT , containing the records of the following

class Directory:
class Directory
{
char name[20];
char address[30];
char areaCode[5];
char phone_no[15];

public:
void register( );
void show( );
int checkCode( char AC[] )
{
return strcmp(areaCode, AC);
}
};
Write a program using function COPYABC( ) in C++ , that would copy only those records having
areaCode as 123 from TELEPHONE.DAT to TELEBACK.DAT.
16. Create a menu driven program to show searching operation in 1-D array using:
1. Linear Search
2. Binary Search
17. Create a menu driven program to insert & delete an element in a sorted array.
18. Write a menu driven program to sort elements using selection sort and bubble sort.
19. Write a program to merge two 1-D arrays into third array.
20. Write a program to convert 1-D array into 2-D array.
21. Write a menu driven program for pushing and popping in a stack implemented as linked list.
22. Write a program to show insertion and deletion from the linked queue.
23. To show the usage of various built-in functions in SQL.
24. Queries based on the joining of two tables.

Вам также может понравиться