0% found this document useful (0 votes)
70 views71 pages

Cbse Class 12 Ip Marking Scheme 2017 Merged

1. The document provides the marking scheme for the 2017 CBSE AISSCE exam for Informatics Practices. 2. It lists several multiple choice and written response questions, along with the suggested answers and marking guidelines for examiners. 3. The general instructions specify that alternate correct answers conveying similar meaning should be awarded marks, and provide other clarifications on formatting and case sensitivity for the questions.

Uploaded by

Mayank Saini
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
70 views71 pages

Cbse Class 12 Ip Marking Scheme 2017 Merged

1. The document provides the marking scheme for the 2017 CBSE AISSCE exam for Informatics Practices. 2. It lists several multiple choice and written response questions, along with the suggested answers and marking guidelines for examiners. 3. The general instructions specify that alternate correct answers conveying similar meaning should be awarded marks, and provide other clarifications on formatting and case sensitivity for the questions.

Uploaded by

Mayank Saini
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 71

 

CBSE AISSCE 2017 Marking Scheme for Informatics Practices 
(Sub Code:065      Paper Code 90/Outside Delhi)
General Instructions:
● Marking  scheme  is  the  final  document  for  all  references  with  regard  to  evaluation 
and cannot be altered under any circumstances. 
● The  answers  given  in  the  marking  scheme  are  SUGGESTIVE,  Examiners  are 
requested  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 (Variable / Functions ). 
● In  SQL  related  questions  –  both  ways  of text/character entries should be acceptable 
for Example: “AMAR” and ‘amar’ both are correct. 
● In  SQL  related  questions  –  semicolon  should  be  ignored  for  terminating  the  SQL 
statements. 
● In SQL related questions, ignore case sensitivity. 
● In SQL related questions, ignore column headers in outputs. 

 
1  (a)  Identify odd one out of the following:   2 
Optical Fiber/Coaxial Cable/ Bluetooth/Twisted Pair Cable. 
Give  reason for your answer. 
Ans Odd one : Bluetooth    
Reason  :  Bluetooth  is a wireless/unguided communication media  while others 
are wired/guided communication media. 
  (1 mark for each part)   
(b) How is it easier to diagnose fault in Star topology than in Bus topology?  2 
Ans In  Star  topology  each  node  is  directly  connected  to  a  central  hub  /  switch,   
hence fault diagnosis becomes easy.  
In  bus  topology all the nodes are connected to the backbone cable. The signal 
travels  through  the  entire  length of the backbone and is received by the node 
for which it is intended. Hence, fault diagnosis is difficult.
  (2 marks for correct answer)   
NOTE  :  ½  mark  each  for  both  topologies  if  are  explained  using  either 
diagrams / text. 
(c) What is the purpose of logical address of computer? 2 
NOTE  : Full 2 marks to be given if any part of question no. 1 is attempted   
correctly. 
(d)  Does Open source software only mean that the software is free  of cost? Give  2 
reason for your answer. 
Ans No , it does not only mean that the software  is free of cost.   
Reason:  It  also  means  that  the  source  code  is  available  to  user with freedom 
to use , modify and distribute. 
  (1 mark for each part)   
(e) Which of the following are valid IP addresses? Give reason(s) if invalid.  2 

Page #1/15 
 

CBSE AISSCE 2017 Marking Scheme for Informatics Practices 
(Sub Code:065      Paper Code 90/Outside Delhi)

 
i)​ ​121.23.1.45 
ii)​ ​192.168.0. 254 
iii)​ ​192.168.0.1  
iv)​ ​198.-1.1.1 
Ans Valid IP addresses: (i) , (ii) , (iii)    
Invalid  IP  address:  (iv)  198.-1.1.1  because  an  IP  address  is  a  group  of  four 
bytes; each of which can be a number from 0 to 255.  
  (1 mark for  stating all the three valid IP addresses    
                                               OR  
½ mark for stating any two valid IP addresses) 
(½ mark for mentioning invalid address , ½ mark for the reason) 
2 (a) Write  the  value  that  will  be  assigned  to  variable  x  after  executing  the  1 
following statement: 
x = 20 -5 + 3 * 20/5;
Ans 27  
  (1 Mark for correct answer)   
(b) Consider the statement:  1 
choice = ‘Y’;
What  is  the  datatype  of  variable choice? Write Java statement to declare the 
variable ‘choice’. 
Ans The data type of the variable choice is ​char​.   
Declaration : ​char choice;  
  (½ mark for stating datatype as char)   
(½ mark for declaration) 
NOTE  :  ​char choice = ‘Y’ ​;  to  be  accepted  as  correct  answer  and 1 
Mark to be allotted. 
(c) While  working  in  Netbeans  IDE,  Amit  wants  that  the  text  in  a  Text  area  1 
should  move  to  the  next  line  without  breaking  the  word.  Which  properties 
would help him do that? 
Ans wrapStyleWord property, lineWrap property   
  ( 1 mark for correct answer)   
NOTE:  Full  1  mark  to  be  allotted  if  any  one  of  the  above  properties  is 
mentioned 
(d) Write Java statement to:  1 
Append  a  string  "ABC"  to  the  text  that  is  already  in  the  text  area  named 
jTextArea1. 
Ans jTextArea1.append("" +"ABC");  
OR
jTextArea1.append("ABC");
OR

Page #2/15 
 

CBSE AISSCE 2017 Marking Scheme for Informatics Practices 
(Sub Code:065      Paper Code 90/Outside Delhi)

jTextArea1.append("ABC"+" ");
  ( 1 mark for correct answer )   
NOTE : (½ mark to be allotted if setText is mentioned instead of append) 
(e) Write the output of the following HTML code.  2 
<ol start="4">
<li>Bake the mixture in oven for an hour</li>
<li>Remove from oven</li>
<li>Allow the mixture to stand for ten minutes</li>
<li>Serve</li>
</ol></code>
Ans 4 Bake the mixture in the oven for an hour   
5 Remove from oven 
6 Allow the mixture to stand for ten minutes 
7 Serve   
  (½ mark for each line of output)   
NOTE:  Full 2 marks to be allotted if : 
</code>​ mentioned as an error 
OR 
‘Error’ as ​<li>​ is  an empty tag is mentioned 
OR 
‘No output’ / ‘Error’ is mentioned  
(f)  ​Given below is a code. 2 
<message>
<text>Hello, world!</text>
</message>
Which language is used to write the above code? 
What are ​<message>, </message>, <text> and </text>? 
Ans Language  used is XML   
 
<message>, </message>,<text > and </text > are user defined tags 
OR  tags  ​OR  container  tags  ​OR  ​<message>, </message> ​is  the  root 
element and ​ <text>, </text> ​is the child element. 
  (1 mark for each part)   
(g) Rewrite the following  code using if else if statement instead of switch :  2 
switch (success) {
case -1: x1 = "No result" ;
break;
case 0: x ​ 1 = ​"Final result- Not successful";
break;
default: x1 = "result NOT known";
break;
}

Page #3/15 
 

CBSE AISSCE 2017 Marking Scheme for Informatics Practices 
(Sub Code:065      Paper Code 90/Outside Delhi)

Ans if (success == -1)  


x1= “No result”;
else if (success == 0)
x1= “Final result -Not successful”;
else
x1= “result NOT known”;
  (2 marks for correct ​if-else-if​ construct and conditions)   
OR 
(1 mark for correct use of ​if-else-if​ construct) 
(1 mark for correct conditions) 
3 (a) How is a database related to a table ?  1 
Ans Database contains related tables.   
OR 
Database contains tables.  
  ( 1 mark for any correct answer )   
