Class 12 Computer Science Practical file Questions with answers [ Download ]
Class 12 Computer Science Practical file Questions with answers contains probable questions along with their sample answers. The practical file is one of the essential articles that every student must prepare for their final practical examination.
The practical file question of this set contains questions that will help you not only to revise your whole computer science syllabus but also help you to prepare your practical file as per the new revised syllabus. These questions are not in any specific order so check all the question and their solutions. Each question may have many solutions but we covered only a single solution.
Computer Science Practical file Questions
Q1. WAP a program to input marks of 5 subjects, calculate and display total marks and average marks of a student.
Q2. WAP to input total units which was consumed by a customer , calculate and display total charged to be paid by the customer .Electric Bill charges will calculate as per following condition.
No. of units Rate(in Rs)
First 100 Units 1 Rs per unit.
Next200 Units 2 Rs per unit.
Above300 Units 4 Rs per unit.
Q3. Write a menu driven program to calculate: Area of circle[A=πr2]
Area of squire [A=a*a] Area of rectangle[A=l*b]
Q4. Write a program to check whether the entered number if prime or not.
Q5. WAP to input a number, calculate and display sum of each digit of that given number. For example: number is 456, Sum is 4+5+6= 15
Q6. WAP to calculate and display sum of the following series: X+X2/!2 +X3/!3+………. n terms.
Q7. Write a program in python ,count and display the number of vowels, consonants , uppercase, lowercase characters in string.
Q7. Write a UDF in python, it will take three arguments list(sequence of elements), its size and finding element . Function search and return 1 if element is present in the given list otherwise return -1 . Using Binary search.
Q9. Write a program in python , to input a string check and display given string is a palindrome or not.
Q10. Write a program in python, to create a number list. Search and display largest and smallest number present in a list . Without using built-in function.
Q11. Write a program in python, to create a number list. Calculate and display sum of those elements whose last digit is 5.
Q12. Write a program in python, to create two number lists a and b . Swap and display all elements of both lists.
Q13. Write a UDF in python, it will take two arguments list(sequence of elements) and its size . Replace and display first half elements with second half elements of a list.
For example: list elements are : 1 2 3 4 5
Output is : 4 5 3 1 2
Q14. Write a UDF in python, it will take two arguments list(sequence of elements) and its size. Function arrange and display elements in ascending order.
Using selection sort.
Q15. Write a function in PYTHON that counts the number of “Me” or “My” words present in a text file “DIARY.TXT”. If the “DIARY.TXT” contents are as follows:
My first book was Me and My Family. It gave me chance to be Known to the world.
The output of the function should be:
Count of Me/My in file: 4
Q16. Write a function in PYTHON to read the contents of a text file “Places.Txt” and display all those lines on screen which are either starting with ‘P’ or with ‘S’.
Q17. Write a function EUCount() in PYTHON, which should read each character of a text file IMP.TXT, should count and display the occurrences of alphabets E and U (including small cases e and u too).
Q18. Write a function in PYTHON to search for a BookNo from a binary file “BOOK.DAT”, assuming the binary file is containing the records of the following type: (“BookNo”, “Book_name”). Assume that BookNo is an integer.
Q19. Write a function in Python for PushS(List) and for PopS(List) for performing Push and Pop operations with a stack of List containing integers.
Q20. Write a function in Python for InsertQ(List) and for RemoveQ(List) for performing insertion and removal operations with a queue of List containing name of students.
Q21. Write a menu-driven program implementing user-defined functions to perform different functions on a csv file “student” such as:
- Write a single record to csv.
- Write all the records in one single go onto the
- Display the contents of the csv
Q22. Write a menu-driven program to perform all the basic operations using dictionary on student binary file such as inserting, reading, updating, searching and deleting a record.
Practical file Questions Based on SQL
Q1. Consider the tables EMPLOYEE and SALGRADE given below and answer (a) and (b)parts of this question.