Professional Documents
Culture Documents
Question Papers Class 12 Informatics Practices Delhi 2017 Marking Scheme
Question Papers Class 12 Informatics Practices Delhi 2017 Marking Scheme
CBSE AISSCE 2017 Marking Scheme for Informatics Practices
(Sub Code: 065 Paper Code 90/1 Delhi)
General Instructions:
● Marking scheme is the final document for all references with regard to evaluation
and cannot be altered under any circumstance.
● The answers given in the marking scheme are SUGGESTIVE. Examiners are expected
to award marks for all alternative correct Solutions/Answers conveying the similar
meaning.
● All programming questions have to be answered with respect to Java Language only.
● In Java, ignore case sensitivity for identifiers (Variables / Functions)
● In SQL related questions :
A. Both ways of text/character entries should be acceptable. For example:
“AMAR” and ‘amar’ both are acceptable.
B. All date entries should be acceptable for example: ‘YYYY-MM-DD’,
‘YY-MM-DD’, ‘DD-Mon-YY’, “DD/MM/YY”, ‘DD/MM/YY’, “MM/DD/YY”,
‘MM/DD/YY’ and {MM/DD/YY} are correct.
C. Semicolon should be ignored for terminating the SQL statements.
D. Ignore case sensitivity for commands.
E. Ignore headers in output questions.
1 (a) How do Computer networks reduce hardware costs of an organization? Explain 2
with the help of example.
Ans Computer network allows sharing of hardware resources thereby reducing
hardware costs of an organization.
For example, a printer can be shared among the users in a network so that
there’s no need to have individual printers for each and every computer in the
network.
(1 mark for reason)
(1 mark for example)
NOTE : Full 2 marks to be allotted if reason explained with the help of
any correct example.
(b) Compare BUS topology with STAR topology. Give example. 2
Ans
BUS topology STAR topology
In Bus topology all the nodes are In Star topology each node has
joined to one cable (the bus). its own cable that connects to a
switch or hub.
If the main cable (backbone) fails, If the central hub/switch fails,
the entire network is affected. the entire network fails.
Fault diagnosis is difficult. Fault diagnosis is easy
Less cable length required. More cable length is required
Performance is low as when more Performance is high as no data
nodes are connected, data collisions can occur.
collisions can occur.
Page #1/15
CBSE AISSCE 2017 Marking Scheme for Informatics Practices
(Sub Code: 065 Paper Code 90/1 Delhi)
Bus Topology of network
Star Topology of network
(1 mark each for ANY 2 correct points of comparison)
NOTE :
● Full 2 marks to be allotted even if example not given.
● 1 ½ marks to be allotted if only diagrams of both topologies are
drawn.
(c) (i) Why is a switch called an intelligent hub? 2
(ii) When is a repeater used in a computer network?
Ans (i) A switch is called an intelligent hub as it forwards the data packets only to
the intended nodes.
(ii) A repeater is used when the signals get weakened or distorted by
transmission over long distances.
(1 mark each for each correct answer)
(d) Expand following terms: 2
(i) OSS
(ii) HTTP
Ans (i) Open Source Software
(ii) HyperText Transfer Protocol
(1 mark each for each expansion)
(e) Explain the terms Firewall and Cyber Law. 2
Ans Firewall: A Firewall is a hardware/software that permits only authorised data
to enter/leave the network.
Cyber Law: Cyber Law is the law that deals with offences related to data
/information stored on computers or networked devices/solutions.
(1 mark each for explanation of each term)
2 (a) Write the value that will be assigned to variable C after executing the 1
following statement:
C = 25-5*4/2-10+4;
Ans 9
(1 mark for correct answer)
(b) Consider the statement: 1
first_name = "Ayana";
(i) What is the datatype of first_name ?
(ii) Is 325 the same as “321” ? Give reason.
Ans (i) String data type
(ii) No, 325 is a Number/Integer while “321” is a String.
(½ mark for part (i))
(½ mark for stating ‘No’ OR correct reason OR Both)
Page #2/15
Bookmark – LearnCBSE.in
1. On your computer, open Chrome.
2. Go to the site you want to visit again in the future.
3. To the right of the address bar, click Star .
To import bookmarks from most browsers, like Google Chrome Firefox, Internet
Explorer, and Safari:
1. On your computer, open Chrome.
2. At the top right, click more .
3. Select Bookmarks Import Bookmarks and Settings.
4. Select the downloaded program
(https://drive.google.com/open?id=1H9UTsvlPwihBa3kkVL0_Dw4Rcx6-TNeP - download)
that contains the bookmarks you'd like to import.
5. Click Import.
6. Click Done.
CBSE AISSCE 2017 Marking Scheme for Informatics Practices
(Sub Code: 065 Paper Code 90/1 Delhi)
Page #3/15
CBSE AISSCE 2017 Marking Scheme for Informatics Practices
(Sub Code: 065 Paper Code 90/1 Delhi)
(½ mark each for mentioning any two correct properties and any two
correct methods)
3 (a) What is the relationship between SQL and MySQL? 1
Ans SQL stands for Structured Query Language. It’s a standard language for
accessing and manipulating databases.
MySQL is a Relational Database Management System (RDBMS), like SQL Server,
Oracle, Informix, Postgres, etc. MySQL is a RDBMS.
OR
Any other relevant difference.
(1 mark for correct relationship)
NOTE: ½ mark each for correctly explaining SQL and MySQL
(b) Write SQL statement that gives the same output as the following SQL 1
statement but uses ‘IN’ keyword.
SELECT NAME FROM STUDENT WHERE STATE = 'VA';
Ans SELECT NAME FROM STUDENT WHERE STATE IN ('VA');
(1 mark for correct answer)
(c) Which one of the following SQL queries will display all Employee records 1
containing the word "Amit", regardless of case (whether it was stored as
AMIT, Amit, or amit etc.)?
(i) SELECT * from Employees WHERE EmpName like UPPER
'%AMIT%';
(ii) SELECT * from Employees WHERE EmpName like '%AMIT%' or
'%AMIT%' OR '%amit%';
(iii) SELECT * from Employees WHERE UPPER(EmpName) like
'%AMIT%’;
Ans (iii)
SELECT * from Employees
WHERE UPPER(EmpName) like '%AMIT%';
(1 mark for correct answer)
(d) If there are 10 rows in ‘Emp’ table and 5 rows in ‘Department’ table, How 1
many rows will be displayed by the following query?
SELECT * FROM Emp, Department;
Write the term used for the Join being used on the two tables mentioned
above.
Ans 50 rows.
Cartesian product or Cross join or Cartesian join
( ½ mark each for each part)
(e) Kunal has entered the following SQL command on Table ‘STUDENT’ that has 2
TotalMarks as one of the columns.
SELECT COUNT(*) FROM STUDENT;
The output displayed is 20.
Then, Kunal enters the following command:
SELECT COUNT(*) FROM STUDENT WHERE TotalMarks < 100;
The output displayed is 15.
Page #4/15
CBSE AISSCE 2017 Marking Scheme for Informatics Practices
(Sub Code: 065 Paper Code 90/1 Delhi)
Then, Kunal enters the following command:
SELECT COUNT(*) FROM STUDENT WHERE TotalMarks >= 100;
He predicts the output of the above query as 5. Do you agree with Kunal?
Give reasons for your answer.
Ans Yes, Total rows=20, rows with TotalMarks<100 is 15, so remaining rows left
are 20-15=5
OR
No, the output of the query may not always be 5 as there may be rows with
TotalMarks as NULL which would have not been included in either of the two
SELECT statements mentioned.
(2 marks for correct answer)
(f) In a hospital, Patients are allocated to wards. A database named ‘Hospital’ is 2
created. One table in this database is: WARD with WardId, WardName,
NumOfBeds as columns and WardId as the primary key.
Write another suitable table you could expect to see in ‘Hospital’ database,
with 3 suitable columns identifying Primary key and Foreign key.
Ans Example:
Table - Patient
Columns - PatientId, PatientName, WardId
Patient Id - PRIMARY KEY
WardId - FOREIGN KEY
OR
Any other suitable table mentioning its PRIMARY KEY and FOREIGN KEY.
( 1 mark for writing any three suitable column names)
OR
(½ mark for writing any two suitable column names)
( ½ mark for mentioning the PRIMARY KEY)
( ½ mark for mentioning the FOREIGN KEY)
NOTE : Tabular representation also to be accepted
(g) Given below is the ‘Department’ table: 2
DEPCODE DEPNAME
101 ADMIN
102 RECEPTION
103 PERSONNEL
SET AUTOCOMMIT = 0;
UPDATE Department SET DEPNAME = ‘OFFICE’ WHERE DEPNAME =
‘ADMIN’;
INSERT INTO Department VALUES(104,’HRD’);
UPDATE Department SET DEPNAME = ‘FRONT OFFICE’ WHERE
DEPNAME = ‘RECEPTION’;
COMMIT;
DELETE FROM Department WHERE DEPNAME = ‘FRONT OFFICE’;
ROLLBACK;
SELECT * FROM Department;
What will be the output of the above given SELECT statement?
Page #5/15
CBSE AISSCE 2017 Marking Scheme for Informatics Practices
(Sub Code: 065 Paper Code 90/1 Delhi)
Ans
DEPCODE DEPNAME
101 OFFICE
102 FRONT OFFICE
103 PERSONNEL
104 HRD
(½ mark for each correct line of output)
4 (a) Write the values of c and d after execution of following code: 1
int a = 1;
int b = 2;
int c;
int d;
c = ++b;
d = a++;
c++;
Ans c = 4
d = 1
(½ mark for each correct part)
(b) What is the difference between getSelectedIndex() and getSelectedItem() 1
methods?
Ans getSelectedIndex() retrieves index of selected item whereas
getSelectedItem() retrieves selected item.
(1 mark for correct difference)
(c) What will be displayed in jTextField1 after the following code is executed ? 1
Also write how many times will the loop execute.
a = 5;
b = 2;
While (b != 0)
{
r = a%b;
a = b;
b = r;
}
jTextField1.setText(""+a);
Ans jTextField1 will display 1
(1 mark for correct answer)
NOTE: 1 mark to be allotted if :
‘While’ mentioned as error
OR
‘No output’ / ‘Error’ is mentioned
(d) Write the values that will be assigned to x, y, z and t after executing the 2
following Java code:
Page #6/15
CBSE AISSCE 2017 Marking Scheme for Informatics Practices
(Sub Code: 065 Paper Code 90/1 Delhi)
Page #7/15
CBSE AISSCE 2017 Marking Scheme for Informatics Practices
(Sub Code: 065 Paper Code 90/1 Delhi)
{
if (i%num ==0)
{
counter = counter + 1;
}
}
(½ mark each for correcting any 4 errors)
OR
(1 mark for only identifying any 4 errors – without making any
corrections)
(g) Ms. Angela works as a programmer in a Bus Tour Company named “Heritage
Experiences”. Groups of people come and reserve seats. There are 3
stopovers for the bus. First stop is at Alwar, second at Jaipur, third at
Udaipur. A group may choose any one destination out of Alwar, Jaipur and
Udaipur.
Angela has designed a software to compute charges to be paid by the entire
group. A screenshot of the same is shown below:
A group can opt for one destination out of Alwar/ Jaipur/ Udaipur.
If the group is “Frequent Traveller Group”, the group gets a 10% discount on
(i) Total charges.
Help Ms. Angela in writing the code to do the following:
After selecting appropriate Radio Button and checkbox (if required), when
‘Calculate Charges’ button is clicked, ‘Total Charges’, ‘Discount Amount’,
‘Amount to Pay’ should be calculated and displayed in the respective text
fields. The Charges per person for various destinations are as follows: 4
Page #8/15
CBSE AISSCE 2017 Marking Scheme for Informatics Practices
(Sub Code: 065 Paper Code 90/1 Delhi)
Destination Amount(in Rs.)
Alwar 200.00 per person
Jaipur 500.00 per person
Udaipur 900.00 per person
‘Total Charges’ is obtained by multiplying ‘Number of People in Group’ with
Amount per person.
If ‘Frequent Traveller Group’ checkbox is selected, ‘Discount Amount’ is
calculated as 10% of ‘Total Charges’. Otherwise ‘Discount Amount’ is 0.
‘Amount to Pay’ is calculated as :
Amount to Pay = Total Charges – Discount Amount.
Ans Double Total = 0;
if (jRadioButton1.isSelected())
Total= 200* Integer.parseInt(jTextField2.getText());
else if (jRadioButton2.isSelected())
Total= 500* Integer.parseInt(jTextField2.getText());
else if (jRadioButton3.isSelected())
Total= 900* Integer.parseInt(jTextField2.getText());
jTextField3.setText("" + Total);
double Disc, Net;
if(jCheckBox1.isSelected())
Disc = 0.10* Integer.parseInt(jTextField3.getText());
else
Disc = 0.0;
jTextField4.setText(" "+Disc);
Net = Total-Disc;
jTextField5.setText(" "+net);
(½ mark for use of getText())
(½ mark each for checking conditions based on any 2 Radiobuttons and
1 Checkbox)
(½ mark each for Calculation of Total, Disc and Net)
( ½ mark for displaying correct values in the text fields)
(ii) When ‘CLEAR’ button is clicked, all the textfields, radio button and 1
checkbox should be cleared.
Ans jTextField1.setText("");
jTextField2.setText("");
jTextField3.setText("");
jTextField4.setText("");
jTextField5.setText("");
jCheckBox1.setSelected(false);
jRadioButton1.setSelected(false);
jRadioButton2.setSelected(false);
jRadioButton3.setSelected(false);
Page #9/15
CBSE AISSCE 2017 Marking Scheme for Informatics Practices
(Sub Code: 065 Paper Code 90/1 Delhi)
(½ mark for clearing any TextField and ½ mark for clearing the
Checkbox/Radiobutton)
NOTE : NULL in place of “” to be accepted for clearing text field.
(iii) When ‘EXIT’ button is clicked, the application should close. 1
System.exit(0);
(1 mark for correct answer)
5 (a) Consider the table given below.
Write Answer to (i). Write SQL queries for (ii) to (viii) and output for SQL
queries (ix) and (x).
(Table: Salesperson)
SID Name Phone DOB Salary Area
S101 Amit Kumar 98101789654 1967-01-23 67000.00 North
S102 Deepika Sharma 99104567834 1992-09-23 32000.00 South
S103 Vinay Srivastav 98101546789 1991-06-27 35000.00 North
S104 Kumar Mehta 88675345789 1967-10-16 40000.00 East
S105 Rashmi Kumar 98101567434 1972-09-20 50000.00 South
NOTE : Columns SID and DOB contain Sales Person Id and Data of Birth respectively.
(i) Write the data types of SID and DOB columns. 1
Ans Data type of SID : varchar/char
Data type of DOB : Date
(½ mark each for mentioning correct data type)
(ii) Display names of Salespersons and their Salaries who have salaries in the 1
range 30000.00 to 40000.00
Ans SELECT Name,Salary
FROM Salesperson
WHERE Salary BETWEEN 30000 AND 40000;
OR
SELECT Name,Salary
FROM SalesPerson
WHERE Salary>=3000 AND Salary<=4000;
( ½ mark for SELECT)
( ½ mark for WHERE)
(iii) To list names, phone numbers and DOB (Date of Birth) of Salespersons who 1
were born before 1st November, 1992.
Ans SELECT Name,Phone,DOB
FROM Salesperson
WHERE DOB <’1992-11-01’;
OR
SELECT Name,Phone,DOB
FROM Salesperson
WHERE DOB < 19921101;
Page #10/15
CBSE AISSCE 2017 Marking Scheme for Informatics Practices
(Sub Code: 065 Paper Code 90/1 Delhi)
( ½ mark for SELECT)
( ½ mark for condition using WHERE)
(iv) To display names and salaries of salespersons in descending order of salary. 1
Ans SELECT Name,Salary
FROM Salesperson
ORDER BY Salary DESC;
( ½ mark for SELECT)
( ½ mark for ORDER BY)
(v) To display areas in which Salespersons are working. Duplicate areas should 1
not be displayed.
SELECT DISTINCT Area
FROM Salesperson;
( ½ mark for SELECT)
( ½ mark for keyword DISTINCT)
(vi) To display SID, Names along with Salaries increased by 500. (Increase of 1
Rs.500 is only to be displayed and not to be updated in the table)
SELECT SID, Name,Salary+500
FROM Salesperson;
( ½ mark for SELECT)
( ½ mark for Salary+500)
(vii) To display Area along with number of Salespersons working in that area. 1
SELECT Area, COUNT(*) OR COUNT(SID)
FROM Salesperson
GROUP BY Area;
( ½ mark for SELECT)
( ½ mark for GROUP BY clause)
(viii To display Names of Salespersons who have the word ‘Kumar’ anywhere in 1
) their names.
SELECT Name
FROM Salesperson
WHERE Name LIKE ‘%Kumar%’;
( ½ mark for SELECT)
( ½ mark for LIKE Clause)
(ix) SELECT Name, LENGTH(Name) FROM Salesperson; 1
Ans
Name LENGTH(Name)
Amit Kumar 10
Deepika Sharma 14
Vinay Srivastav 15
Kumar Mehta 11
Rashmi Kumar 12
Page #11/15
CBSE AISSCE 2017 Marking Scheme for Informatics Practices
(Sub Code: 065 Paper Code 90/1 Delhi)
(x) SELECT Area, COUNT(*) 1
FROM Salesperson
GROUP BY Area
HAVING COUNT(*) > 1;
Ans
Area COUNT(*)
North 2
South 2
( ½ mark each for each row)
6 “ABC” Event Management Company requires data of events that are to be 2
organized. Write SQL query to create a table ‘Event’ with the following
structure:
Field Type Constraint
EventId Integer Primary key
Event Varchar(50)
DateEvent Date
NumPerformers Integer
Page #12/15
CBSE AISSCE 2017 Marking Scheme for Informatics Practices
(Sub Code: 065 Paper Code 90/1 Delhi)
Table: Participant
ParticipantId Name WorkshopId
100 Prabhu Shankar 551
101 Dev Sen 554
102 Fauzia Khan 551
103 Tom Winters 553
(i) WorkshopId ‘552’ is missing in the table Workshop. Is there any discrepancy 1
(something not correct) ? Give reason for your answer.
(ii) WorkshopId ‘551’ is present twice in the table Participant. Is there any
discrepancy ? Give reason for your answer 1
Ans There is no discrepancy if 552 is missing. It is not necessary that all workshop
ids maintain a sequence.
There is no discrepancy if 551 is present twice as more than one participant
may attend the same workshop.
NOTE: WorkshopId is a foreign key column in the Participant table, so it
can store duplicate values, may also be accepted.
(1 mark each for reasons )
NOTE: (½ mark each for stating ‘NO Discrepancy’ without stating reason)
(c) With reference to the above given tables (in Q.6-(b), Write commands in SQL 6
for (i) to (iii) given below :
(i) To display names of Participants along with workshop titles for only those
workshops that have more than 2 speakers.
Ans SELECT Name, Title
FROM Participant, Workshop
WHERE Participant.Workshopid =Workshop.Workshopid
AND Numspeakers > 2;
OR
SELECT Paricipant.Name, Workshop.Title
FROM Participant, Workshop
WHERE Participant.Workshopid =Workshop.Workshopid
AND Workshop.Numspeakers > 2;
OR
SELECT P.Name, W.Title
FROM Participant P, Workshop W
WHERE P.Workshopid = W.Workshopid
AND W.Numspeakers > 2;
NOTE: && should be accepted in place of ‘AND’
Ans (½ mark for SELECT)
(½ mark for FROM)
Page #13/15
CBSE AISSCE 2017 Marking Scheme for Informatics Practices
(Sub Code: 065 Paper Code 90/1 Delhi)
(½ mark for correct use of join)
(½ mark for correct use of condition)
(ii) To display ParticipantId, Participant’s name, WorkshopId for workshops
meant for Senior Managers and Junior Managers.
Ans SELECT ParticipantId, Name,Workshopid
FROM Participant, Workshop
WHERE Participant.Workshopid = Workshop.Workshopid
AND Meantfor = ‘Senior Manager’ OR Meantfor = ‘Junior
Manager’;
OR
SELECT Paricipant.ParticipantId,
Participant.Name,Participant.Workshopid
FROM Participant, Workshop
WHERE Participant.Workshopid = Workshop.Workshopid
AND Workshop.Meantfor = ‘Senior Manager’ OR
Workshop.Meantfor = ‘Junior Manager’;
OR
SELECT P.ParticipantId, P.Name,P.Workshopid
FROM Participant P, Workshop W
WHERE P.Workshopid = W.Workshopid
AND W.Meantfor = ‘Senior Manager’ or W.Meantfor = ‘Junior
Manager’;
NOTE: || should be accepted in place of ‘OR’
(1 mark for SELECT)
(½ mark for FROM)
(½ mark for condition using WHERE)
(iii) To display WorkshopId, title, ParticipantId for only those workshops that have
fees in the range of 5000.00 to 8000.00
Ans SELECT Workshop.WorkshopId,Title,ParticipantId
FROM Participant, Workshop
WHERE Participant.Workshopid = Workshop.Workshopid
AND Workshop.Fee BETWEEN 5000 AND 8000;
OR
SELECT P.WorkshopId,W.Title,
P.ParticipantId
FROM Participant P, Workshop W
WHERE P.Workshopid = W.Workshopid
AND Fee BETWEEN 5000 AND 8000;
(½ mark for SELECT)
(½ mark for FROM)
(½ mark for correct use of join)
(½ mark for correct use of condition )
NOTE: “Fee >= 5000 AND FEE <=8000” should be accepted in place of
BETWEEN 5000 AND 8000
Page #14/15
CBSE AISSCE 2017 Marking Scheme for Informatics Practices
(Sub Code: 065 Paper Code 90/1 Delhi)
7 (a)
(i) Define e-governance. 2
Ans Using technology to deliver Government services.
(2 mark for correct answer)
(ii) List two advantages of e-governance to a disabled person. 1
Ans Advantages of e-governance
1. They get access to Government related information online without
having to travel long distances.
2. They become aware of the opportunities/schemes especially meant for
them.
(1 mark each for any two valid points)
(b) How does E-business help organizations to provide better customer services? 1
Ans 1. Organisations are able to offer services and support to customers 24x7.
2. Organizations analyze customers reviews about their products/services
and keep improving them.
(1 mark for any one valid point)
(c) Ms. Fauzia is creating a form for an application to be used in a Gym. Help her 2
to choose most appropriate controls from ListBox, ComboBox, TextField,
TextArea, RadioButton, CheckBox, Label and Command Button for the
following entries.
S.No. Function
1 To enter NAME
2 To enter EMAIL ID
3 To allow user to choose any one MEMBERSHIP DURATION out of 1
Month, 3 Months, 6 Months, 1 year.
4 To choose PRE-EXISTING MEDICAL CONDITIONS out of Diabetes,
Heart Disease, Chest Pain, Shortness of Breath, Epilepsy, Others.
(c)
S.No Function Control
1 To enter NAME TextField
2 To enter EMAIL ID TextField
3 To allow user to choose any one MEMBERSHIP RadioButton/
DURATION out of 1 Month, ComboBox
3 Months, 6 Months, 1 year.
4 To choose PRE-EXISTING MEDICAL ListBox/CheckBox
CONDITIONS out of Diabetes, Heart Disease,
Chest Pain, Shortness of Breath, Epilepsy,
Others.
Page #15/15