Report File - Selection

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 37

Samarth Periwal

12A
Report File

Page 1
CERTIFICATE
This is to certify that Samarth Periwal of Class XII of Lakshmipat Singhania Academy, Kolkata has
satisfactorily completed his Computer Science Report File prescribed by the AISSCE course in the school
in the year 2023-24 under the supervision of Mr. Niladri Motilal.
I have examined the file and hereby accord my approval of it. I certify that this file is up to
my expectations as per the guidelines issued by CBSE.

Signature Signature
External Examiner Internal Examiner

Page 2
INDEX

Sl. No. Topic Page


Computational Thinking and Programming
1 Twin Prime Numbers 5
2 Quadratic Equations 6
3 Number is Prime but Reverse is Not Prime 7
4 Quiz 8
5 Multiple Games 9
6 Exception Handling 10
7 Text Filing- Vowels and Consonants 11
8 Text Filing- Hashtag in Place of Space 12
9 Text Filing- Count “a” and such words written in another file 13
10 Binary Filing- Banking 14
11 Binary Filing- Phonebook 15
12 Binary Filing- Marks Update 16
13 CSV – User Id Password 17
14 CSV – password Strength 18
15 Stack – Operation by Menu
16 Palindrome Using Stack
17 Stack - Infix to Postfix
18 Queue – Operation by Menu
19
20
Database Management
1 SQL Single Table Queries Set 1
2 SQL Single Table Queries Set 2
3 SQL Single Table Queries Set 3
4 SQL Single Table Queries Set 4
5 SQL Multiple Table
6 SQL Connectivity Program 1
7 SQL Connectivity Program 2
8 SQL Connectivity Program 3
9 SQL Connectivity Program 4

Page 3
10 SQL Connectivity Program 5
Computer Networks
1 Networking
Exploratory Activity
1 Google: Be Internet Awesome
2 Stay Safe online: Pledge Certificate
3 Stay Safe online: Cyber Hygiene Practices Quiz
4 Stay Safe online: any other activity
5

Page 4
1

Page 5
2

Page 6
3

Page 7
4

Page 8
5

Page 9
6

Page 10
7

Page 11
8

Page 12
9

Page 13
10

Page 14
11

Page 15
12

Page 16
13

Page 17
14

Page 18
15

Page 19
16

Page 20
17

Page 21
18

Page 22
DATABASE MANAGEMENT

Page 23
a) Create a Database School

ANS -> create database school;


OUTPUT:

Page 24
b) Create a table Students in school database as per the
details given below:

QUERY:

CREATE TABLE Students (


-> AdmNo VARCHAR(10) PRIMARY KEY,
-> SName VARCHAR(100) NOT NULL,
-> DOB DATE,
-> Gender CHAR(1) CHECK (Gender IN ('F', 'M', 'T')),
-> Class INT CHECK (Class BETWEEN 1 AND 12),
-> Stream VARCHAR(10) DEFAULT 'NONE' CHECK (Stream
IN ('NONE', 'Sci', 'Comm', 'Hum')),

-> );
OUTPUT:

Page 25
C) Show the structure of the table

ANS->
QUERY: DESCRIBE Students;
OUTPUT:

Page 26
D) Insert 5 records:

ANS->
mysql> INSERT INTO Students (AdmNo, SName, DOB, Gender,
Class, Stream, House)
-> VALUES
-> ('A001', 'John Doe', '2005-05-15', 'M', 9, 'Sci', 'Agni'),
-> ('A002', 'Jane Smith', '2004-09-20', 'F', 10, 'Comm', 'Prithvi'),
-> ('A003', 'Michael Johnson', '2006-03-10', 'M', 8, 'NONE', 'Jal'),
-> ('A004', 'Sophia Williams', '2005-12-02', 'F', 11, 'Hum', 'Agni'),
-> ('A005', 'Robert Brown', '2007-08-30', 'M', 7, 'Sci',
'Vayu'); OUTPUT:

Page 27
E) Display all the records of the table:

ANS->
QUERY: SELECT * FROM

students; OUTPUT:

Page 28
F) Display Student name, Class who are in Science Stream

QUERY: SELECT SName, Class FROM Students WHERE Stream = 'Sci';

OUTPUT:

Page 29
Page 30
K) Add column name House which can store either of ‘Agni’, ‘Jal’, ‘Prithvi’ or
‘Vayu’. QUERY:
>> ALTER TABLE Students ADD House VARCHAR(10);

OUTPUT:

L) Update House of all Comm student with ‘Vayu’.


QUERY: UPDATE Students SET House = 'Vayu' WHERE Stream =

'Comm'; OUTPUT:

M) Modify the Stream field and force NOT NULL

QUERY: ALTER TABLE Students MODIFY Stream VARCHAR(10) NOT NULL;

OUTPUT:

Page 31
Page 32
O) Insert 10 records (The table should not allow any records if it is
not present in students table)
ANS) QUERY:
mysql> INSERT INTO Report (SlNo, SName, AdmNo, Subject, Marks)
-> VALUES
-> (1, 'John Doe', 'A001', 'Math', 90),
-> (2, 'Jane Smith', 'A002', 'English', 85),
-> (3, 'Michael Johnson', 'A003', 'Science', 78),
-> (4, 'Sophia Williams', 'A004', 'History', 92),
-> (5, 'Robert Brown', 'A005', 'Math', 88),
-> (6, 'Emily Jones', 'A006', 'Biology', 76),
-> (7, 'William Davis', 'A007', 'Physics', 84),
-> (8, 'Olivia Taylor', 'A008', 'Chemistry', 79),
-> (9, 'James Wilson', 'A009', 'Geography', 70),
-> (10, 'Emma Harris', 'A010', 'Math', 95);

Page 33
Page 34
Page 35
Page 36
Page 37

You might also like