Professional Documents
Culture Documents
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
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
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
c)
2+2
in t sum=0;
if(A[i][j] %10 = = 2)
sum=sum +A[i][j]
}
}
Mark for function header,
Mark for process logic
e)
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
1
1
1
1
(vi) 120
(vii)Bag
Arya Stationers
(viii) 17-Dec-12
6 a)
1+1
b)
Ans:
F= (X+Y) (X+Y) (X+Y)
c)
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)
Correct difference:
PAN
Correct : VOIP
1
1
1
1
f)
g)