Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

AISSCE Practical Exam 2021

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

AICCSE Practical Exam 2020-21

Informatics Practices(065) SET A


1. Write a Program to create the following DataFrame wdf: 08

minTemp maxTemp Rainfall Evaporation


0 2.9 8 24.3 0
1 3.1 14 26.9 3.6
2 6.2 13.7 23.4 3.6
3 5.3 13.3 15.5 39.8
4 6.3 17.6 16.1 2.8
5 5.4 18.2 16.9 0
6 5.5 21.1 18.2 0.2
7 4.8 18.3 17 0
8 3.6 20.8 19.5 0
9 7.7 19.4 22.8 16.2
10 9.9 24.1 25.2 0
11 11.8 28.5 27.3 0.2
12 13.2 29.1 27.9 0
13 16.8 24.1 30.9 0
14 19.4 28.1 31.2 0
15 21.6 34.4 32.1 0
16 20.4 33.8 31.2 0
17 18.5 26.7 30 1.2
18 18.8 32.4 32.3 0.6
19 17.6 28.6 33.4 0
20 19.7 30.3 33.4 0
Write code to:
(a) Calculate minimum value for each of the columns.
(b) Calculate maximum value for each of the rows.
2. Given a table below. Answer the questions that follow: 07
Table : Library
Mem_id Mem_Name Publisher Edition Price
1011 Sam Pitroda Osborn Dec 12, 1999 150
1012 Ben Nathan Penguine Jan 11, 2000 180
1025 Samant Black Macgraw Sep19, 1994 305
1007 Nastle Jack Penguine Jun 29, 1995 490
1054 Osram Joe Oxford Mar 16, 1997 280
1009 Samant Black Osborn Feb 28, 1999 170

(a) Write a SQL command to create the above table with the following details:

Column Name Data Type Size Contraint


Mem_id INTEGER 4 PRIMARY KEY
Mem_name VARCHAR 20 Default ‘XXXX’
Publisher VARCHAR 20 NOT NULL
Edition DATE
Price DECIMAL 5, 2 CHECK (Price >= zero)

(b) Create another table Lib out of above table to contain rows only of Osborn Publisher.
(c) Update the column Mem_name of the above table by adding ‘Mr’ before every name.
(d) Insert 2 more rows into table Lib with edition as NULL and Price as NOT NULL.
2. Practical File 05
3. Project 05
4. Viva Voce 05
AICCSE Practical Exam 2020-21
Informatics Practices(065)
SET B
1. Consider the data given below: 08

App Name App Price in Rs Total Downloads


Angry Bird 75 197000
Teen Titan 120 209000
Marvel Comics 190 414000
ColorMe 245 196000
Fun Run 550 272000
Crazy Taxi 55 311000
Igram Pro 175 213000
Wapp Pro 75 455000
Maths Formulas 140 278000
Create DataFrame Using above data, and plot the following:

a) A line chart depicting the prices of the apps.


b) A bar chart depicting the downloads of the apps.
2. Consider the following table EXAM: 07
No. Name' Stipend Subject Average Division
1 Karan 400 English 68 FIRST
2 Arnan 680 Mathematics 72 FIRST
3 Javed 500 Accounts 67 FIRST
4 Bishakh 200 Informatics 55 SECOND
5 Sugandha 400 History 35 THIRD
6 Suparna 550 Geography 45 THIRD

(a) Write a Query in SQL to create the table EXAM. Take Data types, size and constraints of fields at your own.
(b) WAQ to list the names of those students, who have obtained Division as FIRST, in the ascending
order of NAME.
(c) WAQ to count the number of students, who have either Accounts or Informatics as a Subject.
(d) WAQ to display a report listing NAME, SUBJECT and Annual stipend received assuming that the stipend
column has monthly stipend.

3. Practical File 05

4. Project 05

5. Viva Voce 05
AICCSE Practical Exam 2020-21
Informatics Practices(065)
SET C
1. Create DataFrame wdf and answer followings: 08
minTemp maxTemp Rainfall Evaporation
0 2.9 8 24.3 0
1 3.1 14 26.9 3.6
2 6.2 13.7 23.4 3.6
3 5.3 13.3 15.5 39.8
4 6.3 17.6 16.1 2.8
5 5.4 18.2 16.9 0
6 5.5 21.1 18.2 0.2
7 4.8 18.3 17 0
8 3.6 20.8 19.5 0
9 7.7 19.4 22.8 16.2
10 9.9 24.1 25.2 0
a) Write command to calculate minimum value for each of the columns.
b) Write command to calculate maximum value for each of the rows.
2. Create table EMPL with following records and answer the queries that follow: 07

