Vani Vidyalaya Sr. Sec. & Jr.
College
Half Yearly Practical Examination 2024-25
COMPUTER SCIENCE (083)
DATE: 02.12.24(Mon) XII D - BATCH IV: ROLL NO 12415, 12401 TO 12408
DATE: 06.12.24(Fri) XII B - BATCH IV: ROLL NO 12225 TO 12241
I. Write a menu driven program that inputs a string and
1. Creates an encrypted string by embedding a symbol after each character.
2. Find if the string is Palindrome.
II. Write a program to create CSV file and store empno, name, salary and search any
emp no and display name, salary and if not found appropriate message.
III. Write a program to create two text files and merge the contents into “mergefile.txt”.
IV. Write a program to create a CSV file and also display the contents of the file
V. Write a program to implement stack operations in Python.
VI. Write SQL commands for the statements (i) to (iv) on the table MOVIE
MovieID Movie_name Category ReleaseDate ProductionCost BusinessCost
001 Hindi Movie Musical 2018/04/23 124500 130000
002 Tamil Movie Action 2016/05/17 112000 118000
003 English Movie Horror 2017/08/06 245000 360000
004 Punjabi Movie Comedy 2017/01/04 72000 100000
(i) Display all the information from the movie table.
SELECT * FROM MOVIE;
(ii) List the different categories of movies.
SELECT CATEGORY FROM MOVIE;
OR SELECT DISTINCT (CATEGORY) FROM MOVIE;
(iii) List details of all movies which fall in the category of Comedy or Action.
SELECT * FROM MOVIE WHERE CATEGORY = “COMEDY” OR CATEGORY = “ACTION”;
(iv)List MoviesId , MovieName and Cost of All movies with Product Cost greater than 10,000 and less
than 1,00,000
SELECT MOVIEID,MOVIE_NAME, PRODUCTIONCOST FROM MOVIE WHERE
PRODUCTIONCOST > 10000 OR PRODUCTION COST < 100000;