COMPUTER SCIENCE PRACTICALS
NAME: BHANI AHUJA
CLASS: 12-E
ROLL NO. :
CBSE PRACTICAL LIST
READ A TEXT FILE LINE BY LINE AND DISPLAY
EACH WORD SEPARATED BY A #.
OUTPUT:
READ A TEXT FILE AND DISPLAY THE NUMBER
OF
VOWELS/CONSONANTS/UPPERCASE/LOWERCASE
CHARACTERS IN THE FILE
OUTPUT
TO WRITE A PYTHON PROGRAM TO READ LINES
FROM A TEXT FILE "SAMPLE.TXT" AND COPY
THOSE LINES INTO ANOTHER FILE WHICH ARE
STARTING WITH AN ALPHABET 'A' OR 'A'.
OUTPUT
TO WRITE A PYTHON PROGRAM TOCREATE A
BINARY FILE WITH ROLL NUMBER AND NAME.
SEARCH FOR A GIVEN ROLL NUMBER AND
DISPLAY THE NAME, IF NOT FOUND DISPLAY
APPROPRIATE MESSAGE.
OUTPUT:
TO WRITE A PYTHON PROGRAM TO CREATE A
BINARY FILE WITH ROLL NUMBER, NAME, MARK
AND UPDATE/MODIFY THE MARK FOR A GIVEN
ROLL NUMBER.
OUTPUT
TO WRITE A PYTHON PROGRAM CREATE A
CSV FILE TO STORE EMPNO, NAME, SALARY
AND
SEARCH ANY EMPNO AND DISPLAY NAME,
SALARY AND IF NOT FOUND DISPLAY
APPROPRIATE
MESSAGE.
OUTPUT
TO WRITE A PYTHON PROGRAM TO DISPLAY
FIBONACCI SERIES UP TO ‘N’ NUMBERS.
OUTPUT
TO WRITE A PYTHON PROGRAM TO GENERATE
RANDOM NUMBER BETWEEN 1 TO 6 TO
SIMULATE
THE DICE.
OUTPUT
TO WRITE A PYTHON PROGRAM TO IMPLEMENT
STACK USING A LIST DATA-STRUCTURE.
OUTPUT
TO WRITE A PYTHON PROGRAM TO INTEGRATE
MYSQL WITH PYTHON BY INSERTING RECORDS
TO
EMP TABLE AND DISPLAY THE RECORDS.
PYTHON OUPUT
SQL OUTPUT
TO WRITE A PYTHON PROGRAM TO INTEGRATE
MYSQL WITH PYTHON TO SEARCH AN
EMPLOYEE
USING EMPID AND DISPLAY THE RECORD IF
PRESENT IN ALREADY EXISTING TABLE EMP, IF
NOT
DISPLAY THE APPROPRIATE MESSAGE.
OUTPUT
SQL OUTPUT
TO WRITE A PYTHON PROGRAM TO INTEGRATE
MYSQL WITH PYTHON TO SEARCH AN
EMPLOYEE
USING EMPID AND UPDATE THE SALARY OF AN
EMPLOYEE IF PRESENT IN ALREADY EXISTING
TABLEEMP, IF NOT DISPLAY THE APPROPRIATE
MESSAGE.
OUTPUT
SQL OUTPUT
SQL COMMANDS