(b) Ariya  wants  to  add  another  column  ‘Gender’  in  the  already  existing  table  1 
‘CUSTOMERS’.  She  has  written  the  following  statement.  However  ,  it  has 
errors . Rewrite the correct statement. 
[​MODIFY TABLE CUSTOMERS GENDER char(1);
Ans ALTER TABLE CUSTOMERS  
ADD GENDER CHAR(1);
OR
ALTER TABLE CUSTOMERS
ADD GENDER CHAR;
OR
ALTER TABLE CUSTOMERS
ADD COLUMN GENDER CHAR;
OR
ALTER TABLE CUSTOMERS
ADD COLUMN GENDER CHAR(1);
  ( ½  mark for ​ALTER TABLE​ )   
( ½  mark for ​ADD​ clause) 
NOTE:​ ​VARCHAR(1)​ ​in place of ​CHAR​ should be accepted 
(c) In  a  hospital,  the  patients  are  allocated  to  wards.  A  database  named  2 
‘Hospital’  is  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  the  ‘Hospital’ 
database,  with  3  suitable  columns  identifying  Primary  key  and  Foreign  key  in 
the table that you expect. 
Ans Example:   
Table - Patient 
Columns - PatientId, PatientName, WardId 
Patient Id  - Primary Key 
WardId - Foreign Key 

Page #4/15 
 

CBSE AISSCE 2017 Marking Scheme for Informatics Practices 
(Sub Code:065      Paper Code 90/Outside Delhi)

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  
(d) Explain the following statement with the help of example:  2 
“In  a  transaction  either  all  the  SQL  statements  be  committed  or  all  rolled 
back.” 
Ans Any  MySQL  example  showing  ​COMMIT, ROLLBACK, AUTOCOMMIT  ​to  be   
accepted OR definition of transaction 
  (2 marks for the correct answer)   
NOTE : Full 2 marks to be given if 3(e) or 3(f) is attempted. 
(e) 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?
Ans    
DEPCODE DEPNAME
101 OFFICE
102 FRONT OFFICE
103 PERSONNEL
104 HRD
 
  (½ mark for each line of output )   
(f) How  is  ​HAVING  clause  similar  to  ​WHERE  clause?  How  is  ​HAVING  clause  2 
different from ​WHERE​ clause? Explain with the help of examples of each. 
Ans Similarity : Both ​HAVING​ and ​WHERE​ clause are used for checking condition(s)    
Difference  :  ​WHERE  clause  is  used  for  simple  condition(s).  ​HAVING  clause  is 
Page #5/15 
 

CBSE AISSCE 2017 Marking Scheme for Informatics Practices 
(Sub Code:065      Paper Code 90/Outside Delhi)

used for conditions with group of values.  
 
e.g.  
WHERE​ clause:  
SELECT * FROM EMP WHERE DEPT = “PHYSICS “ ;

HAVING​ clause :  
SELECT SUM(SALARY), DEPT FROM EMP
GROUP BY DEPT HAVING COUNT(*) > 3;

OR 
Any other valid example 
  (½ mark for Similarity)   
(½ mark for Difference) 
(½ mark for any correct example of ​WHERE​ clause) 
(½ mark for any correct example of ​HAVING​ clause) 
NOTE:  1  mark  each  for  Similarity  and  Difference  to  be  allotted  if 
explained with the help of valid example. 
4 (a) Write the values of r and s after execution of following code:  1 
int p = 11;
int q = 21;
int r;
int s;
r = ++q;
s = p++;
r++;
Ans r = 23  
s = 11
  (½ mark for each correct answer)   
(b) What  will  be  displayed  in  jTextField1  and  jTextField2  after  the  following  2 
code is executed: 
​int ndigits = 0;
int N = 35;
while (N > 12) {
ndigits = ndigits + 1;
N = N-10;
}
jTextField1.setText(" "+ndigits);
jTextField2.setText(" "+N);
Ans jTextField1​ will display  3   
jTextField2​ will display  5 
  (1 mark for each correct answer)   
(c) Write the value of C after executing the following code:  2 
int P;
int R = 8;

Page #6/15 
 

CBSE AISSCE 2017 Marking Scheme for Informatics Practices 
(Sub Code:065      Paper Code 90/Outside Delhi)

int oddNum;
int C = 0;
for (P = 1; P < R; P=P+3)
{
oddNum = P %2;
if (oddNum == 1)
{
C= C+1;
}
}
Ans 2   
  (2 marks for correct value of  C)   
(d) Write  the  value  that  will  be  stored  in  variable  ​t  after  the  execution  of  the  2 
following code . How many times will the loop execute ? 
int sum = 0;
int score = 0;
double t;
do
{
score = score +1;
sum = sum + score;
}
while (score <=3);
t = sum / 3; 
Ans Value of t will be 3.0    
Loop executes 4 times 
NOTE: 3 and 3.3 for value of t should also be accepted  
  (1 mark for correct value of  ‘t’)   
(1 mark for correct number of iterations) 
(e) The  following  code  has  error(s).  Rewrite  the  correct  code underlining all the  2 
corrections made : 
int j;
int i = 15;
int flag = 1;
while( j = 2 j < i; j++)
{
if(i % j = 0)
{
flag == 0;
break;
}
}
Ans Corrected code :  
int j;

Page #7/15 
 

CBSE AISSCE 2017 Marking Scheme for Informatics Practices 
(Sub Code:065      Paper Code 90/Outside Delhi)

int i = 15;
int flag = 1;
for​(j = 2​;​ j < i ; j++)
{
if ( i % j ​= =​ 0)
{
​flag = 0​;
break ;
}
}
OR
int j;
int i = 15;
int flag = 1;
j=2;
while(​j < i​)
{
if ( i % j ​= =​ 0)
{
​flag = 0​;
break ;
}
​j++;
}
  (½ mark each for correcting any four errors)   
OR 
(1  mark  for  only  identifying  any  four  errors  –  without  making  any 
corrections)  
(f) Ms. Fauzia works as a programmer in “TelTel Mobile Company” where she has   
designed  a  software  to  compute  charges  to  be  paid  by  the  mobile  phone   
user. A screenshot of the same is shown below:   
 
 
 
 
 
 
 
 
 
 
 
 
 
 
   

Page #8/15 
 

CBSE AISSCE 2017 Marking Scheme for Informatics Practices 
(Sub Code:065      Paper Code 90/Outside Delhi)

 
  Each Call is charged at Rs.1.00 .   
  Each SMS is charged at Rs. 0.50.   
  Users  can  also  opt for Mobile Data Plan. Charges for Mobile Data Plan are flat   
 
Rs.50.00.   
 
  Help Ms. Fauzia in writing the code to do the following:   
(i)  When  the  ‘Calculate  Charges’  button  is  clicked,  ‘Calls  and  SMS  Charges’,   
‘Mobile  Data  Plan  Charges’  and  ‘Amount  to  Pay’  should  be  calculated  and   
displayed in the respective text fields.   
​‘Amount to Pay’ is calculated as:   
Calls and SMS Charges + Mobile Data Plan Charges(if any)  4 
Ans  int Calls, Sms;  
double Total,dataAmt = 0, grandTot, callsChg ,smsChg;
Calls = Integer.parseInt(jTextField3.getText());
Sms = Integer.parseInt(jTextField4.getText());
callsChg = Calls * 1.00 ;
smsChg = Sms * 0.5 ;
Total = callsChg + smsChg;//Total=(Calls*1.00)+(Sms*0.5);
if (jCheckBox1.isSelected())
dataAmt = 50.00;
grandTot = Total + dataAmt;
jTextField5.setText(“”+ Total);
jTextField6.setText(“”+dataAmt);
jTextField7.setText(“”+grandTot);
  (1 mark for calculating ‘Amount to Pay’ )   
(1 mark for correct use of if statement) 
(1 mark for calculating and displaying  ‘Grand Total’) 
(½ mark for displaying ‘Calls and SMS Charges’) 
(½  mark for displaying ‘Mobile Plan charges’)
(ii)  When  ‘Clear’  button  is  clicked,  all  the  textfields  and  checkbox  should  be  1 
cleared. 
jTextField1.setText(“”);  
jTextField2.setText(“”);
jTextField3.setText(“”);
jTextField4.setText(“”);
jTextField5.setText(“”);
jTextField6.setText(“”);
jTextField7.setText(“”);
jCheckBox1.setSelected(false);
  (½  mark  for  clearing  any  TextField  and  ½  mark  for  clearing  the   
CheckBox) 
NOTE : NULL in place of “” to be accepted for clearing text field.

Page #9/15 
 

CBSE AISSCE 2017 Marking Scheme for Informatics Practices 
(Sub Code:065      Paper Code 90/Outside Delhi)

(iii)  When the ‘Exit’ button is clicked, the application should close.  1 
  System.exit(0);  
  (1 mark for correct answer)  
5 Consider the Table “Infant”  shown below.     
Table: Infant 
ItemCode Item DatePurchase UnitPrice Discount
101 Frock 2016-01-23 700 10
102 Cot 2015-09-23 5000 25
103 Soft Toy 2016-06-17 800 10
104 Baby Socks 2014-10-16 100 7
105 Baby Suit 2015-09-20 500 5
  
NOTE : Discount column stores discount %.   
Write the commands in SQL for (i) to (viii) and output for (ix) and (x)  
(i)  To display the details about the Cot. 1 
Ans SELECT * FROM Infant WHERE Item=’Cot’;  
OR
SELECT * FROM Infant WHERE Item IN(’Cot’);
  (½  mark for ​SELECT​)   
(½  mark for ​WHERE)
(ii) To  list  the  names  of  items  and  their  unit  price  that  have  unit price less than  1 
800 and discount more than 5%.
Ans SELECT Item,UnitPrice FROM Infant  
WHERE UnitPrice<800 AND Discount>5;
 
NOTE: ​&&​ should  be accepted in place of ‘AND’ 
  ( ½  mark for ​SELECT​)   
( ½  mark for ​WHERE)
(iii)   To  list  the  names  of  items  and  their  date  of  purchase  that  were  purchased  1 
after 31​st​ December , 2015. 
Ans  SELECT Item, DatePurchase FROM Infant  
WHERE DatePurchase>’2015-12-31’;
OR
SELECT Item, DatePurchase FROM Infant
WHERE DatePurchase> 20151231;
  ( ½  mark for ​SELECT​)   
( ½  mark for ​WHERE​)
(iv)  To display the number of items that have more than 10% as discount 1 
Ans  SELECT COUNT(Item) FROM Infant  
WHERE Discount > 10;
  ( ½  mark for ​SELECT​)   

Page #10/15 
 

CBSE AISSCE 2017 Marking Scheme for Informatics Practices 
(Sub Code:065      Paper Code 90/Outside Delhi)

( ½  mark for ​WHERE)
(v) To display Item code and unit price in decreasing order of unit price. 1 
Ans  SELECT ItemCODE, UnitPrice FROM Infant  
ORDER BY UnitPrice DESC;
  ( ½  mark for ​SELECT​)   
( ½  mark for ​ORDER BY​)
(vi)  To increase the Unit price of each item by 10% of their unit price. 1 
Ans UPDATE Infant  
SET UnitPrice = 1.10 * UnitPrice;
OR
UPDATE Infant
SET UnitPrice = UnitPrice + .10 * UnitPrice;
OR
UPDATE Infant
SET UnitPrice = UnitPrice + 10/100 * UnitPrice;
( ½  mark for ​UPDATE​)   
( ½  mark for ​SET​)
(vii)  To display the highest unit price of items.  1 
Ans  SELECT MAX(UnitPrice)  
FROM Infant;
  ( ½  mark for ​SELECT​)   
( ½  mark for ​MAX()​)
(viii To display the names of items that have ‘Baby’ anywhere in their item names 1 

Ans  SELECT Item FROM Infant  
WHERE Item LIKE ‘%Baby%’;
  ( ½  mark for ​SELECT​)   
( ½  mark for​ ​LIKE​ Clause​)
(ix)  SELECT MID(Item,1,2) FROM Infant; 1 
Ans  MID(Item,1,2)  
​Fr
Co
So
Ba
Ba
  (1 mark for correct output)  
(x)  SELECT AVG(UnitPrice)FROM Infant 1 
WHERE DATEPURCHASE >’2015-01-01’;
Ans  AVG(UnitPrice)  
1750.0

Page #11/15 
 

CBSE AISSCE 2017 Marking Scheme for Informatics Practices 
(Sub Code:065      Paper Code 90/Outside Delhi)

OR 
AVG(UnitPrice)
1925.0
NOTE : Option 2 to be accepted if updation is taken into consideration. 
  (1 mark for correct output)   
 
6 (a) “XYZ”  Company  conducts  workshops  for  employees  of  organizations.  The  2 
company  requires  data  of  workshops  that  are  organized.  Write  SQL  query  to 
create a table ‘Workshop’ with the following structure: 

Field  Type  Constraint 


WorkshopId  integer  Primary Key 
Title  Varchar(50)   
DateWorkshop  Date   
NumSpeakers  Integer   

Ans CREATE TABLE WORKSHOP  


(
WorkshopId INTEGER PRIMARY KEY,
Title VARCHAR(50),
DateWorkshop DATE,
Numspeakers INTEGER
);
  ( ½  mark for ​CREATE TABLE​)   
( 1 mark for Column Names with Data Types) 
( ½ mark for ​PRIMARY KEY ​Constraint)
(b) Consider the tables given below and answer the questions that follow :  2 
​ ​ Table: Event   
EventId Event NumPerformers CelebrityID  
101 Birthday 10 C102  
102 Promotion Party 20 C103  
103 Engagement 12 C102  
104 Wedding 15 C104  
 
Table: Celebrity   
CelebrityID Name Phone FeeCharged  
C101 Faiz Khan 99101956 200000  
C102 Sanjay Kumar 893466448 250000  
C103 Neera Khan Kapoor 981166568 300000  
C104 Reena Bhatia 65877756 100000  
 
(i)  Name the Primary keys in both the tables and Foreign key in ‘Event’ table.   
Can  NumPerformers(Number  for  performers)  be  set  as  the  Primary  key?  Give 
reason. 

Page #12/15 
 

CBSE AISSCE 2017 Marking Scheme for Informatics Practices 
(Sub Code:065      Paper Code 90/Outside Delhi)

Ans  Table: Event   
PRIMARY KEY​ – EventId 
Table: Celebrity 
PRIMARY KEY​ – CelebrityID 
Table : Event 
FOREIGN KEY​ – CelebrityID  
 
No, NumPerformers cannot  be set as Primary key because  
It  may  not  be  unique  in  every  row  (when  more  rows  are  added  to  the  table 
later) 
NOTE:  Yes,  should  also  be  considered  as  in  the  given  table 
NumPerformers contains ​UNIQUE​ and ​NOT NULL​ values. 
  (½  mark  for  ​PRIMARY KEY  of  both  tables  and  ​FOREIGN KEY  of  Event   
table) 
(½  mark for stating Yes / No  and/or with correct reason) 
(ii)  How  many  rows  will  be  present  in  the  Cartesian join of the above mentioned   
2 tables? 
In  the  table  ‘Event’,  the  CelebrityID  102  is  present  twice  in  the  column 
“CelebrityId”. Is there any discrepancy? Give reason. 
Ans  Number of rows in the Cartesian join =  16   
No  discrepancy.  Because  the  same  Celebrity  may  perform  in  more  than  one 
events. 
NOTE: 
“It  is  a  foreign  key  column, hence it can store duplicate values” may also 
be accepted. 
  (½ mark for stating the numbers of rows )   
(½ mark for stating no discrepancy without stating reason) 
(c) With  reference  to  the  above  given  tables  (in  Q6  b),  Write  commands  in  SQL   
for (i) to (iii) 
(i)  To  display  EventId,  Event  name,  Celebrity  Id  and  Names  of  celebrities  for  2 
only those events that have more than 10 performers. 
Ans  SELECT EventId, Event, Event.CelebrityId, NAME  
(i)  FROM Event, Celebrity
WHERE Event.CelebrityId = Celebrity.CelebrityId AND
NumPerformers>10;
OR
SELECT EventId, Event, E.CelebrityId, Name
FROM Event E, Celebrity C
WHERE E.CelebrityId = C.CelebrityId AND NumPerformers>10;
  (½  mark for ​SELECT​)   
(½ mark for ​FROM​) 
(½ mark for correct use of Join) 

Page #13/15 
 

CBSE AISSCE 2017 Marking Scheme for Informatics Practices 
(Sub Code:065      Paper Code 90/Outside Delhi)

(½ mark for ​NumPerformers>10​ condition) 
(ii)  To  display  Event  name,  Celebrity  Id  and  Names  of  celebrities  who  have  2 
“Khan” anywhere in their names. 
Ans  SELECT Event, Event.CelebrityId, Name  
(ii)  FROM Event, Celebrity  
WHERE Event.CelebrityId = Celebrity.CelebrityId AND Name
LIKE ‘%Khan%’;
OR
SELECT Event, E.CelebrityId, Name
FROM Event E, Celebrity C
WHERE E.CelebrityId = C.CelebrityId AND Name LIKE
‘%Khan%’;
OR
SELECT E.Event, E.CelebrityId, C.Name
FROM Event E, Celebrity C
WHERE E.CelebrityId = C.CelebrityId AND C.Name LIKE
‘%Khan%’;
  (½  mark for ​SELECT​)   
(½ mark for ​FROM​) 
(½ mark for correct use of Join) 
(½ mark for ​Name LIKE ‘%Khan%’​ condition) 
(iii)  To  display  Event  name,  Names  of  celebrities  and  Fee  charged  for  those  2 
celebrities who charge more than 200000 . 
Ans  SELECT Event, Name, FeeCharged  
(iii)  FROM Event, Celebrity
WHERE Event.CelebrityId = Celebrity.CelebrityId AND
FeeCharged > 200000;
OR
SELECT Event, Name, FeeCharged
FROM Event E, Celebrity C
WHERE E.CelebrityId = C.CelebrityId AND FeeCharged >
200000;
OR
SELECT E.Event, C.Name, C.FeeCharged
FROM Event E, Celebrity C
WHERE E.CelebrityId = C.CelebrityId AND C.FeeCharged >
200000;
  (½  mark for ​SELECT​)   
(½ mark for ​FROM​) 
(½ mark for correct use of Join) 
(½ mark for ​FeeCharged > 200000​ condition)
7 (a) List two disadvantages of e-governance to a disabled person.  2 

Page #14/15 
 

CBSE AISSCE 2017 Marking Scheme for Informatics Practices 
(Sub Code:065      Paper Code 90/Outside Delhi)

Ans 1. There is usually a lack of internet/computer literacy among the disabled.   
2. Personal  interaction  is  limited  in  e-governance,  so  the  human  element 
bond is missing which disabled  people need. 
  (1 mark each for any two disadvantages )   
(b) How  can  online  retailers  usually offer customers a wider range of products at  1 
prices that are lesser than those of traditional stores? 
 
Ans Online  retailers  usually  offer  customers  a  wider  range  of  products  at  prices   
that  are  lesser  than  those  of  traditional  stores  ​because  they  have  fewer 
infrastructural and operational costs. 
(1 mark for stating any valid reason)   
(c) ​Ms.  Cathy  is  creating  a form for Vidya University Sports Council  application.  2 
Help  her  to  choose  the  most  appropriate  controls  from  ListBox,  ComboBox, 
TextField,  TextArea,  RadioButton,  CheckBox,  Label  and  Command  Button  for 
the following entries. 
S.NO.  FUNCTION 
1.  To let the user enter NAME 
2.  To let the user enter MOBILE NUMBER 
3.  To  let  the  user  choose  one  PROFESSION  out  of  the  categories  : 
Teaching / Non -Teaching/Research Scholar 
4.  To  let  the  user  select  facilities  out  of  Gym,  Yoga,  Table  Tennis, 
Badminton and Aerobics. More than one facility may be chosen 

Ans   
 
S.NO.  FUNCTION  CONTROL 

1.  To let the user enter NAME  TextField 


2.  To let the user enter MOBILE NUMBER  TextField 
To  let  the  user  choose one PROFESSION out of the  RadioButton 
3.  categories  :  Teaching  /  Non  -Teaching/Research  / Combo 
Scholar  Box 
To  let  the  user  select  facilities  out of Gym, Yoga, 
CheckBox / 
4.  Table  Tennis,  Badminton  and  Aerobics.  More than 
List Box 
one facility may be chosen 

  ( ½ mark for each correct answer)   
 

Page #15/15 
 

Strictly Confidential: (For Internal and Restricted use only) 


Senior School Certificate Examination 
March 2019 
Marking Scheme – INFORMATICS PRACTICES (SUBJECT CODE 065) 
(SERIES: BVM PAPER CODE – 90​)

General Instructions: 
1. You  are  aware  that  evaluation  is  the  most  important  process  in the actual and correct assessment of 
the  candidates.  A  small  mistake  in  evaluation  may  lead  to  serious  problems  which  may  affect  the 
future  of  the  candidates,  education  system  and  the  teaching  profession.  To  avoid  mistakes,  it  is 
requested  that  before  starting  evaluation,  you  must  read  and  understand  the  spot  evaluation 
guidelines  carefully.  Evaluation  is  a  10  -12  days  mission  for  all  of  us.  Hence,  it  is  necessary  that 
you put in your best efforts in this process. 
2. Evaluation  is  to  be  done  as  per  instructions  provided  in  the  Marking  Scheme.  It  should  not  be  done 
according  to  one’s  own  interpretation  or  any  other  consideration.  Marking  Scheme  should  be strictly 
adhered  to  and  religiously  followed.  ​However,  while  evaluating,  answers  which  are  based  on  the 
latest  information  or  knowledge  and/or  are  innovative,  they  may  be  assessed  for  their 
correctness otherwise and marks be awarded to them. 
3. The  Head-Examiner  must  go  through  the  first  five  answer  books  evaluated  by  each  evaluator  on  the 
first  day,  to  ensure  that  evaluation  has  been  carried  out  as  per  the  instructions  given in the Marking 
Scheme.  The  remaining  answer  books  meant  for  evaluation  shall  be  given  only  after  ensuring  that 
there is no significant variation in the marking of individual evaluators.  
4. If  a  question  has  parts,  please  award  marks  on  the  right-hand  side  for  each  part.  Marks  awarded for 
different  parts  of  the  question  should  then  be  totaled  up  and  written  in  the  left-hand  margin  and 
encircled.  
5. If a question does not have any parts, marks must be awarded in the left hand margin and encircled. 
6. If  a  student has attempted an extra question, answer of the question deserving more marks should be 
retained and the other answer scored out. 
7. No marks to be deducted for the cumulative effect of an error. It should be penalized only once. 
8. A full scale of marks 0-70 has to be used. Please do not hesitate to award full marks if 
the answer deserves it. 
9. Every examiner has to necessarily do evaluation work for full working hours i.e. 8 hours every day and 
evaluate 25 answer books per day. 
10. Ensure  that  you  do not make the following common types of errors committed by the Examiner in the 
past:- 
a. Leaving the answer or part thereof unassessed in an answer book. 
b. Giving more marks for an answer than assigned to it. 
c. Wrong transfer of marks from the inside pages of the answer book to the title page. 
d. Wrong question wise totaling on the title page. 
e. Wrong totaling of marks of the two columns on the title page. 
f. Wrong grand total. 
g. Marks in words and figures not tallying. 
h. Wrong transfer of marks from the answer book to online award list. 
i. Answers  marked  as  correct,  but  marks  not  awarded.  (Ensure  that  the  right  tick  mark  is correctly 
and clearly indicated. It should merely be a line. Same is with the X for incorrect answer.) 
j. Half or a part of answer marked correct and the rest as wrong, but no marks awarded.  
11. While  evaluating  the  answer  books  if  the  answer is found to be totally incorrect, it should be marked 
as (X) and awarded zero (0) Marks. 
12. Any  unassessed  portion,  non-carrying  over  of  marks  to  the  title  page,  or  totaling  error  detected  by 
the  candidate  shall  damage  the  prestige  of  all  the  personnel  engaged  in  the  evaluation  work  as  also 
of  the  Board.  Hence,  in  order  to  uphold  the  prestige  of  all  concerned,  it  is again reiterated that the 
instructions be followed meticulously and judiciously. 
13. The  Examiners  should  acquaint  themselves  with  the  guidelines  given  in  the  Guidelines  for  spot 
Evaluation before starting the actual evaluation. 

[Informatics Practices Sub Code: 065 Series: BVM Paper Code 90] [Page 1 of 17] 
 

14. Every  Examiner  shall  also  ensure  that  all  the  answers  are  evaluated,  marks  carried  over  to  the  title 
page, correctly totaled and written in figures and words. 
15. The  Board  permits  candidates  to  obtain  a  photocopy  of  the  Answer  Book  on  request  in  an  RTI 
application  and  also  separately  as  a  part  of  the  re-evaluation  process  on  payment  of  the  processing 
charges. 

Specific Instructions: 
[In Java ] 
● Ignore case sensitivity for variable / identifiers 
 
[In SQL related questions ] 
● Single  quote  ‘  ’  as  well  as  double  quote  “  ”  should  be  accepted  for  text/character/date  entries. 
For example: “AMAR” and ‘amar’ both are acceptable. 
● Date  entries  should  be  accepted  in  all  formats.  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. 
● Semicolon should be ignored for terminating the SQL statements. 
● Ignore case sensitivity for commands. 
● Ignore headers in output questions. 
 
1  (a)  Write the functions of the following pieces of network hardware :  2 
(i) Modem 
(ii) Switch 
  Ans  Modem - It converts analog signals to digital signals and vice-versa .    
Switch - It connects several nodes to form a network and directs the received 
information only to the intended node. 
(1 mark for each part) 
Note:  Full  1  mark  to  be  awarded  if  only  expansion  of  MODEM  (Modulator 
Demodulator) is mentioned .  
 
   (b)  Write two ways used to make sure that the data  is secure and is available only to  2 
the intended and authorized persons in a network. 
  Ans  (i) Assigning login name and password     
(ii) Installing firewall 
(iii)Assigning appropriate file permissions   
(1 mark each for mentioning any two correct ways ) 
Note: Any other software or hardware methods ensuring network security to be 
accepted  
 
   (c)  Expand TCP/IP. Write the purpose of TCP/IP in communication of data on a  2 
network. 
  Ans  Transmission control Protocol/Internet Protocol.    
TCP/IP c​ontrols and manages data transmission over networks. 
(½ mark for correct expansion of TCP) 
(½ mark for correct expansion of IP) 
(1 mark for purpose of TCP/IP) 

   (d)  Expand the following terms:  2 


(i) MAC Address 
(ii) ODF 
  Ans  (i) MAC address-Media Access Control address    
(ii) ODF-Open document Format 
(​1 mark for each correct expansion) 

[Informatics Practices Sub Code: 065 Series: BVM Paper Code 90] [Page 2 of 17] 
 

   (e)  Explain  in  brief  any  one  freedom  offered  by  Open  Source  Software.  Write  one  2 
example for each of the following: 
(i) An Open Source Operating System  
(ii) An Open Source Office Suite 
  Ans  ● Freedom to use software for any purpose     
● Freedom to modify software 
● Freedom to distribute copies of the software 
 
Examples of Open Source Operating System:  
BOSS  ,Linux,  Android,Ubuntu  ,  FreeBSD,  OpenBSD,  NetBSD,  DragonFly  BSD, 
OpenSolaris,  illumos,  AuroraUX, Darwin, OpenDarwin, MINIX, FreeRTOS, FreeDOS, 
Haiku,  House  KolibriOS,  MenuetOS,  GNU,  ReactOS,  L4,  Fiasco,  Pistachio,  Plan  9, 
AROS,  Syllable,  Inferno,  NuttX,  eCos,  RTEMS,  HelenOS,  E/OS,  TempleOS,  Kali 
Linux , Google Chrome OS 
 
​ Example of Open Source Office Suite:  
​Open Office , Neo Office , LibreOffice ,Adobe Open Office (Google Docs, Sheets, 
Slides) 
(1 mark for mentioning for any one freedom ) 
(½ mark for mentioning any one correct example of Open Source Operating System) 
(½ mark for mentioning any one correct example of Open Source Office suite) 
 
2  (a)  Write  the  data  type  of  variables  that  should  be  used  to  store  the  following  in  1 
Java : 
(i) Sales amount (of Sales) achieved by a Sales Person 
(ii) Roll Number of Student 
  Ans i) float /double / int / long   
ii) int / byte / short / long
(½ mark each for both parts ) 
Note: String data type to be accepted for Roll number of student   
 
   (b)  Distinguish  between  isSelected() and setSelected() methods of Java with the help  1 
