Computer Science Class XII 2023
Computer Science Class XII 2023
I1I lP.T.O.
1 . (6) c+ + Lr6. .. ..q!trrfilrr r+rqT t |
..
1
(i) LIFo fudrfr (ii) FIFo k&r;f, (iii) tdu Eei (iv) Ofl-rrd tt
A Queue follows-
(i) LIFO principle (ii) FIFO Principle (iii) LINERTREE (iv) Ordered array
(s) sQL C DDL 6T ffif, Erq dqT t- 1
I
Z. C++ HInil ii 'a' 3lk "u" fr ffif 3{<R t? 1
HowismemoryallocatedforTwoDimensionalArray?
s. sQL C f{o.-fl (Alternativ"l Ffi o-rt ffi da 1
example.
What is Function overloading? Explain with the help of suitable
9. Fm frtr-q ol outPut f,ra e1m - 2
each element
An Array Tt25l [20] is stored along the row in the memory with
requiring 2 bytes of storage of the base Address of array is
42000' Find the
in the
Location of T[10] t151. Also find the total number of elements J'i-st..t
array.
t3l I P.T.O.
444(tGZ)
.l
11. qffim3fffimafiHu- AB+c* p/ 2
qfr A=2, B=3, C=4, D=5
Evaluate the Post fix Expression AB+C >< P/
Write one Advantage and one Disadvantage of Star and Linear Topology.
1s. frq 6ts o\ vge o-<b y, frfu- 3
a
16. Fq riqrq b s+rum qq fiffi1fo6 seq) ril t (iii) ro b sa-< frfts-i- 3
Answer the following Questions (i) to (iii) based on the following program-
Class Student
{
int Rno;
Char Name }AL
float Marks;
Protected:
Void Result O;
Public;
Student 0;
Void Register 0; Void Disptay 0;
'\.
Class Faculty
{
long Fcode;
Char FName [20];
Protected:
float Pay;
public:
Faculty 0;
Void Enter O;
Void Show 0;
)
Class Course : public student, private Faculty
{
Long ccode [10]; Char CourseName [50];
Char StartDate IB], EndDate [g];
pu blic;
Course O;
Void Commerce 0;
Void CDetail O;
j;
(i) sqttr c++ otg d fuH s.-6T-{ b S+Rt< 6l ftrflur ftrqr rrqr dl
which type of inheritance is illustrated in above c++ code?
S{erqr/OR
444(tGZ) t6l
a
ExecArea 0 // member function to calculate and
assign Area as side x side
Public Members
GetBox 0 // A function to allow user to enter
value of Box Number and side.
// Also, this function should call.
Exec Area O to Calculate Area
ShowBox // A function to display Box Number,
Side and Area
22. ffi €wT b mgq Si qr q Eli sr qil ETr+ b ftru c++ r{TqT S riffiH o-r s*T s{A
Eu E6 mrrrq ftfut 4
Write a program in C++ to checkthat a number is prime or not, using function.
23. frET m'Jq or output f,rf, otHg - 4
Find the output of the following program-
# include <iostream.h>
Void main o
{
int Track[]={10,20,30,40}, x Striker;
Striker =Track;
Track[1]+=30;
x Striker -=10;
Striker ++;
Cout <<"Next @ "<< Striker << endl;
Striker +=2;
Cout <<"Last @ "<<"Striker << endl;
Cout <<"Reset To"<< Track[0] << endl;
)
3TeE[/9p
ffi qimn b ddf S frH d eq-flrss-
Explain the following in reference of some function -
(i) call by value
(ii) call by reference
4
24. fu-S r&o. qr s} Eri dTfi fr-qpti push
3f{ ecp * fru ur.nnerq ftfisur 4
write an arEorithm for push and pop
operations on any stack.
3rerqr/oR
ffi rinked eueue ii rear end $ rnserrion il frg E-FilRprq frfu&r
write an argorithm for Insertion in the
rear end of rinked eueue.
2s' infix Expression 6) post fix Expression d qREffid
s-{+ b t{q[Rqq d frfudr 4
write an argorithm to convert infix Expression
to post fix Expression.
26. (6) fu,fr tcd m ffi q c-+fr of frfh
rcrf,wr Hkd Hqflrwr
2
Explain the process of making
a view of a tabre with an exampre.
(q) where 3rtq havins ffisil fr q., 3r-fi di
Htrfr srflr$ur
ra-a<or
2
what is the difference between where
and having crause? Exprain with
an
example.
*****
444(rGz)
l8I