Class 12 Pract - Ques CS
Class 12 Pract - Ques CS
DEOGHAR
Practical Questions
Program 1: Program to enter two numbers and print the arithmetic operations
like +,-,*, /, // and %.
Program 5: Write a Program to enter the number of terms and to print the
Fibonacci Series.
Program 6: Write a Program to enter the string and to check if it’s palindrome or
not using loop.
Program 7: Write a Program to read any text file and display all three letter
words with its counting.
Program 11: Create a binary file with name and roll no. Search for a given roll
number and display the name, if not found display appropriate message.
Program 12: Write a random number generator that generates random numbers
between 1 and 6(simulates a dice)
Program 13: Write a program to search a number in a list using linear search and
binary search technique.
Program 14: Write a python program to implement a stack using a list data
structure.
Program 15: Take a sample of any text file and find most commonly occurring
words.
Program 16: Read a text file line by line and display each word separated by a #
Program 17: Create a binary file with roll number, name and marks. Search for a
given roll number and update its marks, if not found display appropriate
message.
Program 18: Create a csv file with user-id and password. Search the password for
given user-id. If not found display appropriate message.
Program 19: Create a student table and insert data. Implement the following SQL
commands on the student table:
ALTER table to add new attributes / modify data type / drop attribute
GROUP BY and find the min, max, sum, count and average
Program 20: Integrate SQL with Python by importing the MySQL module and do
all DML operations on data of the table.
*******************************