of example. 
  Ans  Example:     
rb1.setSelected(true); 
boolean b=rb1.isSelected();
Difference :  
isSelected():​ ​Returns true if the component is checked otherwise returns 
false 
setSelected():​ ​Checks or unchecks component according to boolean value 
true or false.  
(1 mark for correct difference) 
Note: Full 1 mark to be awarded if either example or explanation is correct. 
  
   (c)  What will be displayed in jTextField1 and jTextField2 when the following code is  2 
executed? 
 

int x,y,z,t;
x=3;
y=8;
z=x+y/8;
t=z++;
[Informatics Practices Sub Code: 065 Series: BVM Paper Code 90] [Page 3 of 17] 
 

jTextField1.setText(""+z);
jTextField2.setText(""+t); 
  Ans  The content of jTextField1 is 5   
The content of jTextField2 is 4 
    (1 mark each for each correct output)    
 

    OR   
    What will be displayed in jTextField1 and jTextField2 when the following code is   
executed?  

int x,y,z,t;
t=3;
z=0;
do
{
z=z+1;
}
while(t>3);
jTextField1.setText(""+z);
jTextField2.setText(""+t); 
  Ans  The content of jTextField1 is 1    
The content of jTextField1 is 3  
(1 mark each for each correct output)  
 

   (d)  The following HTML code has error(s). Rewrite the correct code underlining  2 
corrections made. 
<ol type="A" begin="4">
<li>List item 1</li>
<li>List item 2</li>
<li>List item 3</li>
<end> 
  Ans  <ol type="A" ​start=​"4">  
<li>List item 1 </li>
<li>List item 2 </li>
<li>List item 3 </li>
<​/ol​>
OR 
<ol type="A" ​start=​"4">
<li>List item 1
<li>List item 2
<li>List item 3
<​/ol​>
    1 mark each for identifying and correcting both errors    
Note : Only 1 mark to be awarded if errors are only identified     
 
    OR   
    Expand XML. For what purpose is XML used?   
  An​s  X
​ ML stands for eXtensible Markup Language. 
Purpose : XML is used to describe data  

[Informatics Practices Sub Code: 065 Series: BVM Paper Code 90] [Page 4 of 17] 
 

(1 mark for writing the expanded form)  


(1 mark for correct purpose)  
 

   (e)  Write the output that will be displayed on jLabel1 and jLabel2.  2 
 

String a,b,c,d,x;
a="Keep";
b="your";
c="surroundings";
d="clean";
int e = b.length()/4+d.length()*2;
x=b+c+d;
x=a.concat(x);
jLabel1.setText("The value of e = "+e);
jLabel2.setText(x.toUpperCase());
  Ans  jLabel1 - The value of e = 11   
jLabel2 - KEEPYOURSURROUNDINGSCLEAN
(1 mark each for each correct output) 
 

   (f)  Write the output displayed in jTextField1 and jTextFiled2 when the following  2 
code is executed​:
char code;
int z;
z = 0;
code = 'w';
switch(code)
{
case 'w': z = z+1;
case 'r': z = z+2;
break;
case 's': z=z +3;
break;
default : z = z+4;
}
jTextField1.setText(""+z);
jTextField2.setText(""+code);  
Ans  The content of jTextField1 is 3
The content of jTextField2 is w
  (1 mark each for each correct output) 
 
  OR 
  What happens if break statement is omitted with a case in a switch statement? 
Ans  If break is omitted control moves to the next case / statement. 
   (2 marks for correct answer )    
Note: Full 2 marks to be awarded if explained with an example or Fall through is 
mentioned .   
 

3  (a)  In ​CHAR(10) and VARCHAR(10)​, what does the number 10 indicate?  1 


  Ans  It indicates the maximum number of characters that can be stored .    
OR 
It indicates the Size of the column.  
( 1 mark for the correct answer) 

[Informatics Practices Sub Code: 065 Series: BVM Paper Code 90] [Page 5 of 17] 
 

   (b)   ‘Employee’ table has a column named ‘CITY’ that stores city in which each  1 
employee resides. Write SQL query to display details of all rows except those 
rows that have CITY as ‘DELHI’ or ‘MUMBAI’ or ‘CHANDIGARH’. 
  Ans  SELECT * FROM Employee   
WHERE CITY NOT IN ('DELHI','MUMBAI','CHANDIGARH');

OR 

SELECT * FROM Employee


WHERE CITY <> 'DELHI' AND CITY <> 'MUMBAI'
AND CITY <> 'CHANDIGARH' ;

OR 

SELECT * FROM Employee


WHERE NOT CITY IN ('DELHI','MUMBAI','CHANDIGARH'); 
(½ mark for Select) 
(½ mark for where clause) 
Note: && to be considered instead of AND , != to be considered instead of <> ) 
 
   (c)  Consider the following table :  2 
Table : RESULTS 
 

STUDENTID  NAME  EXAMID  SCORE 

10  Leena  1  20 

10  Leena  2  25 

11  Samarth  1  30 

11  Samarth  2  35 

12  Jai  1  14 

12  Jai  2  15 

14  Shoaib  1  30 

14  Shoaib  2  12 


Abhay wants to know the number of students who took the test. He writes the 
following SQL statement to count STUDENTID without duplicates. However the 
statement is not correct. Rewrite the correct statement. 
SELECT DISTINCT (COUNT STUDENTID) FROM RESULTS;
  Ans  SELECT COUNT (DISTINCT STUDENTID) FROM RESULTS;   
( 1 mark for the correct statement) 
 

(d)  Aman has used the following SQL command to create a table ‘stu’:  2 
CREATE TABLE stu
(
id INTEGER,
name VARCHAR(100)
);
[Informatics Practices Sub Code: 065 Series: BVM Paper Code 90] [Page 6 of 17] 
 

Then,Aman enters the following SQL statements to enter 4 rows: 


INSERT INTO stu VALUES(1,"abc");
INSERT INTO stu VALUES(2,"abc");
INSERT INTO stu VALUES(3,"bcd");
Write the output that will be produced by the following SQL statement : 
 

SELECT name, Count(*)


FROM stu
GROUP BY name;
  Ans    
NAME COUNT(*)

abc 2

bcd 1

(1 mark each for line of output)  


Note : Full 2 marks to be awarded if question is attempted or error mentioned 
 
   (e)  Write SQL command to add a column “COUNTRY” with data type and size as  2 
     VARCHAR(70) to the existing table named “PLAYER”. Is it a DDL or DML or TCL   
   command?   
Ans ALTER TABLE PLAYER ADD COUNTRY VARCHAR(70);
It is a DDL command 
(½ mark for ALTER TABLE ) 
(½ mark for ADD ) 
(1 mark for identifying DDL command)  
 

   (f)  Table student has the columns RNO and SCORE. It has 3 rows in it. Following two  2 
SQL statements were entered that produced the output (AVG(SCORE) as 45 and 
COUNT(SCORE) as 2): 
(i) AVG(SCORE)
(ii)COUNT(SCORE​) 
Data in SCORE column is same in two rows. What data is present in the SCORE 
column in the three rows ?
  Ans  45   
45
NULL  
(1 mark for mentioning 45 in rows ) 
(1 mark for mentioning NULL)  
Note : 1 mark to be awarded if “​two SQL statements” not provided in question 
is mentioned .  
 

[Informatics Practices Sub Code: 065 Series: BVM Paper Code 90] [Page 7 of 17] 
 

4  (a)  What will displayed in jTextField1 when the following code is executed?  1 
 

int x=3,y=6,z=0;
if(x>3)
z = z + 1;
if((x<4) && (y>6))
z = z + 2;
if(x>2 && y>=6)
z = z + 3;
if((x<3)||(y>6))
z = z + 4;
jTxtField1.setText(""+z);

  Ans  3    
      (1 mark for correct answer)     
Note:  Full  1  mark  to  be  awarded  if  error  “​jTextField1  is  not  present  in  the 
given code” is mentioned. 
 
   (b) Rewrite the following code after correcting errors. Underline the corrections  2 
made. 
 

int a, c;
30 = c;
4 = a;
while do(c>10)
{
a = = a + c;
c = c - 5;
}

  Ans  int a, c;   
c=30;
a=4;
do
{
​a = a + c;
c = c - 5 ;
} ​while (c>10);

OR 
 
int a, c;
c=30;
a=4;
while (c>10)
{
​a = a + c;
c = c - 5;
}

(½ mark each for identifying and correcting four errors)  


(Note : 1 mark for only identification of 4 errors) 
 

[Informatics Practices Sub Code: 065 Series: BVM Paper Code 90] [Page 8 of 17] 
 

   (c)  How many times will the following loop execute?   2 


    int K =7;  
int I = -2;
do
{
I=I+2;
K=K-1;
}
while(I<=K);
  Ans  4 times   
( 2 marks for correct answer )   
 

  OR   

   How many times will the following loop execute?   

     for(i=2;i<=5;i++)   
{
z = i;

Ans 4 times 
( 2 marks for correct answer )  
Note : Only 1 mark for mentioning data type of variable not provided 
 

  (d) Write the output in jTextField1 when the following code is executed:  2 

     int k, n, sum=0;   
for(k = 2; k <=5; k++)
{
n = k - 2 * 3;
sum = sum + n;
}
jTextField1.setText(""+sum);  
  Ans  -10   

    ( 2 marks for correct answer )   


 

    OR   

    Write the output in jTextField1 when the following code is executed:  


int k, n=0, sum=0;
k = 2;
while (k<=5)
{ n = k + 4;
sum = sum + n;
k = k + 2;
}
jTextField1.setText(""+n);
  Ans  8    

( 2 marks for correct answer )  

[Informatics Practices Sub Code: 065 Series: BVM Paper Code 90] [Page 9 of 17] 
 

(e)  Write the values of i and k after the execution of the following code:  2

  int i, j, k;
i = 2;
j = 8;
k = 6;
do
{
i = i + 4;
k = k + i;
}
while(i<j);
Ans  i=10
k=22
  (1 mark for each correct value) 

(f)  Ms.  Supriya  works  as  a  programmer  in  a  courier  company,  “ABC  Packaging  and  4
Shipping  Service”  where  she  has  designed  a  software  to  compute  charges  to  be 
paid by the customers. 
● Weight(in grams) of the parcel is entered by the user. 
● Any one Category of parcel out of A/B/C is chosen by the user. 
● Based  on  the  Category  selected,  Transportation  Charges(per  gram)  are 
computed according to the following criterion: 
Category  Transportation  
Charges Per gram 

A  ₹ 2.00 

B  ₹ 3.00 

C  ₹ 5.00 
● Insurance Charges is a flat ₹ 80.00 per parcel 
● Total Transportation Charges= Transportation Charges Per gram * Weight 
in grams (of parcel) entered by the user. 
● Total Charges = Total Transportation Charges + Insurance Charges. 
Help Ms. Priya in writing the code to do the following: 
(i)  When  ​Calculate  Charges  ​button is clicked​, Insurance Charges, Transportation 
Charges  per  gram,  Total  Transportation  Charges  and  ​Total  Charges  ​should  be 
calculated and displayed in the respective text fields. 
Ans  double wt, tc=0.0, ic=0.0,ttc=0.0, totc=0.0;
(i)  wt=Double.parseDouble(jTextField1.getText());
if(jRadioButton1.isSelected())
tc=2.00;
else if(jRadioButton2.isSelected())
tc=3.00;
else
tc=5.00;
jTextField2.setText(""+tc);
ic=80.00;
jTextField3.setText(""+ic);
ttc=tc*wt;
jTextField4.setText(""+ttc);

[Informatics Practices Sub Code: 065 Series: BVM Paper Code 90] [Page 10 of 17] 
 

totc=ttc+ic;
jTextField5.setText(""+totc);
(½ mark for correct use of if statement for Radiobutton/CheckBox/Combobox) 
(½ mark for assigning correct value to variable tc ) 
(½ mark for assigning correct value to variable ic) 
(½ mark for calculating total transportation charges) 
(½ mark for calculating total charges) 
(½ mark for displaying insurance charges , transportation charges) 
(½ mark for displaying total transportation charges) 
(½ mark for displaying total charges)  
 
Note :  
● 2 Marks for any valid/syntactically correct if/switch condition 
● 2 marks for displaying insurance charges, transportation charges , total 
transportation charges and total charges using ANY appropriate swing control 
or display methods .  
 
(ii)  When  ‘​CLEAR​’  button  is  clicked,  all  the  textfields  and  radiobuttons  should  be  1 
cleared. 
Ans  jTextField1.setText("");
jTextField2.setText("");
jTextField3.setText("");
jTextField4.setText("");
jTextField5.setText("");
jRadioButton1.setSelected(false);
jRadioButton2.setSelected(false);
jRadioButton3.setSelected(false);

OR 

buttonGroup1.clearSelection();
( ½ mark for clearing any text field) 
( ½ mark for clearing radiobutton) 
Note : NULL in place of “” should be accepted for clearing text field. 
 
(iii)  When ‘​Exit​’ button is clicked the application should close.  1 
Ans System.exit(0); 
(1 mark for correct answer) 
 
5.  Consider the following table ‘Transporter’ that stores the order details about 
items to be transported. Write SQL commands for the statements (i) to (viii) and 
 
write output for SQL queries (ix) and (x) 
Table : TRANSPORTER  
ORDERNO  DRIVERNAME  DRIVERGRADE  ITEM  TRAVELDATE  DESTINATION 
10012  RAM YADAV  A  TELEVISION  2019-04-19 MUMBAI 
10014  SOMNATH SINGH    FURNITURE  2019-01-12 PUNE 
10016  MOHAN VERMA  B  WASHING MACHINE  2019-06-06 LUCKNOW 
10018  RISHI SINGH  A  REFRIGERATOR  2019-04-07 MUMBAI 
10019  RADHE MOHAN    TELEVISION  2019-05-30 UDAIPUR 
10020  BISHEN PRATAP  B  REFRIGERATOR  2019-05-02 MUMBAI 
10021  RAM    TELEVISION  2019-05-03 PUNE 

[Informatics Practices Sub Code: 065 Series: BVM Paper Code 90] [Page 11 of 17] 
 

(i)  To display names of drivers and destination city where TELEVISION is being  1 
transported. 
Ans  SELECT DRIVERNAME, DESTINATION
FROM TRANSPORTER
WHERE ITEM="TELEVISION";
( ½ mark for ​SELECT​) 
( ½ mark for ​WHERE) 
(ii)  To display driver names and destinations where destination is not MUMBAI.  1 

Ans  SELECT DRIVERNAME, DESTINATION


FROM TRANSPORTER
WHERE DESTINATION <> "MUMBAI";
OR 
SELECT DRIVERNAME, DESTINATION
FROM TRANSPORTER WHERE DESTINATION != "MUMBAI";
OR 
SELECT DRIVERNAME, DESTINATION
FROM TRANSPORTER
WHERE DESTINATION NOT IN ("MUMBAI");
OR 
SELECT DRIVERNAME, DESTINATION
FROM TRANSPORTER
WHERE NOT DESTINATION = "MUMBAI";
( ½ mark for ​SELECT​) 
( ½ mark for W​ HERE) 
(iii)  To display the names of destination cities where items are being transported.  1 
There should be no duplicate values. 
Ans  SELECT DISTINCT(DESTINATION)
FROM TRANSPORTER;
( ½ mark for ​SELECT​) 
( ½ mark for ​DISTINCT) 
(iv)  To display details of rows that have some value in DRIVERGRADE column.  1 

Ans  SELECT * FROM TRANSPORTER  


WHERE DRIVERGRADE IS NOT NULL;
​ ELECT​) 
(½ mark for S
(½ mark for W​ HERE) 
(v)  To display names of drivers, names of items and travel dates for those items that  1 
are being transported on or before 1​st​ April 2019. 
Ans  SELECT DRIVERNAME, ITEM, TRAVELDATE
FROM TRANSPORTER
WHERE TRAVELDATE <= "2019-04-01";
​ ELECT​) 
(½ mark for S
(½ mark for WHERE) 
 

[Informatics Practices Sub Code: 065 Series: BVM Paper Code 90] [Page 12 of 17] 
 

vi)  To display the number of drivers who have ‘MOHAN’ anywhere in their names.  1 
Ans  SELECT COUNT(DRIVERNAME)
FROM TRANSPORTER
WHERE DRIVERNAME LIKE "%MOHAN%"​; 
   (​½ mark for ​SELECT​) 
(½ mark for ​WHERE) 
 

vii)  To display the names of drivers, item names and travel dates in  1
alphabetic(ascending) order of driver names. 
Ans  SELECT DRIVERNAME, ITEM, TRAVELDATE
FROM TRANSPORTER
ORDER BY DRIVERNAME; [​OR ​ORDER BY DRIVERNAME ASC;]
   (½ mark for S ​ ELECT​) 
(½ mark for ​ORDER BY) 
 

viii)  To display names of drivers whose names are three characters long  1

Ans  SELECT DRIVERNAME


FROM TRANSPORTER
WHERE DRIVERNAME LIKE "_ _ _";
OR 
SELECT DRIVERNAME
FROM TRANSPORTER
WHERE LENGTH(DRIVERNAME) = 3 ;
​ ELECT​) 
   (½ mark for S
(½ mark for W​ HERE) 
 

ix)  SELECT ITEM,COUNT(*) FROM TRANSPORTER


GROUP BY ITEM 1
HAVING COUNT(*) > 1;
Ans  ITEM​ ​COUNT(*)
TELEVISION 3
REFRIGERATOR 2
   (½ mark for each correct line of output) 
 

(x)  SELECT MAX(TRAVELDATE) 1


FROM TRANSPORTER WHERE DRIVERGRADE=’A’;
Ans  MAX(TRAVELDATE)
2019-04-19
   (1 mark for correct answer) 
 

6  (a)  Mr.  Sen  has  to  create  a  table  named  ‘Employee’  with  Columns  to  store  EmpID,  2 
Name  ,Designation,  Age and Salary.EmpID is the Primary Key and Name cannot be 
NULL. 
Some of the rows that will be inserted are shown below . 
101 Smita Kumar Secretary 28 39500.00 
102 Mani Scott Programmer 32 45300.00 
103 Firdaus Ali Programmer II 45 67500.00 
 

[Informatics Practices Sub Code: 065 Series: BVM Paper Code 90] [Page 13 of 17] 
 

Write  SQL  query  to  create  the  above  table  with  appropriate  data  types and sizes 
of columns 
  Ans  CREATE TABLE Employee  
(EmpID INTEGER PRIMARY KEY,
Name VARCHAR(20) NOT NULL ,
Designation VARCHAR(20),
Age INTEGER ,
Salary DECIMAL(8,2)
);
  Ans  (​½ mark for CREATE TABLE)   
(½ mark for PRIMARY KEY constraint) 
(½ mark for NOT NULL constraint) 
(½ mark for Column Names with Data Types) 
Note :
INT in place of INTEGER to be accepted 
CHAR in place of VARCHAR to be accepted 
FLOAT in place of DECIMAL to be accepted  
Any appropriate size of columns to be accepted 
 

    OR   
    Ms.Rajshri  is  the  class  teacher  of  class  XII  .She  wants  to  create  a  table  named   
‘Student'  to  store  marks in different subjects of her class.  Identify any 4 columns 
for the table along with their suitable data types .
  Ans  Admno INT/CHAR / VARCHAR   
Name CHAR / VARCHAR  
Mark1 DECIMAL / FLOAT / INT / INTEGER 
Mark2 DECIMAL / FLOAT / INT / INTEGER 
( ½ mark for each column name and data type) 
(1 mark if four column names are mentioned without mentioning data type) 
Note : Any other appropriate column names to be accepted 
Column size may be ignored  
 

   (b)  Consider  the  following  tables  ​PARTICIPANT  and  ​ACTIVITY  and  answer  the  2
questions that follow: 
Table: PARTICIPANT 
ADMNO  NAME  HOUSE  ACTIVITYCODE 
6473  Kapil Shah  Gandhi  A105 
7134  Joy Mathew  Bose  A101 
8786  Saba Arora  Gandhi  A102 
6477  Kapil Shah  Bose  A101 
7658  Faizal Ahmed  Bhagat  A104 
 

Table: ACTIVITY 
ACTIVITYCODE  ACTIVITYNAME  POINTS 
A101  Running  200 
A102  Hopping bag  300 
A103  Skipping  200 
A104  Bean bag  250 
A105  Obstacle  350 

[Informatics Practices Sub Code: 065 Series: BVM Paper Code 90] [Page 14 of 17] 
 

When  the  table  “PARTICIPANT”  was  first  created,  the  column  ‘NAME’  was 
planned  as  the  Primary  key  by  the  Programmer.  Later  a  field  ADMNO  had  to  be 
set up as Primary key. Explain the reason . 
Ans  NAME column has duplicate values ,cannot be considered as Primary key, 
therefore Admno is to be considered as Primary Key. 
  (2 marks for the correct reason ) 
 

  OR 
  Identify  data  type  and  size  to  be  used  for  column  ACTIVITYCODE  in  table 
ACTIVITY.  
Ans  Data type : CHAR / VARCHAR   
Size : 4  
(1 mark for correct data type ) 
(1 mark for mentioning correct size )  
Note: For the Size, any value more than 4 is also to be accepted. 
 

   (c)  With reference to the above given tables (in Q6 b), write commands in SQL for 
(i) to (iii)  
(i)  To display Activity Code along with number of participants participating in each  2 
activity (Activity Code wise) from the table Participant. 
Ans  SELECT ACTIVITYCODE,COUNT(*)
FROM PARTICIPANT
GROUP BY ACTIVITYCODE;
 

OR 
SELECT CONCAT(ACTIVITYCODE,COUNT(*))
FROM PARTICIPANT
GROUP BY ACTIVITYCODE; 
  (½ mark for S ​ ELECT​) 
(½ mark for ​FROM​) 
(½ mark for correct use of ​GROUP BY​) 
(½ mark for correct use of ​COUNT()​) 
  OR 
  How many rows will be there in the cartesian product of the two tables in 
consideration here ? 
Ans  Number of Rows:25
(2 marks for​ correct answer)​   
 

(ii)  To display Names of Participants , Activity Code, Activity Name in alphabetic  2 


ascending order of names of participants.  
Ans  SELECT NAME , PARTICIPANT.ACTIVITYCODE , ACTIVITYNAME
FORM PARTICIPANT , ACTIVITY
WHERE PARTICIPANT.ACTIVITYCODE = ACTIVITY.ACTIVITYCODE
ORDER BY NAME ;
OR 
SELECT NAME , P.ACTIVITYCODE , ACTIVITYNAME
FORM PARTICIPANT P, ACTIVITY A
WHERE P.ACTIVITYCODE = A.ACTIVITYCODE
ORDER BY NAME ;

[Informatics Practices Sub Code: 065 Series: BVM Paper Code 90] [Page 15 of 17] 
 

OR 
SELECT PARTICIPANT.NAME , PARTICIPANT.ACTIVITYCODE ,
ACTIVITY.ACTIVITYNAME
FORM PARTICIPANT , ACTIVITY
WHERE PARTICIPANT.ACTIVITYCODE = ACTIVITY.ACTIVITYCODE
ORDER BY PARTICIPANT.NAME ;
OR 
SELECT P.NAME , P.ACTIVITYCODE , A.ACTIVITYNAME
FORM PARTICIPANT P , ACTIVITY A
WHERE P.ACTIVITYCODE = A.ACTIVITYCODE
ORDER BY P.NAME ;

(½ mark for S ​ ELECT​) 


(½ mark for ​FROM​) 
(½ mark for correct use of JOIN) 
(½ mark for correct use of ORDER BY) 
 
(iii)  To display Names of Participants along with Activity Codes and Activity Names  2 
for only those participants who are taking part in Activities that have ‘bag’ in 
their Activity Names and Points of activity are above 250. 
Ans SELECT NAME , PARTICIPANT.ACTIVITYCODE , ACTIVITYNAME
FROM PARTICIPANT , ACTIVITY
WHERE PARTICIPANT.ACTIVITYCODE = ACTIVITY.ACTIVITYCODE AND
POINTS > 250 AND ACTIVITYNAME LIKE ‘%bag%’;
OR 

SELECT NAME , P.ACTIVITYCODE , ACTIVITYNAME


FROM PARTICIPANT P, ACTIVITY A
WHERE P.ACTIVITYCODE = A.ACTIVITYCODE
AND POINTS > 250 AND ACTIVITYNAME LIKE '%bag%';

OR 

SELECT PARTICIPANT.NAME , PARTICIPANT.ACTIVITYCODE ,


ACTIVITY.ACTIVITYNAME
FROM PARTICIPANT , ACTIVITY
WHERE PARTICIPANT.ACTIVITYCODE = ACTIVITY.ACTIVITYCODE AND
ACTIVITY.POINTS > 250 AND ACTIVTY.ACTIVITYNAME LIKE '%bag%';

OR 

SELECT P.NAME , P.ACTIVITYCODE , A.ACTIVITYNAME


FROM PARTICIPANT P, ACTIVITY A
WHERE P.ACTIVITYCODE = A.ACTIVITYCODE AND
A.POINTS > 250 AND A.ACTIVITYNAME LIKE '%bag%';

(½ mark for S ​ ELECT​) 


(½ mark for ​FROM​) 
(½ mark for correct use of join) 
(½ mark for correct use of any one condition) 
 

[Informatics Practices Sub Code: 065 Series: BVM Paper Code 90] [Page 16 of 17] 
 

7  (a)  How  does  e-governance  help  in  increasing  Accountability  (answerability  of  the  2 
Government to the people)? Write 2 points. 
Ans  1. Transparency of Government processes, policies and decisions    
2. Awareness about new policies and facilities being offered by the Government. 
3. Date  and  time  of  every  transaction  is  automatically  recorded  for  which  the 
Government is accountable. 
4. Practices like influences and bribing are reduced  
( 1 mark each for any two valid points)   

(b) Write 2 precautions to be followed while doing Online Shopping.  1 

Ans  1) Verify authenticity of the website / vendor    


2) Check the product details and past reviews  
3) Verify the payment gateway provided by the website. 
( ½ mark each for any two valid points)

(c) Ms.  Deepika  of  ABC  School  is  creating  a  form  for  a  Summer  Camp  application.  2 
Help  her  to  choose  the  most  appropriate  controls  from  ListBox  ,  ComboBox, 
TextField,  TextArea,  RadioButton,  CheckBox,  Label  and  Command Button for the 
following entries:  
S.No.  Function 
1.  Let the user enter ​NAME ​of student 
2.  Let the user enter ​MOBILE NUMBER​ of student 
3.  Let the user choose one ​TSHIRT​ size out of the categories : 
XL / L / M / S 
4.  Let  the  user  select  Activities  out  of  Rock  Climbing  /  Mountain Biking / 
Zip Lining / Night Hike . More than one activity may be chosen . 

Ans    
S.No.  Function 
1  Text Field 
2  Text Field 
3  RadioButton/ComboBox 
4  ListBox/CheckBox 
( ½ mark for each correct answer)   
 

[Informatics Practices Sub Code: 065 Series: BVM Paper Code 90] [Page 17 of 17] 
SET-4
Series SSO Code No. 90
Candidates must write the Code on the
Roll No.
title page of the answer-book.

 Please check that this question paper contains 8 printed pages.


 Code number given on the right hand side of the question paper should be
written on the title page of the answer-book by the candidate.
 Please check that this question paper contains 7 questions.
 Please write down the Serial Number of the question before
attempting it.
 15 minute time has been allotted to read this question paper. The question
paper will be distributed at 10.15 a.m. From 10.15 a.m. to 10.30 a.m., the
students will read the question paper only and will not write any answer on the
answer-book during this period.

INFORMATICS PRACTICES
Time allowed : 3 hours Maximum Marks : 70

Instructions :

(i) All questions are compulsory.


(ii) Answer the questions after carefully reading the text.

1. (a) A school with 20 stand-alone computers is considering networking


them together and adding a server. State 2 advantages of doing this. 1

(b) Distinguish between LAN and WAN. 1

(c) What is the purpose of Modem in network ? 1

(d) Write one example of IP Address. 1


90 1 P.T.O.
(e) Define ‘Domain Name Resolution’. 2

(f) Name two threats to security in a network. What is the role of


Firewall in Network security ? 2

(g) Write one advantage and one disadvantage of Open Source


software over Proprietary software. 2

2. (a) Write the value of variable ‘c’ after execution of the following code : 1
int d;
int c;
d=7;
c = (5*++d)%3;

(b) What is the difference between jTextField and jPasswordfield


components ? 1

(c) In a SWITCH statement, what is the purpose of ‘default’ section ? 1

(d) After typing the HTML code using a text editor, how do you see
how it would look as a web page ? 1

(e) Write Java code to assign the value 500 to variable x. Increase
the value of x by 50 and store it in variable y. 2

(f) Write the output that will be generated by the code given below : 2
int i;
i = 7;
int r;
r=8;
while (i<=10)
{
System.out.println(r*i);
i = i+2;
}

(g) ‘‘With XML there are no predefined tags’’ – Explain in brief with
the help of an example. 2

90 2
3. (a) What is MySQL ? 1

(b) Is NULL value the same as 0 (zero) ? Write the reason for your
answer. 1

(c) Write the UPDATE command to increase the commission


(Column name : COMM) by 500 of all the Salesmen who have
achieved Sales (Column name : SALES) more than 200000. The
table’s name is COMPANY. 1

(d) While using SQL pattern matching, what is the difference


between ‘_’ (underscore) and ‘%’ wildcard symbols ? 1

(e) How is Primary key constraint different from Unique key


constraint ? 2

(f) Write one similarity and one difference between CHAR and
VARCHAR data types. 2

(g) What is a Transaction ? Which command is used to make


changes done by a Transaction permanent on a database ? 2

4. (a) The following code has some error(s). Rewrite the correct code
underlining all the corrections made. 2

int marks, temperature;


marks = jTextField1.getText());
temperature = Integer.parseInt(jTextField2.getText());
if (marks < 80) and (temperature >= 40)
{
System.out.println("Not Good");
}
else;
{
System.out.println("OK");
}

90 3 P.T.O.
(b) How many times will the following WHILE loop execute ? 2
int y = 7, sum = 0;
while (y<= 15)
{
sum = sum + y;
y = y+2;
}

(c) Rewrite the following program code using IF ELSE IF instead of


SWITCH statement : 2
String tour;
int cl = Integer.parseInt(jTextField1.getText());
switch (cl)
{
case 8: tour = "\n You are going to Camp Ramgarh";
break;
case 9: tour = "\n You are going to Manali, Rohtang
Pass"; break;
case 10: tour = "\n You are going to Chail";
break;
default: tour = " No School tour for you this time";
}

(d) Write the values of sum and x after execution of the following
code : 2
int sum,x;
sum = 7;
x = 5;
sum = sum + (x++);

(e) What will be the contents of jTextField1 and jTextField2 after


executing the following code : 2
String s = "Best";
jTextField1.setText(s.length()+" ");
jTextField2.setText(s.toUpperCase());

90 4
(f) The students of ‘‘Shiksha Vidyalaya’’ work for different extra
curricular activities like ‘Community Outreach Programme’,
‘Swachh Bharat Abhiyan’ and ‘Traffic Safety Club’. The
Programmer at the school has developed a GUI application as
shown below :

Outreach

 A student can participate in more than one activities.

 Each student gets 10 points for each activity – namely


Community Outreach Programme, Swachh Bharat
Abhiyan and Traffic Safety Club.
Help the programmer to write code for the following :
(i) When ‘Calculate Total Score’ button is clicked, the points
for each activity (that is selected) should be displayed in
the text field in front of that activity’s checkbox and the
Total Score should be displayed in the appropriate Text
field. 3
(ii) When Clear button is clicked, all the Textfields and
Checkboxes should be cleared. 1
(iii) When Stop button is clicked, the application should close. 1
90 5 P.T.O.
5. (a) Distinguish between Single Row and Aggregate functions of MySQL.
Write one example of each. 2
(b) Consider the following table named ‘‘SOFTDRINK’’. Write
commands of SQL for (i) to (iv) and output for (v) to (vii).
Table : SOFTDRINK
DRINKCODE DNAME PRICE CALORIES
101 Lime and Lemon 20.00 120
102 Apple Drink 18.00 120
103 Nature Nectar 15.00 115
104 Green Mango 15.00 140
105 Aam Panna 20.00 135
106 Mango Juice Bahaar 12.00 150
(i) To display names and drink codes of those drinks that have
more than 120 calories. 1
(ii) To display drink codes, names and calories of all drinks, in
descending order of calories. 1
(iii) To display names and price of drinks that have price in the
range 12 to 18 (both 12 and 18 included). 1
(iv) Increase the price of all drinks in the given table by 10%. 1
(v) SELECT COUNT(DISTINCT(PRICE)) FROM SOFTDRINK; 1
(vi) SELECT MAX (CALORIES) FROM SOFTDRINK; 1
(vii) SELECT DNAME FROM SOFTDRINK WHERE DNAME
LIKE “%Mango%”; 1
(c) What is the degree and cardinality of ‘SOFTDRINK’ TABLE ? 1

6. (a) Write MySQL command to create the Table ‘LIBRARY’ with given
constraints. 2
Table : LIBRARY
COLUMN_NAME DATATYPE(SIZE) CONSTRAINT
BookId Int(10) Primary Key
BookName Varchar(40) Not Null
Type Char(4)
Author Varchar(40)
No_Copies Int(6)
Price Decimal(8,2)

90 6
(b) In a Database Company, there are two tables given below :

Table : SALES

SALESMANID NAME SALES LOCATIONID

S1 ANITA SINGH ARORA 250000 102

S2 Y.P. SINGH 1300000 101

S3 TINA JAISWAL 1400000 103

S4 GURDEEP SINGH 1250000 102

S5 SIMI FAIZAL 1450000 103

Table : LOCATION

LOCATIONID LOCATIONNAME
101 Delhi
102 Mumbai
103 Kolkata
104 Chennai

Write SQL queries for the following :

(i) To display SalesmanID, names of salesmen, LocationID with


corresponding location names. 2

(ii) To display names of salesmen, sales and corresponding


location names who have achieved Sales more than 1300000. 2

(iii) To display names of those salesmen who have ‘SINGH’ in


their names. 2

(iv) Identify Primary key in the table SALES. Give reason for
your choice. 1

(v) Write SQL command to change the LocationID to 104 of the


Salesman with ID as S3 in the table ‘SALES’. 1

90 7 P.T.O.
7. (a) How does e-learning allow students to study at their own pace ? 2

(b) How does e-governance empower citizens ? Write one point. 1

(c) Sabeena is creating a form for the hotel where she works. Help
her to choose most appropriate controls from ListBox, ComboBox,
TextField, TextArea, RadioButton, Checkbox, Label, and
Command Button for the following entries : 2

S.No. Function

1 To input name

2 To allow enter gender out of M or F

To allow selecting type of room out of Deluxe,


3
SemiDeluxe, General
To allow entering preferences of guest in the form of
4
a paragraph

90 8 61,500
Series ONS SET-4

Code No. 90
Roll No. Candidates must write the Code on the
title page of the answer-book.

· Please check that this question paper contains 11 printed pages.


· Code number given on the right hand side of the question paper should be written
on the title page of the answer-book by the candidate.
· Please check that this question paper contains 7 questions.
· Please write down the Serial Number of the question before attempting
it.
· 15 minute time has been allotted to read this question paper. The question paper
will be distributed at 10.15 a.m. From 10.15 a.m. to 10.30 a.m., the students will
read the question paper only and will not write any answer on the answer-book
during this period.

INFORMATICS PRACTICES

Time allowed : 3 hours Maximum Marks : 70

General Instructions :
(i) All questions are compulsory.
(ii) Answer the questions after carefully reading the text.

90 1 P.T.O.
1. (a) Vidya College has three departments that are to be connected into a 2
network. Which of the following communication medium (out of the given
options), should be used by the college for connecting their departments
for very effective High Speed communication ?
• Coaxial Cable
• Optical Fiber
• Ethernet Cable
Also name the type of network (out of PAN/LAN/WAN) formed.
(b) State reason why Star topology requires more cable length than Bus 2
topology.
(c) Seema needs a network device that should regenerate the signal over the 2
same network before the signal becomes too weak or corrupted.
Amit needs a network device to connect two different networks together
that work upon different networking models so that the two networks can
communicate properly.
Name the devices that should be used by Seema and Amit.
(d) How is a domain name related to an IP address ? 2
(e) How is firewall useful in ensuring network security ? 2

2. (a) Identify the odd one out of the following Java statements. State reason 1
for your choice.
(i) for
(ii) do while
(iii) switch
(iv) while
(b) Write the purpose of parseInt( ) method. 1
(c) Identify invalid variable names out of the following. State reason if 1
invalid.
(i) for
(ii) - salary
(iii) salary12
(iv) product
(d) What is the difference between statements (i) and (ii) ? 1
(i) t 5 2;
(ii) if (t552)
d53;

90 2
(e) Write HTML tags to do the following : 2
(i) Inserting a horizontal line in a web page.
(ii) Inserting a line break
(f) What does ‘XML’ stand for ? How is the purpose of HTML different from 2
XML ?
(g) Rewrite the following code using if else if statement : 2
switch(depcode)
{
case 1 :
allowance 5 4000;
break;
case 2 :
allowance 5 3200;
break;
default :
allowance 5 1000;
}

3. (a) What is the meaning of ‘Open Source’ in the term ‘Open Source Database 1
Management System’ ?
(b) In a table ‘Employee’, a column ‘Occupation’ contains many duplicate 1
values. Which keyword would you use if you wish to list only different
values ?
(c) How is ALTER TABLE statement different from UPDATE statement ? 1

(d) Charvi wants to delete the records where the “FirstName” is “Rama” in 1
the ‘Emp’ Table. She has entered the following SQL statement. An error
is being displayed. Rewrite the correct statement.
DELETE ‘Rama’ FirstName FROM Emp;

90 3 P.T.O.
(e) (i) Name 2 Group (Aggregate) functions of SQL. 2

(ii) Consider the table :

Table : Company

CompanyCode Donations
C101 13000
C102 NULL
C104 7000
C105 4000

What output will be displayed by the following SQL statement ?

SELECT AVG(Donations) FROM Company;

(f) Given below is the ‘Emp’ table : 2

ENO NAME
1 Anita Khanna
2 Bishmeet Singh

SET AUTOCOMMIT 5 0;

INSERT INTO Emp VALUES (5,‘Farzia’);

COMMIT;

UPDATE Emp SET NAME 5 ‘Farzziya’ WHERE ENO55;

SAVEPOINT A;

INSERT INTO Emp VALUES(6,‘Richard’);

SAVEPOINT B;

INSERT INTO Emp VALUES(7,‘Rajyalakshmi’);

SAVEPOINT C;

ROLLBACK TO B;

What will be the output of the following SQL query now ?

SELECT * FROM Emp;

90 4
(g) Consider the table below : 2

Table : Company

EMPID DEPARTMENT SALARY


E101 PERSONNEL 60000
E102 ACCOUNTS 65000
E103 MARKETING 40000
E104 PERSONNEL 62000
E105 PERSONNEL 50000
E106 MARKETING 35000

Identify error(s) in the following SQL statement. Rewrite the correct SQL
statement.

SELECT Department, Salary

FROM Company

GROUP BY Department;

4. (a) Identify programming languages out of the following : 1

HTML, C11,JAVA, MySQL

(b) Write Java statement to extract selected item from a given listbox named 1
“jList1.”

(c) What will be displayed in jTextField1 and jTextField2 after the following 1
code is executed :

int t;

int x;

x512;

t5(3*x11)/3;

jTextField1.setText('' ''1t);

jTextField2.setText('' ''1x);

90 5 P.T.O.
(d) Write the output that will be displayed in the textfields by the following 2
Java code :
String x;
String stream5“Commerce”;
jTextField1.setText((stream.length()19)1'' '');
x5stream.concat(“Humanities”);
jTextField2.setText(x);
jTextField3.setText('' ''1x.substring(2,5));
jTextField4.setText(stream.toLowerCase());
(e) Write the value that will be stored in variable sum after execution of 2
following code :
int sum50,m54;
for(int i59;i>56;i--)
{
if (i%3550)
sum5sum1i;
else
sum5sum2i;
}
(f) The following code has error(s). Rewrite the correct code underlining all 2
the corrections made :
int a50;
int b515;
do ;
a5a13;
b5b23;
while a<5b;

90 6
(g) Ms. Sharma works as a programmer in “ABC Car Rental Company”
where she has designed a software to compute charges to be paid by the
client. A screenshot of the same is shown below :

A client can take any car out of Deluxe/SemiDeluxe/Ordinary for rent.

A client can also opt for services of a guide. Charges vary depending on
the type of car opted.

Charges of services of Guide are extra.


Help Ms. Sharma in writing the code to do the following :

90 7 P.T.O.
(i) After selecting appropriate Radio Button and checkbox(if required), 2
when ‘CALCULATE’ button is clicked, Amount, Guide Charges and
Total Amount should be calculated and displayed in the respective
text fields.

Category of Car Amount (in C)


Deluxe Car 1000 per day
Semi Deluxe Car 800 per day
Ordinary Car 700 per day

Amount is obtained by multiplying per day charges of Car with 2


