You are on page 1of 12

nbvMARKING SCHEME

PRE BOARD EXAMINATION: 2015-16


Class XII (Computer Science)
Subject Code - 083

Question

1 a)

b)

c)

Answer
Definition: inline function are small function that are not actually called,
rather than their code is expanded at the point of function call. the member
function of class, defined with in the class definition is inline by default
Example:
class square
{
int a;
public:
void print()
{
cout<<a*a;
}
};
Here print() is an inline function

1
1

maths.h and ctype.h


Corrected code:
typedef char STRING[30]; // Error 1
void main()
{
STRING city; // Error 2
gets(city) ;
cout<<City[0]<< \t<<City[2]; // Error 3
cout <City <<endl ; // Error 4
}
Error identification
Error correction
1 SARGAN

d)

Marks
Allotment

1x

1
1

9 ARGAM
Correct output:
Option (iii) 10 Excellent@9Good@10Excellent@

e)

f)

Option (i)

10 Excellent@10Excellent@80k@

Correct output:
Option ( i ) ACBA

1
1

Opotion

2 a)

b)

c)

d)

3a)

b)

(iv) DABA

definition
Example

1
1

i) Function 3= destructor. It is called automaticaly when scope is over.


ii) Constructor overloading/polymorphism
Game G , G1(90);
(i) Correct syntax for class and private members declaration
(ii) default constructor
(iii) function setPrice() definition
(iv) function setdetails(), display() definitions
(i) Hierarchical inheritance
(ii) Location, Area, Sale
(iii) Enter(),Show(),Register(),ShowC()
(iv) Input(),Output()
Soln:
Mark for function header,
Declartion of variable
mark for process logic

1
1
+
1
1
1
1
1
1
1

Soln
R=100, C=50, w=2 B=? A[20][40]=? A[10][30]=3000
IR,IC=0
A[i][j]=B+W[(C(i-ir)+(j-ic)
3000=B+2[(50(10-0)+(30-0)
3000=B+2[500+30]
3000=B+1060
B=1940
A[i][j]=a[20][40]
A[i][j]=B+W[(C(i-ir)+(j-ic)
=1940+2[(50(20-0)+(40-0)]
=1940+2[1000+40]
= 1940+2(1040)
=1940+2080
=4020

1X
1X

Base Address B=1940


A[20][40]=4020

c)

Insertion in Stack Algorithm/Funtion


Deletion in Stack Algorithm/Funtion

2+2

void AddEnd2(int A[ ], [4], intN ,int M)


{
d)

in t sum=0;

for(int i = 0 ; i < N ; i++)


{

for(int j =0 ; j <M ;ji++)

if(A[i][j] %10 = = 2)
sum=sum +A[i][j]
}
}
Mark for function header,
Mark for process logic
e)

1 mark for correct answer, 1 mark for stack status.

4a)

Line1File.seekg(-1*sizeof(c),ios::cur);
Line2:file.write((char*)&c,sizeof(c);

b)

1
1

Soln:
Mark for declaration of stream object
Opening the file
Process logic,

Declaration mark for declaration of stream objects and opening the files
c)

5 a)

1
2

Mark for process logic.

Correct Defination of Cartesian Product


Degree of C Table
Cardinalityof C Table
(i) Select * from shop order by Buydateasc.
(ii)Select ICODE, INAME from shop where QTY> 100.

1
1

(iii) Select ICODE, INAME, QTY*RATE TOTAL AMOUNT


from shop;
(iv) Select, SCODE, Count(*) from Shop group by SCODE;
b)

1
1

mark for completely correct answer(Column headings not to be


considered)
(v) 3

(vi) 120
(vii)Bag

Arya Stationers

(viii) 17-Dec-12
6 a)

1+1

Mark for stating the correct law, and


mark for proving it.

b)

Ans:
F= (X+Y) (X+Y) (X+Y)

c)

ABC + ABC+ ABC+ ABC

ab
cd

00

00

01

11

10
1

01

11

d)

01

1
1
1

Quard -1,Pair-2
F=b'd'+bc'd+abc
k-Map Drawn
Groups making
Solution
e)
7 a)
b)
c)
d)

e)

Find the dual of ,(1,3,5)


Ans is :
(0,2,4,6,7)

Correct difference:
PAN

Java Script - Client Side


JSP
- Server Side

It is associated with web application that facilitate information sharing, It


allow the user interact and collaborate with each other in a social media
dialogue.

Correct : VOIP

(i) 1 mark for any valid answer with proper justification.

1
1
1
1

(ii) 1 mark for any valid layout with proper justification.


(iii) 1 mark for any valid answer with proper justification.
(iv) 1 mark for any valid answer with proper justification

f)

marks each correct Answer

g)

It povide computing and storage capacity services to heterogen community


of end recipents.

You might also like