i. Display the employee name, job and start date of employees hired between Feb 20, 1991 and May 1,
1992. Order the query in ascending order of start date.
ii. List the name and salary of the employees who earn more than 1500 and are in department 10 or 30.
Label the columns Employee and Monthly Salary respectively.
iii. Display the name and hiredate of every employee who was hired in 1992.
iv. Display the name, job and salary for all employees whose job is Clerk or Analyst and there salary is not
equal to 1000, 3000 or 5000.
v. Display name, salary and commission for all employees whose commission amount is greater than their
salary. Display also increased salary by 10%.
3. Practical File 05
4. Project 05
5. Viva Voce 05
AICCSE Practical Exam 2020-21
Computer Science (083) SET A

1. Write a Program to create a Text file Preamble.txt, having contents: 07

WE, THE PEOPLE OF INDIA, having solemnly resolved to constitute India into a SOVEREIGN SOCIALIST
SECULAR DEMOCRATIC REPUBLIC and to secure to all its citizens:
JUSTICE, social, economic and political;
LIBERTY of thought, expression, belief, faith and worship;
EQUALITY of status and of opportunity;
and to promote among them all FRATERNITY assuring the dignity of the individual and the unity and integrity of
the Nation;
IN OUR CONSTITUENT ASSEMBLY this twenty-sixth day of November, 1949, do HEREBY ADOPT, ENACT
AND GIVE TO OURSELVES THIS CONSTITUTION

Thereafter open the file in read mode and read lines from “Preamble.txt”, to find and display the occurrence of the
word “INDIA” or “India”.

2. Write SQL statements for the questions that follow, based on table given here: 05
Table : BUS
Busno Origin Dest Rate KM ST_time Type
21 Del Jalandhar 25 210 9.50 AC
198 Del Amritsar NULL 250 10.00 NULL
101 Chandi Delhi 12 250 22.00 NON
49 Mum Pune 35 200 11.00 NULL
12 Del Agra 50 330 6.00 AC
25 Del Hridwar 20 250 5.00 NON
24 Del Agra 25 330 8.30 NON
(a) Write a SQL command to create the above table with records according to following description:
Column Name Datatype Size Constraint
Busno INTEGER 4 PRIMARY KEY
Origin VARCHAR 10 NOT NULL
Dest VARCHAR 10 NOT NULL
Rate DECIMAL 5, 2 NOT NULL
KM INTEGER 5 CHECK for greater than 200
Time DECIMAL 4, 2 DEFAULT 12.0
Type VARCHAR 4
(b) Add one more column Tax_Charge NUMBER(6) with constraint NOT NULL to the table.
(c) Modify the row of Busno 198 by changing Rate to 30 and Type to ‘NON’.
(d) Create a view Bus consisting of Busno, Origin, Dest, St_time of buses with Dest as ‘Agra’.

3. Practical File 07

4. Project 08

5. Viva Voce 03
AICCSE Practical Exam 2020-21
Computer Science (083) SET B

1. Write a program in python to define and call a function BinarySearch(Arr,l,R,X) to search the given element X to
be searched from the List Arr having R elements,where l represents lower bound and R represents the upper
bound. 07
2. Consider the following table EXAM: 05
No. Name' Stipend Subject Average Division
1 Karan 400 English 68 FIRST
2 Arnan 680 Mathematics 72 FIRST
3 Javed 500 Accounts 67 FIRST
4 Bishakh 200 Informatics 55 SECOND
5 Sugandha 400 History 35 THIRD
6 Suparna 550 Geography 45 THIRD

(a) Write a Query in SQL to create the table EXAM. Take Data types, size and constraints of fields at your own.
(b) WAQ to list the names of those students, who have obtained Division as FIRST, in the ascending
order of NAME.
(c) WAQ to count the number of students, who have either Accounts or Informatics as a Subject.
WAQ to display a report listing NAME, SUBJECT and Annual stipend received assuming that the stipend
column has monthly stipend.
3. Practical File 07

4. Project 08

5. Viva Voce 03

You might also like