COMPUTER SCIENCE - 083
JOURNAL
Name of Candidate: Srinivasan
Roll No. of Candidate: 14769895
Class: XII A
1
Certificate
Department of Information Technology
Global Indian International School (GIIS)
SMART Campus, Punggol, Singapore
This is to certify that this practical file is a genuine work of
_____________ Roll No.____ undertaken as a part of fulfillment
of Computer Science practical syllabus for A.I.S.S.C.E. 2023 -
2024 to be conducted by C.B.S.E. and has been completed within
stipulated time period under my guidance and supervision.
Internal Examiner Signature External Examiner Signature
Internal Examiner Number External Examiner Number
Date: Date:
2
3
Certificate
Department of Information Technology
Global Indian International School (GIIS)
SMART Campus, Punggol, Singapore
This is to certify that this practical file is a genuine work of
_____________ Roll No.____ undertaken as a part of fulfillment
of Computer Science practical syllabus for A.I.S.S.C.E. 2023 -
2024 to be conducted by C.B.S.E. and has been completed within
stipulated time period under my guidance and supervision.
Internal Examiner Signature External Examiner Signature
Internal Examiner Number External Examiner Number
Date: Date:
4
Revision tour
1. Write a program to display ASCII code of a character and vice versa.
2 Write a program to input a character and to print whether a given character is an
alphabet, digit or any other character.
3 Chapter 1 : Type C Ques 7,8,11
5
Functions
1. Write a python function sin(x,n) to calculate the value of sin(x) using its taylor series
expansion up to n terms.
2 Program to perform Linear Search. [Iteratively]
3 Program to perform Binary Search. [Iteratively]
4 Program to perform Bubble sort
5 Program to perform Insertion sort
6 Create a menu driven calculator to perform arithmetic functions
processing to be done in different function styles
Program runs until user wants
7 Write a program that accepts 3 integers from user
pass them to function and return sum of values to main
dx
main to pass sum to other function that calculates average and returns to main
Main to print sum and average
8 Write a random number generator that generates random numbers between 1 and 6
(simulates a dice).
6
Modules
9. Write a program to create a library in python and import it in a program.
Library contains
Area_rect.py with function rectangle,
Area_square.py with function square,
Area_Tri.py with function triangle
Program do display menu to user and calculate areas accordingly
10 Write a module that has two functions..
1) The first function takes in string as a parameter and then prints the element one by
one. (easy)
2) The second function arranges the string according to the ASCII values of the
Characters. (hard)
3) Add '''docstrings''' to the module
Call the module from a file placed in the
same directory.
7
File Handling
16 Read a text file and display the number of vowels/consonants/uppercase/lowercase
characters in the file
17 Read a text file line by line and display each word separated by a #.
18 Write a program to count number of words in a file.
19 Write a program to write those lines which have the character 'p' from one text file to
another text file.
20 Write a program to find the most common words in a file.
21 Write a program to perform read and write operation with .csv file.
22 Remove all the lines that contain the character 'a' in a file and write it to another file
Create a binary file with name and roll number. Search for a given roll number and
display the name, if not found display appropriate message.
23 Create a binary file with roll number, name and marks. Input a roll number and update
the marks.
24 Create a CSV file by entering user-id and password, read and search the password for
given user id.
25 Write code to do following
1. Create an Excel file (save as csv)
2. Import file created in part 1 in Python file and display content of csv
3. Append content to file created in part 1 through python. file (read values from user)
4. Display updated csv file from python file
26 Appending content to the file
1. create a file with ‘w’
2. print original file by reading with ‘r’
3. add content to file with ‘a’
4. reprint file to show updated content
8
27 Write a Python program to
1. Create a binary file (read Item_code, Item_Name, Item_Price, Item_Qty from user
and write to file)
write as many objects as user wants
2. Read from binary file (display contents of file created in part 1
3. Search for a particular Item_code in this file and print if it exists or not
4. Modify record of a particular user entered Item_code ( use seek and tell pointers to
set pointer position
Sample
9
Topic Functions
Program
1 Write a program to display ASCII code of a character and vice versa.
Source
Code
Output
10
Topic Functions
Program Write a program to input a character and to print whether a given character is an alphabet,
2 digit or any other character.
Source
Code
Output
11
Topic Functions
Program \
3A Chapter 1 : Type C Ques 7
Source
Code
Output
12
Topic Functions
Program \
3b Chapter 1 : Type C Ques 8
Source
Code
Output
13
Topic Functions
Program
3c Chapter 1 : Type C Ques 11
Source
Code
Output
14
Topic Functions
Program \
4 Write a python function sin(x,n) to calculate the value of sin(x) using its taylor series
expansion up to n terms.
Source
Code
Output
15
Topic Functions
Program Program to perform Linear Search. [Iteratively]
5
Source
Code
Output
16
Topic Functions
Program Program to perform Binary Search. [Iteratively]
6
Source
Code
Output
17
Topic Functions
Program \
7 Program to perform Bubble sort
Source
Code
Output
18
Topic Functions
Program
8 Program to perform Insertion sort
Source
Code
Output
19
Topic Functions
Program Create a menu driven calculator to perform arithmetic functions
9 processing to be done in different function styles
Program runs until user wants
Source
Code
Output
20
Topic Functions
Program Write a program that accepts 3 integers from user
10 pass them to function and return sum of values to main
dx
main to pass sum to other function that calculates average and returns to main
Main to print sum and average
Source
Code
Output
21
Topic Functions
Program \
11 Write a random number generator that generates random numbers between 1 and 6
(simulates a dice).
Source
Code
Output
22
Topic Functions
Program Write a program to create a library in python and import it in a program.
12 Library contains
Area_rect.py with function rectangle,
Area_square.py with function square,
Area_Tri.py with function triangle
Program do display menu to user and calculate areas accordingly
Source
Code
Output
23
Topic Functions
Program Write a module that has two functions..
13
1) The first function takes in string as a parameter and then prints the element one by
one. (easy)
2) The second function arranges the string according to the ASCII values of the
Characters. (hard)
3) Add '''docstrings''' to the module
Call the module from a file placed in the
same directory.
Source
Code
Output
24
Topic Functions
Program Read a text file and display the number of vowels/consonants/uppercase/lowercase
14 characters in the file
Source
Code
Output
25
Topic Functions
Program Read a text file line by line and display each word separated by a #.
15
Source
Code
Output
26
Topic Functions
Program \
16 Write a program to count number of words in a file.
Source
Code
Output
27
Topic Functions
Program Write a program to write those lines which have the character 'p' from one text file to
17 another text file.
Source
Code
Output
28
Topic Functions
Program \
18 Write a program to find the most common words in a file.
Source
Code
Output
29
Topic Functions
Program Write a program to perform read and write operation with .csv file.
19
Source
Code
Output
30
Topic Functions
Program Remove all the lines that contain the character 'a' in a file and write it to another file
20 Create a binary file with name and roll number. Search for a given roll number and
display the name, if not found display appropriate message.
Source
Code
Output
31
Topic Functions
Program Create a binary file with roll number, name and marks. Input a roll number and update the
21 marks.
Source
Code
Output
32
Topic Functions
Program Create a CSV file by entering user-id and password, read and search the password for
22 given user id.
Source
Code
Output
33
Topic Functions
Program Write code to do following
23
1. Create an Excel file (save as csv)
2. Import file created in part 1 in Python file and display content of csv
3. Append content to file created in part 1 through python. file (read values from user)
4. Display updated csv file from python file
Source
Code
Output
34
Topic Functions
Program Appending content to the file
24 1. create a file with ‘w’
2. print original file by reading with ‘r’
3. add content to file with ‘a’
4. reprint file to show updated content
Source
Code
Output
35
Topic Functions
Program \
25 Write a Python program to
1. Create a binary file (read Item_code, Item_Name, Item_Price, Item_Qty from user and
write to file)
write as many objects as user wants
2. Read from binary file (display contents of file created in part 1
3. Search for a particular Item_code in this file and print if it exists or not
4. Modify record of a particular user entered Item_code ( use seek and tell pointers to set
pointer position
Source
Code
36
Output
37