0% found this document useful (0 votes)
23 views3 pages

Class 12 Pract - Ques CS

The document contains 20 programming problems related to computer science. The problems cover a range of fundamental programming concepts like arithmetic operations, string manipulation, file handling, searching/sorting algorithms, data structures, random number generation, SQL queries and integrating SQL with Python.

Uploaded by

jhonnybhaiya310
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views3 pages

Class 12 Pract - Ques CS

The document contains 20 programming problems related to computer science. The problems cover a range of fundamental programming concepts like arithmetic operations, string manipulation, file handling, searching/sorting algorithms, data structures, random number generation, SQL queries and integrating SQL with Python.

Uploaded by

jhonnybhaiya310
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

S. K. P. VIDYA-VIHAR, B.

DEOGHAR
Practical Questions

Computer Science (083)

Program 1: Program to enter two numbers and print the arithmetic operations
like +,-,*, /, // and %.

Program 2: Write a program to find whether an inputted number is palindrome


or not.

Program 3: Write a Program to check if the entered number is Armstrong or not.

Program 4: Write a Program to find factorial of the entered number.

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 8: Read a file line by line and print it.

Program 9: Read a text file and display the number of


vowels/consonants/uppercase/lowercase characters in the file.
Program 10: Remove all the lines that start with character “A” in a file and write
it into another file.

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

UPDATE table to modify data

ORDER By to display data in ascending / descending order

DELETE to remove tuple(s)

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.

*******************************

You might also like