0% found this document useful (0 votes)
10 views8 pages

144 - Computer Science

The document is an examination paper for a Computer Science Theory course, consisting of 26 compulsory questions with varying marks. It includes multiple choice questions, definite answer questions, and programming tasks related to C++. The paper outlines instructions for answering questions and specifies the marking scheme for each section.

Uploaded by

absoluteartist07
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)
10 views8 pages

144 - Computer Science

The document is an examination paper for a Computer Science Theory course, consisting of 26 compulsory questions with varying marks. It includes multiple choice questions, definite answer questions, and programming tasks related to C++. The paper outlines instructions for answering questions and specifies the marking scheme for each section.

Uploaded by

absoluteartist07
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/ 8

t6d.

5fa"dgslatdwl ' e
Roll No.
No. of printed pages : I

L44 4,44 (rAZ)


2024
mqxfrf,tq (CAnfia-ol
CoMPUTER SCIENCE {THEORY}
TF[€[:3qdl 1 EurFo" ; zlt
Time :3 Hours I IMax. Marks : 70
ff&r, (i) {fl qwr-w{ iigm qra'3rFffird di
20 qFI d'r sfr
Directions: There are in all 26 questions in this question paper. All questions
are compulsory.
(ii) q'r+ AE fr€fkd 3i6 r+b qqs sifr-o dt
Marks allotted to the questions are mentioned against them.
( ilt) rd-6 re-{ d €qFq-ed qBd ozn HEfu m< ffiut
Read each question carefully and answer to the point'
(iv) ss{ scuT r egftrcffi'q qq{ *l Ss qfr b q-C-d sus b snq C ux fr-"o-iq'
ftd iTu dl s& ko-iq s{qfr rd{gk-6T d frfuul wq 14wT z z nzn *
frkffi :.r$q !p-q dt
Question No. 1 is multiple choice question. Four options are giT en
in answer of each part of this question. Write correct option in your
answer book. Question No. 2 to 7 are definite ansrrven type
questions.
(v) ffi tl t
seqr 1 6-t n$d sus E6 s{-6 6-l qT{ dEqr z z cI6 Es 3i6 &
qT{ dt q{{ seqr a t + To a} 316 b ssq'dl qqq srsT 15 20 f,6 (t{
t t
t
3i6 b lsq fll qsr ri@T 21 26 ffiF dK eio b Eqq dl
Each part of Question No. 1 carries one mark. Questi6n Ne. 2 to 7
are of one rnark each. Qt"lestion No. B to 14 are of two marks
each. Question No. 15 to 20 are of three marks each" Questicn
No. 21 to 26 are of four marks each.
(vi) Ffl sfi-w{ S wu T{ 6t$ BfiN q& * deufr 6frqq eq{ifr 3Tif,kd kd-iq
ram fu-qT rrqr t-Stl ffi
fr -&-{n E-6 fr-f,s ffiI6} Tn{ Arfrsl
There is no overall choice in this question pape[ however, an internal
choice has been provided in few questions, Attennpt only one af
the given choices in such questions,

t1 I [P.r.o.

,l
a

(6) c++, drrrs b frs ftEi d *


1
fuH 6T qq)r fuqr onr *l 1
which of the foilowing is used for Comrnents in c++?
(i) /xComments x/ (ii) //Comments x/
(iii) //Comrnent (iv) both //Comment or /xCommentx/
lqqy frrq ii * c++ HqT fr mtq qT 6-qEEr 6T q.Ft< T& t _
(i) BETmmEffi{
1

(ii) U<-n+xrEesqffir
(iii) erfi dxil€r (iv) frx mrildel
which of the following is not a type of constructor in c++
-
(i) Default constructor (ii) parameterized constructor
(iii) copy constructor- (iv) Friend Constructor
(rr') frrr fr * fu,fl 6r s-'crT c++ c rb-driE utqurT o1llqlfu
b ftra fu-qr arm dl 1

Which of the following is used to terminate the function


declaration in C++?
(i) (ii) l (iii) ) (iv) :
(q') # t fu-fr ffiil 6) Fdri b frs fuH fuqT 6T rrqtrr orfr dl
C
(i) WT (ii) mq (iii) b (iv) Bfrd
which operation is used to delete an item from a stack?
(i) PUSH (ii) pop (iii) ADD (iv) DELETE
(s) sel fr DML 6l ffiriT qrq.d-
(i) erur Gfu-tqm d+n (ii) s6 g.|6s drd-n
1

(iii) sia *@a drls (iv) -eTil.m-63{q drnfl


The Fuli form of DML in SeL is _
(i) Data Definition Languages (ii) Data Manager Languages
(iii) Data Manipulation Languages (iv) Data Markup Languages
(a) qfrq"{ ffird of nrup Grrqr erqr<ur ffid 6} fu-fl ftqr h gE d? 1

AND operation In boolean algebra is equivalent to which


operation in normal
algebra?
(i) q}rT (ii) qr{ (ilr) Tdrd (iv) WrT
Addition Division difference Multiplication
(6) fr-q d * ffi
6-r qpi wrr prT?
sem
1

Which was the name of the first network?


(i) ASAPNET (ii) ARPANET (iii) cNNEr (iv) NSFNET

444AAZ)
12l
(st $rc{id q{ ffi resource 61 d}ym Frq C + fuHb gKI (T6rmTr) qrw +e d-
The location of a resource on the interent is given by its- 1

(i) ffif, (ii) f-t-oq-m (iii) dsrr uf, (iv) s-.q.sq,sq.


Protocol E-mail address URL WWW
2 frq frd rrs drfiT-{ o;1tfl (header) sr{m ffi'qlrr frfrs-A- 1

Write the name of the header file for the following function-
(i) putso (ii) setw()
3 N frrdi & e)-i
s.6r< di 1

How many types of array are there?


4 c++ tisqlT d-r ed m-*1 a) q-6T{ & }dr re-ffi{ (Data structure) frfu-dt 1

Write any two type of Data Structure used in C++"


5 *
3a{ fi pq s<T fr ffiwr H o-rt dl 1

What is relation in RDBMS?


6 ffidrffiawbffiqmssrdde 1

Holv many values any logical variable can harre?


7 LAN] cpJT MAN c a\ erq< frfo"I 1

Write two difference between LAN and MAN?


B fu q)]]tq o,ts 6T output. qffi-fd - 2
Find the output of the ioliowing code-
#include < iostream.h>
int main 0
{
lnt i;
for (i=1; i<=10; ++i)
cout <4"\,,["<<i;
return 0;
\)
s. eeffirfi ffi dliTq a+ slk w+ qls o1 u-o erffiffiI wf u-o 3i(K
b Z ffiq-dr
Write one similarity and one difference between a+ and w+ mode in data file
handling.
10, c++ $rTsrT fr urfqq dfl & fu uomprq frfisdt (s6:A m"q b N b frul z
Write an algorithm for Binary Search in C++ language. (For Ascending order in
Array)

444(rAZ\ l3l lP.r.o.


^
ll.Fmaigqorfgr<.Eldc*6RIfrbq-s6q{Tr61qte]"r#kdlTl-
5,6,2,*,*,L2,4, l,-
Evaluate the expression 5' 6' 2' *'
*' 12' 4' /' - in tabular form showing stack
status after everY steo'
L2 fr# *ai" f*. b mtm qRwfra q-<fifrd-
(ii) ffiiagd
2

;'; *;tsur
the following in Database concept-
Define
(i) PrimarY KeY (ii) Candidate KeY
Z
13 }i+F"*;5e. b uo-uo srqt E 36-srlfrRrit fibers'
*r,i" io*n one advantage and one disadvantage of optical 2
14. wLL w qs-q As ftRg-dt
Write a short note on WLL' 3
1s. ligq fr'flq mT 3{Bqt gra dHm -
Find the output of the following program -
# i nclurde< iostrea m' h >
void rnain 0
{
int x[ ]={10,25,30,55,i10};
intxP-x;
while (xP< 110)
{
*p= *p+ L;
else
*p_xp*2i
p+-;
)
for (int T=4; l>1; I--)
Jt
cout<<x[I]<<"*";
If (Iolo3==0)
cout< <endl;
'l
I
cout<<x[0]x3<<endl;
)
6-dt dl sqrf<.'r qfff Hqflr$ul
3
16. fr.d rirffiq {H
WhatisfriendFunction?Explainwithexample'
3lerqr/oR
E6 c++ HqT d fr'rq frftqs, *
TS,,*" fr d ffqffi o\ dls-m dt
same size'
Wrlte a program in C++ to add two matrix of

444(tAZ) t4l

t
L7 . frq qirs b smm qq w$i (i) t (iii) ao b r.r< ftifus-
Answer the Question (i) to (iii) based on the following code- 3

class Regular
t
char School-Code [10];
puhlic :
rroid In-Regular ( );
void Out-Regular ( );
1.
Jt
class Distance
{
char StudY-Centre-Code [5];
public :
void In-Distance ( );
void Out-Distance ( );
1.
fr
class Course: Public Regular; Private Distance
{
char Code [5];
f loat Fees;
int Duration;
public :

void In-Course ( );
void Out--Course ( );
);
(il strffi ols tifux, s-oi< oi g*Rls mr fu*q f 1

!Vhich type of inheritance is shown in above code'


(ii) ; l+*^"*, b qru ftfisA $ mrs course b out-.ourse C qffidrq dl
"-ftname of all the member functions accessble fronn Out-course function
Write
of C!ass Course.
(iii) ; dfr-tr& ;il 3Trci.fl b aRT ffiIrfl course fi sasr dr sot dt
"fr"t*.-b
Wrlte ",
name of all members accessible through an object of Class Course.
18. K-Map 6T !-CIT o<t 6u e-<#o<ut otffiqr - 3

Simplify using the K-MaP-


F(R Q, R, S) = I (0, 3, 5, 6, 7, LL, L2, 75)
lg, fi-*dq rhq qilt i ffi
uen Frqq 61 rs-dt sernl Hr<fi fr srrqar fr snlfrd otffim t

State De-Morgon's TheoremlLaw. Verify any one of the De-Morgon's Law using
a Truth rable'
',3[era17gp

qEf, fr+ or Frqq corEr fu'fr r'o Frqq 61 strfr sdHT Hnffi d vdrqil t ssrfr"a
frffirnt
State Absorption Law. Verify any one of the Absorption law using a truth tabie.
444(tAZ) Isl [P'r'o'
I

za. frH61qfu{rR-d6ths- 1x3=3


Define the following -
(i)Hr{qr 6rd=T (ii) tax (iii) g*1
Cyber law Hacker Cookies
21. C++ rlrtil b urrnopolis ffirKr mr fuq Bq1ur * snenq q{ 6ts frfuu - 4
Write the definition of a Class METROPOLIS in C++ with the following description:.
Private Members
M-Code // Data member for code (an integer)
M_Name // Date mambers for name (a string)
M_Fop // Data members for population (long int)
Area // Data members for Area Coverage (a float)
Popdens // Data members for population density (a float)
CaldenO // A member function to calculate
/1 Density as PopDens/Area
Pubiic Members :

Entero //
Afunction to ailow user to enter varue of
//
M_Code, M,_Name, M_pop, Area and CaldenO function
ViewAllO //
A fulnction to display data memeber
//
A.lso display a message ',!-ligh populated Area,'
//
If the density is more than i2,000.
zz. mq,ffi{ 3flq CRnffiq aDT qq}T m<& 6u ffi
mrs b fr! qtflq 6tsfrfuuI 4
Write a program Code for a class using constructor and destructor.
23. c++ qqJ r) w ritdqm frfuu ril FrqftTfotr ffirrs student b 3rc-fr) 61ffi qrETfr
tFr{f, d ftrgdT dr- 4
Write a function in C++ which is used to write the objects of following class
student in a hinary file-
class student
{
int regno;
char name[20];
public:
void getdatao
i
cout "enter registnation No.";
cin>>regno;
cout"enter l.lame";
cin> >name;
)
void putdataO'
)
, cout<<regno;
cout< < name;
); )
3re[q[/oR.
444(tAZ) t6l
c+ + iiltrT fr uo riffirq ftfuu a\ uo dffi srid old.txt 6) $rfi dffi wr{f, new.txt
frffimtl
Wr-ite a function in C++ which copy the content of one text file old.txt into
another text file new.txt.
24. A14..7, -1..31 gtq fit{rfrH Eo 2-D tt mr q-dd ffir 2 qrfc ds trsar dt qfr t't C
.1fu rgs mq C €Ii fuqT fldI d C n po, 2l dl rl?tT Et?i dm, ts qf,r 100 frqi dl
.4
A 2-D array defined as A [4,.7, -7..3] requires 2 bytes of storage space for
each element. If the array is stored in row-major form, calculate the address of
A [6, 2], given the base address as 100.
zs. ffiaqCffiEo1ffidPdre-ddbft?urffiemfrftsut 4

Write an algorithm to add and delete an element from a queue.


3[?]alloR
e-pa r{ffi C uo ffqrq frRss S Frq. H{flrT Ere #i fr w frffi ftil€ slrdT A 3ik stTb
gfeT 6-T AET,,-d] 6 -
Write a program in C++ which is used to create a linked list for the following
structure of nodes and also displatT the same -
Struct node
i
int data;
node x next;
);
zG. stock table b satf fr frir b s-.x erfus-
Consider the following table Stock and Answer the following-
Table : Stock
Item No Item Dcode Qtv Unit Price Stock Date
5005 Bail Pen 0.5 t02 100 16 31-Mar-10
5003 Ball Pen, 0.25 L02 150 20 01-Jan-10
500 2 Gel Pen Pre 101 t25 L4 14-Feb- 10
s006 Gel Pen Classic 10.1 200 22 01-Jan-09
5001 Eraser Small L02 2L0 5 19-Mar-09
5004 Eraser Big t02 60 10 1 2- Dec-09

5 009 Sharpener Classic 103 L40 8 23-lan-09

444(tAZ) l7l I P.T.O.

.{
(m) sQL 3fl'evr frfu - 1 xz=Z
Write SQL Commands -
(i) Stock tsd d item 61{ifr ftrd$rr 6} r{b etv b q.6a m-q fr aertrTr
To display details of all items in stock table in ascending order of Qty.
(ii) stock &m q item b &aa rq frd.Tl 6\ oqrfqr ffi unit price 10 qT llr$
3rftr6 dr
To ciisplay the details of those items whose unit price is 10 cr more
than 10.
trql Frq 3lT&Tt 6[ output dtT[ 6t[r LxZ=2
What will be the output of following commands -
(i) Select Count (Distinct Dcode) from Stock;
(ii) Select min(stock Date) from stock;

*****

"l

444(rAZ) 8J

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy