CBSE AISSCE 2015 2016 Marking Scheme For Computer Science: General Instructions
CBSE AISSCE 2015 2016 Marking Scheme For Computer Science: General Instructions
CBSE AISSCE 2015 2016 Marking Scheme For Computer Science: General Instructions
Page1of38
CBSE AISSCE 20152016 Marking Scheme for Computer Science
(Sub Code: 083 Paper Code 91 Outside Delhi)
Note: Assume all required header files are already being included in the program.
#defineFormula(a,b)=2*a+b
voidmain()
{
floatX=3.2Y=4.1
Z=Formula(X,Y)
cout<<Result=<<Z<<endl
}
Ans #defineFormula(a,b)2*a+b
voidmain()
{
floatX=3.2
,
Y=4.1
float
Z=Formula(X,Y)
cout<<
Result=
<<Z<<endl
}
( Mark for each correction)
OR
(1 mark for identifying the errors, without suggesting corrections)
(d) Find and write the output of the following C++ program code: 2
Note: Assume all required header files are already included in the program.
typedefcharTEXT[80]
voidJumbleUp(TEXTT)
{
intL=strlen(T)
for(intC=0C<L1C+=2)
{
charCT=T[C]
T[C]=T[C+1]
Page2of38
CBSE AISSCE 20152016 Marking Scheme for Computer Science
(Sub Code: 083 Paper Code 91 Outside Delhi)
T[C+1]=CT
}
for(C=1C<LC+=2)
if(T[C]>=M&&T[C]<=U)
T[C]=@
}
voidmain()
{
TEXTStr=HARMONIOUS
JumbleUp(Str)
cout<<Str<<endl
}
Ans AHM@N@OIS@
Page3of38
CBSE AISSCE 20152016 Marking Scheme for Computer Science
(Sub Code: 083 Paper Code 91 Outside Delhi)
voidmain()
{
ShareS,T,U
S.GetCode(1324,350)
T.GetCode(1435,250)
S.Update(50,28)
U.Update(25,26)
S.Status()
T.Status()
U.Status()
}
Ans Date:28
1324#400
Date:1
1435#250
Date:26
1000#75
Page4of38
CBSE AISSCE 20152016 Marking Scheme for Computer Science
(Sub Code: 083 Paper Code 91 Outside Delhi)
(i) (ii) (iii) (iv)
PINK BLUE GREEN BLUE
PINKGREEN BLUEPINK GREENRED BLUEPINK
PINKGREENRED BLUEPINKGREEN BLUEPINKGREEN
BLUEPINKGREENRED
Ans
(ii) (iv)
BLUE BLUE
BLUEPINK BLUEPINK
BLUEPINKGREEN BLUEPINKGREEN
BLUEPINKGREENRED
Example of Encapsulation
classstudent
{
intrno
charname[20]
public:
voidinput()
{
cin>>rno
gets(name)
}
Page5of38
CBSE AISSCE 20152016 Marking Scheme for Computer Science
(Sub Code: 083 Paper Code 91 Outside Delhi)
voidoutput()
{
cout<<rno<<<<name<<endl
}
}
OR
Any other suitable example demonstrating a characteristic of Object
Oriented Programming.
(
1 Mark for correct names of 4 characteristics of OOP)
OR
( Mark for correct names of any 2 characteristics of OOP)
(
1 Mark for correct example of 1 characteristic)
(b) Observe the following C++ code and answer the questions (i) and (ii). Assume all
necessary files are included:
classBOOK
{
longCode
charTitle[20]
floatPrice
public:
BOOK()//MemberFunction1
{
cout<<Bought<<endl
Code=10strcpy(Title,NoTitle)Price=100
}
BOOK(intC,charT[],floatP)//MemberFunction2
{
Code=C
strcpy(Title,T)
Price=P
}
voidUpdate(floatP)//MemberFunction3
{
Price+=P
}
Page6of38
CBSE AISSCE 20152016 Marking Scheme for Computer Science
(Sub Code: 083 Paper Code 91 Outside Delhi)
voidDisplay()//MemberFunction4
{
cout<<Code<<:<<Title<<:<<Price<<endl
}
~BOOK()//MemberFunction5
{
cout<<BookDiscarded!<<end1
}
}
voidmain()//Line1
{//Line2
BOOKB,C(101,Truth,350}//Line3
for(intI=0I<4I++)//Line4
{//Line5
B.Update(50)C.Update(20)//Line6
B.Display()C.Display()//Line7
}//Line8
}//Line9
(i) Which specific concept of object oriented programming out of the following is 1
illustrated by Member Function 1 and Member Function 2 combined together?
Data Encapsulation
Polymorphism
Inheritance
Data Hiding
Ans Polymorphism
Page7of38
CBSE AISSCE 20152016 Marking Scheme for Computer Science
(Sub Code: 083 Paper Code 91 Outside Delhi)
(c) Write the definition of a class CITY in C++ with following description: 4
Private Members
Ccode//DatamemberforCityCode(aninteger)
CName//DatamemberforCityName(astring)
Pop//DatamemberforPopulation(alongint)
KM//DatamemberforAreaCoverage(afloat)
Density//DatamemberforPopulationDensity(afloat)
DenCal()//Amemberfunctiontocalculate
//DensityasPop/KM
PublicMembers
Record()//Afunctiontoallowusertoentervaluesof
//Acode,Name,Pop,KMandcallDenCal()function
View()//Afunctiontodisplayallthedatamembers
//alsodisplayamessageHighlyPopulatedCity
//iftheDensityismorethan10000
Ans classCITY
{
intCcode
charCName[20]
longintPop
floatKM
floatDensity
voidDenCal()
public:
voidRecord()
voidView()
}
voidCITY::Record()
{
cin>>Ccode
OR
gets(CName)// cin>>CName
cin>>Pop
cin>>KM
DenCal()
}
voidCITY::View()
{
Page8of38
CBSE AISSCE 20152016 Marking Scheme for Computer Science
(Sub Code: 083 Paper Code 91 Outside Delhi)
cout<<Ccode<<CName<<Pop<<KM<<Density//Ignoreendl
if(Density>10000)
cout<<HighlyPopulatedCity//Ignoreendl
}
voidCITY::DenCal()
{
Density=Pop/KM
}
( Mark for correct syntax for class header)
( Mark for correctly ending the class declaration with ;)
( Mark for correct declaration of data members)
( Mark for correct definition of DenCal() function)
(1 Mark for correct definition of Record() with proper invocation of
DenCal() function)
(1 Mark for correct definition of View())
NOTE:
Deduct Mark if DenCal() is not invoked properly inside Record()
function
Marks not to be deducted if any or all the member functions are
defined inside the class
(d) Answer the questions (i) to (iv) based on the following: 4
classITEM
{
intId
charIName[20]
protected:
floatQty
public:
ITEM()
voidEnter()voidView()
}
classTRADER
{
intDCode
protected:
charManager[20]
public:
TRADER()
voidEnter()
voidView()
}
Page9of38
CBSE AISSCE 20152016 Marking Scheme for Computer Science
(Sub Code: 083 Paper Code 91 Outside Delhi)
classSALEPOINT:publicITEM,privateTRADER
{
charName[20],Location[20]
public:
SALEPOINT()
voidEnterAll()
voidViewAll()
}
(i) Which type of Inheritance out of the following is illustrated in the above example?
Single Level Inheritance
Multi Level Inheritance
Multiple Inheritance
Ans Multiple Inheritance
Note:
No marks to be awarded for any partial answer
(iii) Write the names of all the member functions, which are directly accessible by an
object of class SALEPOINT.
Ans EnterAll(),ViewAll(),Enter(),View()
(1 Mark for correct answer)
Page10of38
CBSE AISSCE 20152016 Marking Scheme for Computer Science
(Sub Code: 083 Paper Code 91 Outside Delhi)
3 (a) Write the definition of a function FixSalary(float Salary[], int N) in C++, which 2
should modify each element of the array Salary having N elements, as per the
following rules:
Existing Salary Values Required Modification in Value
If less than 100000 Add 35% in the existing value
If >=100000 and <20000 Add 30% in the existing value
If >=200000 Add 20% in the existing value
Ans
voidFixSalary(floatSalary[],intN)
{
for(inti=0i<Ni++)
if(Salary[i]<100000)
Salary[i]+=0.35*Salary[i]
elseif(Salary[i]>=100000&&Salary[i]<20000)
Salary[i]+=0.3*Salary[i]
elseif(Salary[i]>=200000)
Salary[i]+=0.20*Salary[i]
}
OR
Any other correct equivalent function definition
Note:
Marks not to be deducted for writing second condition check for
the range as >=100000&&< instead of>=100000&&
200000
<
20000
Marks not to be deducted for incrementing Salary as
Salary[i]+=Salary[i]*20/100 OR
Salary[i]+=20/100*Salary[i]
and likewise for all increments
(b) R[10][50] is a two dimensional array, which is stored in the memory along the row 3
with each of its element occupying 8 bytes, find the address of the element
R[5][15], if the element R[8][10] is stored at the memory location 45000.
Page11of38
CBSE AISSCE 20152016 Marking Scheme for Computer Science
(Sub Code: 083 Paper Code 91 Outside Delhi)
Ans
Loc(R[I][J])
=BaseAddress+W[(ILBR)*C+(JLBC)]
(where
W=sizeofeachelement=8bytes,
R=NumberofRows=10,C=NumberofColumns=50)
AssumingLBR=LBC=0
LOC(R[8][10])
45000=BaseAddress+W[I*C+J]
45000=BaseAddress+8[8*50+10]
45000=BaseAddress+8[400+10]
45000=BaseAddress+8x410
BaseAddress=450003280
=41720
LOC(R[5][15])=BaseAddress+W[I*C+J]
=41720+8[5*50+15]
=41720+8[250+15]
=41720+8x265
=41720+2120
=43840
OR
Loc(R[I][J])
=ReferenceAddress+W[(ILR)*C+(JLC)]
(where
W=sizeofeachelement=8bytes,
R=NumberofRows=10,C=NumberofColumns=50)
ReferenceAddress=AddressofgivencellR[8][10]=45000
LR=Rowvalueofgivencell=8
LC=Columnvalueofgivencell=10
LOC(R[5][15])=LOC(T[8][10])+8[(58)*50+(1510)]
LOC(R[15][5])=45000+8[3*50+5]
=45000+8[150+5]
=45000+8x(145)
=450001160
=43840
(1 Mark for writing correct formula (for Row major) OR substituting
formula with correct values)
(1Mark for correct calculation )
(1 Mark for final correct address)
Page12of38
CBSE AISSCE 20152016 Marking Scheme for Computer Science
(Sub Code: 083 Paper Code 91 Outside Delhi)
(c) Write the definition of a member function DELETE() for a class QUEUE in C++, to 4
remove a product from a dynamically allocated Queue of products considering the
following code is already written as a part of the program.
structPRODUCT
{
intPIDcharPNAME[20]
PRODUCT*Next
}
classQUEUE
{
PRODUCT*R,*F
public:
QUEUE(){R=NULLF=NULL}
voidINSERT()
voidDELETE()
~QUEUE()
}
Ans voidQUEUE::DELETE()
{
if(F!=NULL)
{
PRODUCT*T=F
cout<<T>PID<<T>PNAME
F=F>Next
deleteT
if(F==NULL)
{
R=NULL
}
}
else
cout<<QueueEmpty
}
( Mark for checking empty queue)
( Mark for assigning front to temporary pointer)
( 1 Mark for reassigning front)
( 1 Mark for deleting previous front using temporary pointer)
( Mark for checking emptied queue after deletion)
( Mark for assigning rear to NULL if queue was emptied after
deletion)
Page13of38
CBSE AISSCE 20152016 Marking Scheme for Computer Science
(Sub Code: 083 Paper Code 91 Outside Delhi)
(d) Write definition for a function DISPMID(int A[][5],int R,int C) in C++ to display the 3
elements of middle row and middle column from a two dimensional array A having
R number of rows and C number of columns.
For example, if the content of array is as follows:
215 912 516 401 515
103 901 921 802 601
285 209 609 360 172
ANS voidDISPMID(intA[][5],intR,intC)
{
for(intJ=0J<CJ++)
cout<<A[R/2][J]<<
cout<<endl
for(intI=0I<RI++)
cout<<A[I][C/2]<<
}
OR
voidDISPMID(intA[][5],intR,intC)
{
if(R%2!=0)
{
for(intJ=0J<CJ++)
cout<<A[R/2][J]<<
}
else
cout<<NoMiddleRow
cout<<endl
if(C%2!=0)
{
for(intI=0I<RI++)
cout<<A[I][C/2]<<
}
Page14of38
CBSE AISSCE 20152016 Marking Scheme for Computer Science
(Sub Code: 083 Paper Code 91 Outside Delhi)
else
cout<<NoMiddleColumn
}
OR
Any other correct equivalent function definition
Page15of38
CBSE AISSCE 20152016 Marking Scheme for Computer Science
(Sub Code: 083 Paper Code 91 Outside Delhi)
(
P P
/ /
(
Q PQ
/
R PQR
) / PQR
) PQR/
* *
S PQR/S
) PQR/S*
+ +
T PQR/S*T
) PQR/S*T+
=PQR/S*T+
OR
Any other method for converting the given infixexpression to its
equivalent postfix expression showing stack contents.
( Mark for correctly converting till each operator)
OR
(1 Mark to be given for writing correct answer without showing the
stack content on each step)
4. (a) Write function definition for DISP3CHAR() in C++ to read the content of a text file 2
KIDINME.TXT, and display all those words, which have three characters in it.
Example:
If the content of the file KIDINME.TXT is as follows:
WhenIwasasmallchild,Iusedtoplayinthegarden
withmygrandmom.Thosedayswereamazinglyfunfuland
Irememberallthemomentsofthattime
Page16of38
CBSE AISSCE 20152016 Marking Scheme for Computer Science
(Sub Code: 083 Paper Code 91 Outside Delhi)
Ans voidDISP3CHAR()
{
ifstreamFil
Fil.open(KIDINME.TXT)
charW[20]
Fil>>W
while(!Fil.eof())//ORwhile(Fil)
{
if(strlen(W))==3)
cout<<W<<
Fil>>W
}
Fil.close() //Ignore
}
OR
Any other correct function definition
Note:
No marks to be deducted if words with length 4 and including a . is also
checked
(b) Write a definition for function ONOFFER( ) in C++ to read each object of a binary 3
file TOYS.DAT, find and display details of those toys, which has status as N
OFFER. Assume that the file TOYS.DAT is created with the help of objects of class
TOYS, which is defined below:
classTOYS
{
intTIDcharToy[20],Status[20]floatMRP
public:
voidGetinstock()
{
cin>>TIDgets(Toy)gets(Status)cin>>MRP
}
voidView()
{
cout<<TID<<:<<Toy<<:<<MRP<<:<<Status<<endl
}
char*SeeOffer(){returnStatus}.
Page17of38
CBSE AISSCE 20152016 Marking Scheme for Computer Science
(Sub Code: 083 Paper Code 91 Outside Delhi)
}
Ans voidONOFFER()
{
TOYST
ifstreamfin
fin.open(TOYS.DAT,ios::binary)
while(fin.read((char*)&T,sizeof(T)))
{
if(strcmp(T.SeeOffer(),ONOFFER)==0)
T.View()
}
fin.close()//Ignore
}
OR
Any other correct function definition
Page18of38
CBSE AISSCE 20152016 Marking Scheme for Computer Science
(Sub Code: 083 Paper Code 91 Outside Delhi)
Ans Rec:1
Rec:3
( Mark for each correct value of CFile.tellg()/sizeof(C) as 1 and 3
respectively)
SECTION B (Only for candidates, who opted for Python)
1 (a) Out of the following, find those identifiers, which can not be used for naming 2
Variable or Functions in a Python program:
Total*Tax,While,class,switch,
3rdRow,finally,Column31,_Total
Ans Total*Tax,class,3rdRow,finally
( Mark for each correct name)
Note:
Deduct Mark for each wrong name written
(b) Name the Python Library modules which need to be imported to invoke the 1
following functions
(i) sqrt()
(ii)
dump()
Ans (i) math
(ii) pickle
( Mark for writing each correct Library modules)
Page19of38
CBSE AISSCE 20152016 Marking Scheme for Computer Science
(Sub Code: 083 Paper Code 91 Outside Delhi)
Values=[10,20,30,40]
forValinValues:
forIinrange(1,Val%9):
print(I,"*",end=
""
)
print()
Ans
1* () ()
1* (1,*) (1*)
2* () (1*2*)
1* (1,*) (1*2*3*)
2* (2,*)
3* () 1*
(1,*) 1*2*
(2,*) 1*2*3*
(3,*)
()
(2 marks for correct output)
OR
( mark for each correct value with * not exceeding 2 Marks)
OR
(2 mark for mentioning the syntax error in line
print(I,"*",end=
"")
)
(e) Find and write the output of the following python code: 3
classBook:
def__init__(self,N=100,S="Python"):#constructor
self.Bno=N
self.BName=S
defAssign(self,N,S):
self.Bno=self.Bno+N
self.BName=S+self.BName
defShowVal(self):
print(self.Bno,"#",self.BName)
s=Book()
t=Book(200)
u=Book(300,"MadeEasy")
s.ShowVal()
t.ShowVal()
u.ShowVal()
s.Assign(5,"Made")
Page20of38
CBSE AISSCE 20152016 Marking Scheme for Computer Science
(Sub Code: 083 Paper Code 91 Outside Delhi)
t.Assign(15,"Easy")
u.Assign(25,"MadeEasy")
s.ShowVal()
t.ShowVal()
u.ShowVal()
Ans
Python 2.7 output Other Versions output
OR
Page21of38
CBSE AISSCE 20152016 Marking Scheme for Computer Science
(Sub Code: 083 Paper Code 91 Outside Delhi)
2 (a) What is the difference between Multilevel and Multiple inheritance? Give suitable 2
examples to illustrate both.
Ans
Multilevel inheritance Multiple inheritance
X is the parent class of Y and Y is the The child class Z has parents X and Y
parent class of Z
Page22of38
CBSE AISSCE 20152016 Marking Scheme for Computer Science
(Sub Code: 083 Paper Code 91 Outside Delhi)
print(Reenteraninteger)
print(Start)
Ans Output:
EnterNumberAMAR
Reenteraninteger
EnterNumberTHREE
Reenteraninteger
EnterNumberA123
Reenteraninteger
EnterNumber1200
6
Explanation: The code inside try makes sure that the valid number is entered by
the user. When any input other than an integer is entered, a value error is thrown
and it prompts the user to enter another value.
Ans classCITY:
def__init__(self):
self.Ccode=0
self.CName=
self.Pop=0
self.KM=0
Page23of38
CBSE AISSCE 20152016 Marking Scheme for Computer Science
(Sub Code: 083 Paper Code 91 Outside Delhi)
self.Density=0
defDenCal(self):
self.Density=self.Pop/self.KM
defRecord(self):
self.Ccode=input(EnterCCode)
self.CName=raw_input(EnterCName)
self.Pop=input(Enterpopulation)
self.KM=input(EnterKM)
DenCal(self)//orself.DenCal()
defView(self):
printCCode,CName,Pop,KM,Density
ifself.Density>10000:
print(Highlypopulatedcity)
#ORprint(Highlypopulatedcity)
NOTE:
Deduct Mark if DenCal() is not invoked properly inside Record()
function
(d) How do we implement abstract method in python? Give an example for the same. 2
classShape(object):
deffindArea(self):
pass
classSquare(Shape):
def__init__(self,side):
self.side=side
deffindArea(self):
returnself.side*self.side
Page24of38
CBSE AISSCE 20152016 Marking Scheme for Computer Science
(Sub Code: 083 Paper Code 91 Outside Delhi)
(e) What is the significance of super() method? Give an example for the same. 2
Ans super() function is used to call base class methods which has been extended in
derived class.
EX:
class
GradStudent(Student):
def
__init__(self):
super(GradStudent,
self).__init__()
self.subject
=
""
self.working
=
""
def
readGrad
(self):
#CallreadStudentmethodofparentclass
super(GradStudent,
self).readStudent()
3. (a) What will be the status of the following list after the First, Second and Third pass 3
of the selection sort method used for arranging the following elements in
descending order?
Note: Show the status of all the elements after each pass very clearly underlining
the changes.
12,14,54,64,90,24
Ans
Page25of38
CBSE AISSCE 20152016 Marking Scheme for Computer Science
(Sub Code: 083 Paper Code 91 Outside Delhi)
Ans defbinarysrch(nums,x):
high=len(nums)
low=0
whilelow<high:
mid=(low+high)//2
midval=nums[mid]
ifmidval>x:
low=mid+1
elifmidval<x:
high=mid
else:
returnmid
return1
( mark for assignment of high/ub and low/lb)
( mark for appropriate looping condition)
( mark for calculation of Mid)
( mark for changing high/ub and low/lb)
(c) Write Insert(City) and Delete(City) methods in python to add City and Remove City 4
considering them to act as Insert and Delete operations of the data structure
Queue.
Ans classqueue:
city=[]
defInsert(self):
a=raw_input(Entercity)
queue.city.append(a)
defDelete(self):
if(queue.city==[]):
printQueueempty
else:
printDeletedelementis,queue.city[0]
queue.city.delete()
OR
classqueue:
city=[]
defInsert(self):
a=raw_input(Entercity)
queue.a.append(a)
defDelete(self):
if(queue.city==[]):
print(Queueempty)
else:
Page26of38
CBSE AISSCE 20152016 Marking Scheme for Computer Science
(Sub Code: 083 Paper Code 91 Outside Delhi)
print(Deletedelementis,queue.city[0])
queue.city.delete()
( mark insert header)
( mark for accepting a value from user)
( mark for adding value in list)
( mark for delete header)
( mark for checking empty list condition)
( mark for displaying Empty Message)
( mark for displaying the value to be deleted)
( mark for deleting value from list)
(d) Write a method in python to find and display the prime numbers between 2 to N. 3
Pass N as argument to the method.
Ans defprime(N):
forainrange(2,N):
Prime=1
forIinrange(2,a):
ifa%i==0:
Prime=0
ifPrime==1:
printa
OR
defprime(N):
forainrange(2,N):
forIinrange(2,a):
ifa%i==0:
break
else:
printa
OR
(e) Evaluate the following postfix notation of expression. Show status of stack after 2
every operation.
12,2,/,34,20,,+,5,+
Page27of38
CBSE AISSCE 20152016 Marking Scheme for Computer Science
(Sub Code: 083 Paper Code 91 Outside Delhi)
Ans
Element Stack
12 12
2 12,2
/ 6
34 6,34
20 6,34,20
6,14
+ 20
5 20,5
+ 25
Final Result = 25
( Mark for evaluation till each operator)
OR
(1 Mark for only writing the Final answer without showing stack status)
4 (a) Write a statement in Python to perform the following operations: 1
To open a text file MYPET.TXT in write mode
To open a text file MYPET.TXT in read mode
Ans f1=open(MYPET.TXT,w)
f2=open(MYPET.TXT,r)
Ans
defwritel():
f=open(daynote.txt,w)
whileTrue:
line=raw_input(Enterline)
f.write(line)
choice=raw_input(Aretheremorelines)
ifchoice==N:
break
f.close()
Note: Using writelines() is also correct
( Mark for opening file in appropriate mode)
( Mark for end of file check and loop)
( Mark for taking input from user)
( Mark for writing the line into the file)
Page28of38
CBSE AISSCE 20152016 Marking Scheme for Computer Science
(Sub Code: 083 Paper Code 91 Outside Delhi)
(c) Consider the following definition of class Employee, write a method in python to 3
search and display the content in a pickled file emp.dat, where Empno is matching
with A0005.
classEmployee:
def__init__(self,E,NM):
self.Empno=E
self.EName=NM
defDisplay(self):
print(self.Empno,"",self.EName)
Ans defsearch():
f=open("emp.dat",rb)
try:
whileTrue:
e=pickle.load(f)
ife.Empno==A0005:
e.display()
exceptEOFError:
pass
f.close()
PARTICIPANTS EVENTS
PNO NAME EVENTCODE EVENTNAME
1 Aruanabha Tariban 1001 IT Quiz
2 John Fedricks 1002 Group Debate
3 Kanti Desai
Page29of38
CBSE AISSCE 20152016 Marking Scheme for Computer Science
(Sub Code: 083 Paper Code 91 Outside Delhi)
RESULT
PNO NAME EVENTCODE EVENTNAME
1 Aruanabha Tariban 1001 IT Quiz
1 Aruanabha Tariban 1002 Group Debate
2 John Fedricks 1001 IT Quiz
2 John Fedricks 1002 Group Debate
3 Kanti Desai 1001 IT Quiz
3 Kanti Desai 1002 Group Debate
Table: VEHICLE
VCODE VEHICLETYPE PERKM
V01 VOLVOBUS 150
V02 ACDELUXEBUS 125
V03 ORDINARYBUS 80
V05 SUV 30
V04 CAR 18
Note: PERKM is Freight Charges per kilometer
Table: TRAVEL
CNO CNAME TRAVELDATE KM VCODE NOP
101 K.Niwal 20151213 200 V01 32
103 FredrickSym 20160321 120 V03 45
105 HiteshJain 20160423 450 V02 42
102 RaviAnish 20160113 80 V02 40
107 JohnMalina 20150210 65 V04 2
104 Sahanubhuti 20160128 90 V05 4
106 RameshJaya 20160406 100 V01 25
Note:
Km is Kilometers travelled
NOP is number of passengers travelled in vehicle
Page30of38
CBSE AISSCE 20152016 Marking Scheme for Computer Science
(Sub Code: 083 Paper Code 91 Outside Delhi)
(i) To display CNO, CNAME, TRAVELDATE from the table TRAVEL in descending order
of CNO.
Ans SELECTCNO,CNAME,TRAVELDATEFROMTRAVELORDERBYCNO
DESC
( Mark for )
SELECTCNO,CNAME,TRAVELDATEFROMTRAVEL
( Mark for )
ORDERBYCNODESC
(ii) To display the CNAME of all the customers from the table TRAVEL who are
traveling by vehicle with code V01 or V02.
Ans SELECT CNAME FROM TRAVEL WHERE VCODE=V01 OR
VCODE=V02
OR
SELECTCNAMEFROMTRAVELWHEREVCODEIN(V01,V02)
( Mark for correct )
SELECT
( Mark for correct )
WHEREclause
(iii) To display the CNO and CNAME of those customers from the table TRAVEL who
travelled between 20151231 and 20150501.
Ans SELECT CNO, CNAME from TRAVEL WHERE TRAVELDATE >=
20150501ANDTRAVELDATE<=20151231
OR
SELECTCNO,CNAMEfromTRAVEL
WHERETRAVELDATEBETWEEN20150501AND20151231
OR
SELECTCNO,CNAMEfromTRAVEL
WHERETRAVELDATE<=20151231
ANDTRAVELDATE>=20150501
OR
SELECTCNO,CNAMEfromTRAVEL
WHERETRAVELDATEBETWEEN20151231AND20150501
Page31of38
CBSE AISSCE 20152016 Marking Scheme for Computer Science
(Sub Code: 083 Paper Code 91 Outside Delhi)
Ans COUNT(*)
VCODE
2V01
2V02
( Mark for correct output)
(vi) SELECTDISTINCTVCODEFROMTRAVEL
Ans DISTINCTVCODE
V01
V02
V03
V04
V05
( Mark for correct output)
(vii) SELECTA.VCODE,CNAME,VEHICLETYPE
FROMTRAVELA,VEHICLEB
WHEREA.VCODE=B.VCODEANDKM<90
Ans VCODE
CNAME VEHICLETYPE
V02RaviAnishACDELUXEBUS
V04JohnMalinaCAR
( Mark for correct output)
(viii) SELECTCNAME,KM*PERKM
FROMTRAVELA,VEHICLEB
WHEREA.VCODE=B.VCODEANDA.VCODE=V05
Ans CNAME
KM*PERKM
Sahanubhuti2700
( Mark for correct output)
6 a. Verify the following using Boolean Laws. 2
X+YZ=X.Y.Z+X.Y.Z+XY.Z+X.Y.Z+X.Y.Z
Ans LHS
X+Y.Z
=X.(Y+Y).(Z+Z)+(X+X).Y.Z
Page32of38
CBSE AISSCE 20152016 Marking Scheme for Computer Science
(Sub Code: 083 Paper Code 91 Outside Delhi)
=X.Y.Z+X.Y.Z+X.Y.Z+X.Y.Z+X.Y.Z+X.Y.Z
=X.Y.Z+X.Y.Z+X.Y.Z+X.Y.Z+X.Y.Z
=X.Y.Z+X.Y.Z+X.Y.Z+X.Y.Z+X.Y.Z
RHS
=
OR
RHS
X.Y.Z+X.Y.Z+X.Y.Z+X.Y.Z+X.Y.Z
=X.Y.Z+X.Y.Z+X.Y.Z+X.Y.Z+X.Y.Z
=X.Y.(Z+Z)+X.Y.(Z+Z)+X.Y.Z
=X.Y+X.Y+X.Y.Z
=X.(Y+Y)+X.Y.Z
=X+X.Y.Z
=(X+X).(X+Y.Z)
=X+Y.Z
=L
HS
Ans P.Q+P.R+Q.R
(2 Marks for correctly writing the full expression )
OR
( Mark each for correctly writing any one term)
A B C G(A,B,C)
0 0 0 1
0 0 1 0
Page33of38
CBSE AISSCE 20152016 Marking Scheme for Computer Science
(Sub Code: 083 Paper Code 91 Outside Delhi)
0 1 0 1
0 1 1 0
1 0 0 0
1 0 1 0
1 1 0 1
1 1 1 1
Ans G(A,B,C)=A.B.C+A.B.C+A.B.C+A.B.C
OR
G(A,B,C)=0,2,6,7)
(
(1 Mark for correctly writing the SOP form)
OR
F(P,Q,R,S)=RS+PQ+QR+PS
Page34of38
CBSE AISSCE 20152016 Marking Scheme for Computer Science
(Sub Code: 083 Paper Code 91 Outside Delhi)
Ans Speed
Faster web browsing
Faster file transfer
Service
Better video clarity
Better security
OR
(Any other correct advantage can be considered)
( Mark for each of any one point for Speed/Service)
(d) Write two characteristics of Web 2.0. 1
Ans Makes web more interactive through online social medias
Supports easy online information exchange
Interoperability on the internet
Video sharing possible in the websites
Page35of38
CBSE AISSCE 20152016 Marking Scheme for Computer Science
(Sub Code: 083 Paper Code 91 Outside Delhi)
OR
Any two of the above or any other two correct characteristics of Web 2.0
( Mark each for any two correct answers)
(e) What is the basic difference between Computer Worm and Trojan Horse? 1
Ans
Trojan Horse Computer Worm
OR
Any other correct difference between Trojan Horse and Computer Worm
(f) Categories the following under Client side and Server Side script category? 1
(i) Java Script
(ii) ASP
(iii) VB Sript
(iv) JSP
Ans
Client Side Scripts Server Side Scripts
VB Script ASP
Java Script JSP
Page36of38
CBSE AISSCE 20152016 Marking Scheme for Computer Science
(Sub Code: 083 Paper Code 91 Outside Delhi)
follows.
As a network consultant, you have to suggest the best network related solutions
for their issues/problems raised in (i) to (iv), keeping in mind the distances
between various locations and other given parameters.
Note:
In Villages, there are community centers, in which one room has been given as
training center to this organization to install computers.
The organization has got financial support from the government and top IT
companies.
(i) Suggest the most appropriate location of the SERVER in the YHUB (out of the 4 1
locations), to get the best and effective connectivity. Justify your answer.
Ans YTOWN
Page37of38
CBSE AISSCE 20152016 Marking Scheme for Computer Science
(Sub Code: 083 Paper Code 91 Outside Delhi)
Justification
Since it has the maximum number of computers.
It is closest to all other locations.
( Mark for correct answer)
( Mark for any one correct justification)
(ii) Suggest the best wired medium and draw the cable layout (location to location) to 1
efficiently connect various locations within the YHUB.
Ans Optical Fiber
Page38of38