number of days for which the car is taken.
If ‘Guide Required’ checkbox is selected, Guide charges per day are
` 500.00.
Guide Charges is calculated as : Car required for No. of days * 500;
Total Amount 5Amount1Guide Charges
(ii) When ‘CLEAR’ button is clicked, all text fields and checkbox should 1
be cleared.
(iii) When ‘CLOSE’ button is clicked,the application should close. 1

5. (a) Srishti has created the following table with the name ‘Veterinary’. 2

Column Name Constraint


AnimalId Primary Key
VaccinationsDate
AnimalName Not Null
OwnerName

One of the rows inserted is as follows :

AnimalId VaccinationDate AnimalName OwnerName


A101 2015-02-12 Sheru Amit Sharma

(i) What are the data type of columns AnimalId and


VaccinationDate in the table Veterinary ?

90 8
(ii) Srishti is now trying to insert the following row :

AnimalId VaccinationDate AnimalName OwnerName


A102 2015-08-09 NULL Abhimanyu Shah

Will she be able to successfully insert it ? Give reason.


(b) Write the output of the following SQL queries : 2
(i) SELECT MID(‘LearningIsFun’,2,4);
(ii) SELECT ROUND(76.384,2);
(iii) SELECT INSTR(‘INFORMATION FORM’,’RM’);
(iv) SELECT DAYOFYEAR (‘2015201230’);
(c) Table “Order” is shown below. Write commands in SQL for (i) to (iv) and 6
output for (v) and (vi)
Table : Order

OrderId OrderDate SalesPerson OrderAmount


O101 2015-09-12 Ravi Kumar 34000
O102 2015-08-15 Rashmi Arora 50000
O103 2015-11-01 Ravi Kumar 55000
O104 2015-12-09 Manjeet Singh 60000
O105 2015-11-10 Rashmi Arora 50000

(i) To display names of SalesPersons (without duplicates).


(ii) To list OrderId and respective OrderAmount in descending order of
orderAmount.
(iii) To count the number of orders booked by SalesPersons with names
starting with ‘R’.
(iv) To list Order ids, order dates and order amounts that were booked
after 1st September 2015.
(v) SELECT OrderId, OrderAmount FROM Order where
OrderAmount between 50000 and 60000;
(vi)SELECT concat (OrderId, SalesPerson),
length(SalesPerson) FROM Order;

90 9 P.T.O.
6. (a) Write SQL query to create a table ‘Song’ with the following structure : 2

Field Type Constraint


Songid Integer Primary key
Title Varchar (50)
Duration Integer
ReleaseDate Date

(b) Consider the tables given below : 2

Table : Party

PartyId Description CostPerPerson


P101 Birthday 400
P102 Wedding 700
P103 Farewell 350
P104 Engagement 450

Table : Client

ClientId ClientName Address Phone NoOfGuests PartyId


C101 A.K. Antony A-151, Adarsh Nagar 99101956 80 P101
C102 Fauzia Aria K-5/52,Vikas Vihar 893466448 500 P102
C103 Rashi Khanna D-6, Hakikat Nagar 981166568 50 P101
76-A/2, MG Colony,
C104 S.K. Chandra 65877756 100 P104
Adarsh Avenue.

(i) Name the Primary keys in both the tables.

(ii) ‘P101’ data is present twice in column ‘PartyId’ in ‘Client’ table - Is


there any discrepancy ? Give reason for your answer.

(c) With reference to the above given tables (in Q6 b), Write commands in 6
SQL for (i) and (ii) and output for (iii) given below :

(i) To display Client names of clients, their phone numbers, PartyId


and party description who will have number of guests more than 50
for their parties.

90 10
(ii) To display Client Ids, their addresses, number of guests of those
clients who have ‘Adarsh’ anywhere in their addresses.

ClientId ClientName Address Phone NoOfGuests PartyId

(iii) S E L E C T ClientId, ClientName,NoOfGuests,


description, Costperperson,FROM Client, Party WHERE
Client.PartyId5Party.PartyId AND NoOfGuests BETWEEN
50 AND 100;
7. (a) How is an e-commerce business more cost effective than traditional 2
business ? Write two points.
(b) How is e-learning beneficial for old people ? Write one point. 1
(c) Ms. Ariya is creating a form for PAN CARD application. Help her to 2
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 MOBILE NUMBER
3 To allow user to choose one CATEGORY out of the
categories :
Company, Trust, Individual.
4 To enter NATURE OF BUSINESS/PROFESSION in the
form of a paragraph

90 11 P.T.O.
SET-4
Series GBM Code No. 90
Candidates must write the Code on the
Roll No.
title page of the answer-book.

 Please check that this question paper contains 9 printed pages.


 Code number given on the right hand side of the question paper should be
written on the title page of the answer-book by the candidate.
 Please check that this question paper contains 7 questions.
 Please write down the Serial Number of the question before
attempting it.
 15 minute time has been allotted to read this question paper. The question
paper will be distributed at 10.15 a.m. From 10.15 a.m. to 10.30 a.m., the
students will read the question paper only and will not write any answer on the
answer-book during this period.

INFORMATICS PRACTICES
Time allowed : 3 hours Maximum Marks : 70

Instructions :

(i) All questions are compulsory.


(ii) Answer the questions after carefully reading the text.

1. (a) Identify the odd one out of the following : 2


Optical Fiber/Coaxial Cable/Bluetooth/Twisted Pair Cable
Give reason for your answer.

(b) How is it easier to diagnose fault in Star topology than in Bus


topology ? 2

90 1 P.T.O.
(c) What is the purpose of logical address of computer ? 2

(d) Does open source software only mean that the software is free of
cost ? Give reason for your answer. 2

(e) Which of the following are valid IP addresses ? Give reason(s) if


invalid. 2
(i) 121.23.1.45
(ii) 192.168.0.254
(iii) 192.168.0.1
(iv) 198.-1.1.1

2. (a) Write the value that will be assigned to variable x after executing
the following statement : 1
x = 20 – 5 + 3 * 20/5;

(b) Consider the statement :


choice = ‘Y’;

What is the datatype of variable choice ? Write a Java statement to


declare the variable ‘choice’. 1

(c) While working in Netbeans IDE, Amit wants that the text in a Text
area should move to the next line without breaking the word. Which
properties would help him to do that ? 1

(d) Write a Java statement to : 1


Append a string ‘‘ABC’’ to the text that is already in the text area
named jTextArea1.

(e) Write the output of the following HTML code : 2


<ol start="4">
<li>Bake the mixture in oven for an hour</li>
<li>Remove from oven</li>
<li>Allow the mixture to stand for ten minutes</li>
<li>Serve</li>
</ol></code>

90 2
(f) Given below is a code.
<message>
<text>Hello, world!</text>
</message>

Which language is used to write the above code ? 2


What are <message>, </message>, <text> and </text> ?

(g) Rewrite the following code using if else if statement instead of


switch : 2
switch (success) {
case –1: x1 = "No result" ;
break;
case 0 : x1 = "Final result- Not successful";
break;
default : x1 = "result NOT known";
break;
}

3. (a) How is a database related to a table ? 1

(b) Ariya wants to add another column ‘Gender’ in the already existing
table ‘CUSTOMERS’. She has written the following statement.
However, it has errors. Rewrite the correct statement. 1
[MODIFY TABLE CUSTOMERS GENDER char(1);

(c) In a hospital, the patients are allocated to wards. A database named


‘Hospital’ is 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 the ‘Hospital’
database, with 3 suitable columns identifying Primary key and
Foreign key in the table that you expect. 2

(d) Explain the following statement with the help of example : 2

‘‘In a transaction either all the SQL statements be committed or all


rolled back.’’

90 3 P.T.O.
(e) 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 ?

(f) How is HAVING clause similar to WHERE clause ? How is HAVING


clause different from WHERE clause ? Explain with the help of
examples of each. 2

4. (a) Write the values of r and s after the execution of the following code : 1
int p = 11;
int q = 21;
int r;
int s;
r = ++q;
s = p++;
r++;

90 4
(b) What will be displayed in jTextField1 and jTextField2 after the
following code is executed : 2
int ndigits = 0;
int N = 35;
while (N > 12) {
ndigits = ndigits + 1;
N = N–10;
}
jTextField1.setText(" "+ndigits);
jTextField2.setText(" "+N);

(c) Write the value of C after executing the following code : 2


int P;
int R = 8;
int oddNum;
int C = 0;
for (P = 1; P < R; P=P+3)
{
oddNum = P %2;
if (oddNum == 1)
{
C= C+1;
}
}

(d) Write the value that will be stored in the variable t after the
execution of the following code. How many times will the loop
execute ? 2
int sum = 0;
int score = 0;
double t;
do
{

score = score +1;


sum = sum + score;
}
while (score <=3);
t = sum / 3;
90 5 P.T.O.
(e) The following code has error(s). Rewrite the correct code underlining
all the corrections made : 2
int j;
int i =15;
int flag = 1;
while( j = 2 j < i; j++)
{
if(i % j = 0)
{
flag == 0;
break;
}
}

(f) Ms. Fauzia works as a programmer in ‘‘TelTel Mobile Company’’


where she has designed a software to compute charges to be paid by
the mobile phone user. A screenshot of the same is shown below :

90 6
Each Call is charged at < 1·00.
Each SMS is charged at < 0·50.
Users can also opt for Mobile Data Plan. Charges for Mobile Data
Plan are flat < 50·00.

Help Ms. Fauzia in writing the code to do the following :


(i) When the ‘Calculate Charges’ button is clicked, ‘Calls and
SMS Charges’, ‘Mobile Data Plan Charges’ and ‘Amount to
Pay’ should be calculated and displayed in the respective text
fields.
‘Amount to Pay’ is calculated as :
Calls and SMS Charges + Mobile Data Plan Charges (if any) 4
(ii) When the ‘Clear’ button is clicked, all the textfields and
checkbox should be cleared. 1
(iii) When the ‘Exit’ button is clicked, the application should close. 1

5. Consider the Table ‘‘Infant’’ shown below :


Table : Infant
ItemCode Item DatePurchase UnitPrice Discount
101 Frock 2016-01-23 700 10
102 Cot 2015-09-23 5000 25
103 Soft Toy 2016-06-17 800 10
104 Baby Socks 2014-10-16 100 7
105 Baby Suit 2015-09-20 500 5

Note : Discount column stores discount %.


Write the commands in SQL for (i) to (viii) and output for (ix) and (x).
(i) To display the details about the Cot. 1
(ii) To list the names of items and their unit price that have unit price
less than 800 and discount more than 5%. 1
(iii) To list the names of items and their date of purchase that were
purchased after 31st December, 2015. 1
(iv) To display the number of items that have more than 10% as discount. 1
(v) To display item code and unit price in decreasing order of unit price. 1
90 7 P.T.O.
(vi) To increase the unit price of each item by 10% of their unit price. 1

(vii) To display the highest unit price of items. 1

(viii) To display the names of items that have ‘Baby’ anywhere in their
item names. 1

(ix) SELECT MID (Item,1,2) FROM Infant; 1

(x) SELECT AVG(UnitPrice) FROM Infant WHERE DATEPURCHASE


>‘2015–01–01’; 1

6. (a) ‘‘XYZ’’ Company conducts workshops for employees of organizations.


The company requires data of workshops that are organized. Write
SQL query to create a table ‘Workshop’ with the following structure : 2
Field Type Constraint
WorkshopId Integer Primary key
Title Varchar(50)
DateWorkshop Date
NumSpeakers Integer

(b) Consider the tables given below and answer the questions that follow : 2
Table : Event
EventId Event NumPerformers CelebrityID
101 Birthday 10 C102
102 Promotion Party 20 C103
103 Engagement 12 C102
104 Wedding 15 C104

Table : Celebrity
CelebrityID Name Phone FeeCharged
C101 Faiz Khan 99101956 200000
C102 Sanjay Kumar 893466448 250000
C103 Neera Khan Kapoor 981166568 300000
C104 Reena Bhatia 65877756 100000

90 8
(i) Name the Primary keys in both the tables and Foreign key in
‘Event’ table.
Can NumPerformers (Number for performers) be set as the
Primary key ? Give reason.
(ii) How many rows will be present in the Cartesian join of the
above mentioned two tables ?
In the table ‘Event’, the CelebrityID 102 is present twice in
the column ‘‘CelebrityId’’. Is there any discrepancy ? Give
reason.
(c) With reference to the above given tables (in Q6 b), write the
commands in SQL for (i) to (iii).
(i) To display EventId, Event name, Celebrity Id and Names of
celebrities for only those events that have more than 10
performers. 2
(ii) To display Event name, Celebrity Id and Names of celebrities
who have ‘‘Khan’’ anywhere in their names. 2
(iii) To display Event name, Names of celebrities and Fee charged
for those celebrities who charge more than 200000. 2

7. (a) List two disadvantages of e-governance to a disabled person. 2


(b) How do online retailers usually offer customers a wider range of
products at prices that are lesser than those of traditional stores ? 1
(c) Ms. Cathy is creating a form for Vidya University Sports Council
application. Help her to choose the most appropriate controls from
ListBox, ComboBox, TextField, TextArea, RadioButton, CheckBox,
Label and Command Button for the following entries : 2
S.No. Function
1 To let the user enter NAME
2 To let the user enter MOBILE NUMBER
To let the user choose one PROFESSION out of the
3
categories : Teaching/Non-Teaching/Research Scholar
To let the user select facilities out of Gym, Yoga, Table
4 Tennis, Badminton and Aerobics. More than one facility
may be chosen.

90 9 70,700
P.T.O.
SET-4
Series BVM Code No. 90
Candidates must write the Code on the
Roll No.
title page of the answer-book.

 Please check that this question paper contains 11 printed pages.


 Code number given on the right hand side of the question paper should be
written on the title page of the answer-book by the candidate.
 Please check that this question paper contains 7 questions.
 Please write down the Serial Number of the question before
attempting it.
 15 minute time has been allotted to read this question paper. The question
paper will be distributed at 10.15 a.m. From 10.15 a.m. to 10.30 a.m., the
students will read the question paper only and will not write any answer on the
answer-book during this period.

INFORMATICS PRACTICES

Time allowed : 3 hours Maximum Marks : 70

Instructions :

(i) All questions are compulsory.

(ii) Answer the questions after carefully reading the text.

(iii) Q. 2 and Q.4 have to be answered with respect to Java Language.

(iv) Q.3, Q.5 and Q.6 have to be answered with respect to MySQL.

90 1 P.T.O.
1. (a) Write the functions of the following pieces of network hardware : 2

(i) Modem
(ii) Switch
(b) Write two ways used to make sure that the data is secure and
is available only to the intended and authorized persons in a
network. 2
(c) Expand TCP/IP. Write the purpose of TCP/IP in communication of
data on a network. 2
(d) Expand the following terms : 2
(i) MAC Address
(ii) ODF
(e) Explain in brief any one freedom offered by Open Source Software.
Write one example for each of the following : 2
(i) An Open Source Operating System
(ii) An Open Source Office Suite
2. (a) Write the data type of variables that should be used to store the
following in Java : 1
(i) Sales amount (of Sales) achieved by a Sales Person
(ii) Roll Number of Student
(b) Distinguish between isSelected() and setSelected() methods of Java
with the help of example. 1
(c) What will be displayed in jTextField1 and jTextField2 when the
following code is executed ? 2
int x,y,z,t;
x = 3;
y = 8;
z = x+y/8;
t = z++;
jTextField1.setText(""+z);
jTextField2.setText(""+t);
OR
90 2
What will be displayed in jTextField1 and jTextField2 when the
following code is executed ?
int x,y,z,t;
t = 3;
z = 0;
do
{
z = z+1;
}
while (t>3);
jTextField1.setText(""+z);
jTextField2.setText(""+t);

(d) The following HTML code has error(s). Rewrite the correct code
underlining corrections made. 2
<ol type="A" begin="4">
<li>List item 1</li>
<li>List item 2</li>
<li>List item 3</li>
<end>
OR

Expand XML. For what purpose is XML used ?

(e) Write the output that will be displayed on jLabel1 and jLabel2. 2
String a,b,c,d,x;
a= "Keep";
b="your";
c="surroundings";
d="clean";
int e = b.length()/4+d.length()*2;
x=b+c+d;
x=a.concat(x);
jLabel1.setText("The value of e = "+e);
jLabel2.setText(x.toUpperCase());

90 3 P.T.O.
(f) Write the output displayed in jTextField1 and jTextField2 when the
following code is executed : 2

char code;
int z;
z = 0;
code = ‘w’;
switch (code)
{
case ‘w’ : z = z+1;
case ‘r’ : z = z+2;
break;
case ‘s’ : z=z +3;
break;
default : z = z+4;
}
jTextField1.setText(""+z);
jTextField2.setText(""+code);
OR

What happens if break statement is omitted with a case in a switch


statement ?

3. (a) In CHAR(10) and VARCHAR(10), what does the number 10


indicate ? 1

(b) ‘Employee’ table has a column named ‘CITY’ that stores city in
which each employee resides. Write SQL query to display details of
all rows except those rows that have CITY as ‘DELHI’ or ‘MUMBAI’
or ‘CHANDIGARH’. 1

90 4
(c) Consider the following table :
Table : RESULTS
STUDENTID NAME EXAMID SCORE
10 Leena 1 20
10 Leena 2 25
11 Samarth 1 30
11 Samarth 2 35
12 Jai 1 14
12 Jai 2 15
14 Shoaib 1 30
14 Shoaib 2 12

Abhay wants to know the number of students who took the test. He
writes the following SQL statement to count STUDENTID without
duplicates. However the statement is not correct. Rewrite the correct
statement. 2

SELECT DISTINCT(COUNT STUDENTID) FROM RESULTS;

(d) Aman has used the following SQL command to create a table ‘stu’ :
CREATE TABLE stu
(
id INTEGER,
name VARCHAR(100)
);
Then, Aman enters the following SQL statements to enter
4 rows :
INSERT INTO stu VALUES (1, "abc");
INSERT INTO stu VALUES (2, "abc");
INSERT INTO stu VALUES (3, "bcd");

Write the output that will be produced by the following SQL


statement : 2
SELECT name, Count(*)
FROM stu
GROUP BY name;

90 5 P.T.O.
(e) Write SQL statement to add a column ‘‘COUNTRY’’ with data type
and size as VARCHAR(70) to the existing table named ‘‘PLAYER’’.
Is it a DDL or DML or TCL command ? 2

(f) Table Student has the columns RNO and SCORE. It has 3 rows in it.
Following two SQL statements were entered that produced the
output (AVG(SCORE) as 45 and COUNT(SCORE) as 2) : 2
(i) AVG(SCORE)
(ii) COUNT(SCORE)
Data in SCORE column is same in two rows. What data is present in
the SCORE column in the three rows ?

4. (a) What will displayed in jTextField1 when the following code is


executed ? 1
int x=3, y=6, z=0;
if(x>3)
z = z + 1;
if((x<4)&&(y>6))
z = z + 2;
if(x>2 && y>=6)
z = z + 3;
if((x<3) || (y>6))
z = z + 4;
jTxtFieldl.setText(""+z);

(b) Rewrite the following code after correcting errors. Underline the
corrections made. 2
int a, c;
30 = c;
4 = a;
while do (c>10)
{
a = = a + c;
c = c-5;
}

90 6
(c) How many times will the following loop execute ? 2
int K = 7;
int I = -2;
do
{
I=I+2;
K=K-1;
}
while (I <= K);
OR
How many times will the following loop execute ?
for (i = 2; i <=5;i++)
{
z = i;
}
(d) Write the output in jTextField1 when the following code is executed : 2
int k, n, sum = 0;
for (k = 2; k <=5; k++)
{
n = k - 2 * 3;
sum = sum + n;
}
jTextField1.setText(""+sum);
OR
Write the output in jTextField1 when the following code is executed :
int k, n =0, sum = 0;
k = 2;
while (k<=5)
{
n = k +4;
sum = sum + n;
k=k+2;
}
jTextField1.setText(""+n);
90 7 P.T.O.
(e) Write the values of i and k after execution of the following code : 2
int i,j,k;
i = 2;
j = 8;
k = 6;
do
{
i = i + 4;
k = k + i;
}
while (i < j);

(f) Ms. Supriya works as a programmer in a courier company, ‘‘ABC


Packaging and Shipping Service’’ where she has designed a software
to compute charges to be paid by the customers.
 Weight (in grams) of the parcel is entered by the user.
 Any one Category of parcel out of A/B/C is chosen by the user.
 Based on the Category selected, Transportation Charges
(per gram) are computed according to the following criterion :
Transportation
Category
Charges Per gram
A < 2.00
B < 3.00
C < 5.00
 Insurance Charges is a flat < 80.00 per parcel.
 Total Transportation Charges = Transportation
Charges Per gram * Weight in grams (of parcel)
entered by the user.
 Total Charges = Total Transportation Charges +
Insurance Charges.
Help Ms. Priya in writing the code to do the following :
(i) When Calculate Charges button is clicked, Insurance
Charges, Transportation Charges per gram, Total
Transportation Charges and Total Charges should be
calculated and displayed in the respective text fields. 4
(ii) When ‘CLEAR’ button is clicked, all the textfields and
radiobuttons should be cleared. 1
(iii) When ‘Exit’ button is clicked, the application should close. 1

90 8
5. Consider the following table ‘Transporter’ that stores the order details
about items to be transported. Write SQL commands for the statements (i)
to (viii) and write output for SQL queries (ix) and (x).
Table : TRANSPORTER
ORDERNO DRIVERNAME DRIVERGRADE ITEM TRAVELDATE DESTINATION

10012 RAM YADAV A TELEVISION 2019-04-19 MUMBAI

10014 SOMNATH SINGH FURNITURE 2019-01-12 PUNE

WASHING
10016 MOHAN VERMA B 2019-06-06 LUCKNOW
MACHINE

10018 RISHI SINGH A REFRIGERATOR 2019-04-07 MUMBAI

10019 RADHE MOHAN TELEVISION 2019-05-30 UDAIPUR

10020 BISHEN PRATAP B REFRIGERATOR 2019-05-02 MUMBAI

10021 RAM TELEVISION 2019-05-03 PUNE

(i) To display names of drivers and destination city where


TELEVISION is being transported. 1
(ii) To display driver names and destinations where destination is not
MUMBAI. 1
(iii) To display the names of destination cities where items are being
transported. There should be no duplicate values. 1
(iv) To display details of rows that have some value in DRIVERGRADE
column. 1
(v) To display names of drivers, names of items and travel dates for
those items that are being transported on or before 1st April 2019. 1
(vi) To display the number of drivers who have ‘MOHAN’ anywhere in
their names. 1
(vii) To display the names of drivers, item names and travel dates in
alphabetic (ascending) order of driver names. 1
(viii) To display names of drivers whose names are three characters long. 1
(ix) SELECT ITEM, COUNT(*) FROM TRANSPORTER
GROUP BY ITEM
HAVING COUNT(*) >1; 1
(x) SELECT MAX(TRAVELDATE) FROM TRANSPORTER WHERE
DRIVERGRADE = ‘A’; 1

90 9 P.T.O.
6. (a) Mr. Sen has to create a table named ‘Employee’ with Columns to
store EmpID, Name, Designation, Age and Salary. EmpID is the
Primary key and Name cannot be NULL.
Some of the rows that will be inserted are shown below.
101 Smita Kumar Secretary 28 39500.00
102 Mani Scott Programmer 32 45300.00
103 Firdaus Ali Programmer II 45 67500.00
Write SQL query to create the above table with appropriate data
types and sizes of columns. 2
OR
Ms. Rajshri is the Class Teacher of Class XII. She wants to create a
table named ‘Student’ to store marks in different subjects of her
class. Identify any 4 columns for the table along with their suitable
data types.
(b) Consider the following tables PARTICIPANT and ACTIVITY and
answer the questions that follow :
Table : PARTICIPANT
ADMNO NAME HOUSE ACTIVITYCODE
6473 Kapil Shah Gandhi A105
7134 Joy Mathew Bose A101
8786 Saba Arora Gandhi A102
6477 Kapil Shah Bose A101
7658 Faizal Ahmed Bhagat A104

Table : ACTIVITY
ACTIVITYCODE ACTIVITYNAME POINTS
A101 Running 200
A102 Hopping bag 300
A103 Skipping 200
A104 Bean bag 250
A105 Obstacle 350
When the table ‘‘PARTICIPANT’’ was first created, the column
‘NAME’ was planned as the Primary key by the Programmer. Later a
field ADMNO had to be set up as Primary key. Explain the reason. 2
OR
Identify data type and size to be used for column ACTIVITYCODE in
table ACTIVITY.
90 10
(c) With reference to the above given tables (in Q6 b), write commands
in SQL for (i) to (iii).

(i) To display Activity Code along with number of participants


participating in each activity (Activity Code wise) from the
table Participant. 2
OR
How many rows will be there in Cartesian product of the two
tables in consideration here ?
(ii) To display Names of Participants, Activity Code, Activity
Name in alphabetic ascending order of names of participants. 2
(iii) To display Names of Participants along with Activity Codes
and Activity Names for only those participants who are taking
part in Activities that have ‘bag’ in their Activity Names and
Points of activity are above 250. 2

7. (a) How does e-governance help in increasing Accountability


(answerability of the Government to the people) ? Write 2 points. 2
(b) Write 2 precautions to be followed while doing Online shopping. 1
(c) Ms. Deepika of ABC School is creating a form for a Summer Camp
application. Help her to choose the most appropriate controls from
ListBox, ComboBox, TextField, TextArea, RadioButton, CheckBox,
Label and Command Button for the following entries : 2

S.No. Function

1. Let the user enter NAME of student

2. Let the user enter MOBILE NUMBER of student

3. Let the user choose one TSHIRT size out of the categories :
XL / L / M / S

4. Let the user select Activities out of Rock Climbing/


Mountain Biking/Zip Lining/Night Hike. More than one
activity may be chosen.

90 11 0,000
P.T.O.

You might also like