You are on page 1of 4

GURUNANAKCOLLEGE(

AUTONOMOUS),CHENNAI
DEPARTMENTOFCOMPUTERSCI
ENCE
PROGRAMMI
NGI
NCQUESTI
ONBANK

Par
t-A
1)Whatar et hei dent ifiersi nC?Gi v et woexampl es
2)Whati saconst ant ?Li stt hedi ffer entt ypesofconst antsinC.Def inevari
able.
3)Whatar ekey wor ds?Gi veexampl es.
4)Listandexpl aint hebasi cdat at ypesi nC.
5)Howi st hef ol l
owi ngcondi ti
onal expr essionev al uat
ed?( assumei isanint
r
variable)( i>0) ?0: 100.Whati smeantbydecl arat i
on?Gi veanexampl e.
6)Wr i
tet her el
at ional andl ogi cal oper ator susedi nC.
7)Whati sanunar yoper ator ?Gi veexampl es.
8)Whatar ebi t
wi seoper ator s?
9)Ment i
onanyt owbi twi seoper ator s.
10)
Whati snest edi fstat ement ?Gi v eexampl es.
11)
Speci fythesy nt axused‘ for ’stat ement .
12)
Whati st heuseof‘ Cont inue’ stat ementi nC?Gi veexampl es.
13)
Compar ebr eakandcont inuest at ement s.
14)
Ment i
ont heuseof‘ br eak’ and‘ cont inue’ st atement s.
15)
Ment i
ont hepur poseofusi nggot ost atement s.
16)
Speci fythest at ementusedf ordecl aringani nt egerar r
ay .
17)
Howdoy oudecl areamul tidi
mensi onal arr ay ?
18)
Whatar emul tidimensi onal array s?Br ieflyexpl ain.
19)
Distinguishbet weenanar rayandast ruct ur e.
20)
Expl ai
nt her elat ionshi pbet weenanar rayandapoi nter.
21)
Whati sst ruct ur edat at ype?
22)
Whati sast ring?Gi v eanexampl e.
23)
Speci fythemet hodofdecl aringai ntegerpoi nt er.
24)
Givet hei mpor tanceoft ypedeff eat ure.
25)
Whati sast ring?Whati st heuseofnul lchar act erinstri
ngr epr
esentat
ion?
26)
Howcant heget charf unct i
onbeusedt or eadmul ti
char acterstr
ings?
27)
Speci fytheuseofpr intf( )andscanf( )funct ions.
28)
Whatar el ibrar yf unct ions?Gi veanexampl e.
29)
Whatar et headv ant agesofusi ngf unct ionsi nC?
30)
Descr ibehowt odef ineandaccessaf unct ioni nC.
31)
Whatar ef ormal argument s?
32)
Whati sknownaspassi ngbyv al ue?
33)
Definet het ermr ecur sion.
34)
Differentiat ebet weenl ocal andgl obal variabl es.
35)
Whatar ef unct ionpr ot otypes?
36)
Whatar eaut omat icv ar i
abl es?
37)
Speci fyther oleofst at icv ar i
abl es.
38)
Definet het erm poi nt erdat at ype.
39)
Howar est ruct ur eel ement saccessedusi ngapoi nter?
40)
Whati sasel f-ref erent ial struct ur e?
41)
Namet hetwot ypesofdatafilesusedi nC.
42)
Wr i
tethef i
l
e-t
y pespeci
fi
cationsusedi nfopenstat
ement.
43)
Ment i
ont hestatementsusedf oropeni
ngandclosi
ngfi
lesinCl
anguage.
44)
Ment i
onanyhowf i
l
emani pulationstat
ements.
45)
Disti
nguishbetweenpr i
ntf()andf print
f()
.

Par
t-B

46)
Compar est ructur eswi t
hUni ons.
47)
Explai
nt hechar act ersetofC.
48)
Whatar econst ant s?Howt heyar edecl ared?Ment iondi ffer
entConstantt
ypes.
49)
Explai
nv ariousr elat i
onal andlogi coper ators.
50)
Whatar enest edcont rolst r
uctures?Gi veanexampl e.
51)
Listandexpl aint hebasi cdat at ypesi nC.
52)
Explai
nt heuserdef i
neddat atypesi nCwi thexampl es.
53)
Explai
nt hebasi cdat at ypesi nCwi tht heirr angesandmemor yrequi
rements.
54)
Disti
nguishwhi leanddo- whi l
econt rol st r
uct ur
es.
55)
Explai
nt hegener al syntaxofaswi t
chst atementandwi thsimpleexample
explai
nitsusei npr ogrammi ng.
56)
Whati sanoper atori nC?Ment i
ondi ffer entoper at
ort ypeswi t
hexamples.
(Part
-B)
57)
Explai
nbr iefl
yaboutpoi nters.
58)
Wr i
teanot eonUserDef inedDat aTy pes.
59)
Explai
nt heoper ationsonpoi nters.
60)
Whati spoi nterar i
t hmet ic?Howi sitper formed?Exampl ewithanexample.
61)
Describev ari
ousmodesofopeni ngadat af il
einC.
62)
Discusst heusageofl ogical andshi ftbi twiseoperat ors.
63)
Explai
nv ariousdat at ypesofCl anguagewi t hexampl es.

Part-C
64)
Discusst hedi ff
erentty pesofoper atorsi
nCwi thexamples.
65)
Explainthef ol
l
owi ng:
a.Expr essions.
b.Unar yoperators.
c.Shor t
handAssi gnmentOper at
ors.
d.Headerf il
es.
66)
Explainthel oopingst ructuresinCwi thexamples.
67)
Describet heusageofwhi lestatementandexpl ai
nhowisdi ff
ersfr
om f
or
statementanddo- whilestatement .
68)
Explainthef ol
l
owi ngcont rolstruct
ures.
69)
Whi l
e-do.
70)
Switch.
71)
Explainthef ol
l
owi ngcont rolstruct
ures.
a)Swi t
ch- case.
b)I f-
else
72)
Howt opassast ructuret oaf uncti
on?Explai
nwi t
hexampl es.
73)
Wi t
hSui t
abl eexampl es, explaintheusageofstructur
esanduni onsi
nC.
74)
Explainthepurposeofscanfandpr intffuncti
onswi thexamples.
75)
Describehowt odefineandaccessaf uncti
oni nC.
76)
Whatar ecalledli
braryf unct
ions?Listanysixlibrar
yfuncti
onsandexpl ainthe
purposeofeachoft hem.
77)
Explainthemet hodofpassi ngpointerstofunct i
onswithanexampl e.
78)
Whati smeantbypar amet erpassi
ng?Expl ai
nanyt wopar amet erpassi
ng
met hodswithexampl es.
79)
Whati smeantbyst orageclass?Explain.
80)
Writeshortnotesonuni ons.
81)
Explainthestoragecl assesinCwi t
hexampl es.
82)
Namet hestorage-
classspeci fi
cat
ionsincludedi nCcanddi scussindetail
.
Pr
ogr
am

1.Descr i
behowt ocreateadat af i
leinC.
2.Writeshor tnoteson:
a.Poi nt
ers.
b.Fi les.
1.Writeapr ogram tofindthear eaofat r
iangl e,giveitst hreesides.
2.Whati sanexpr essioninCl anguage.
3.Whati srecur si
on?Wr i
tear ecursiveprogr am t ofindt hef actori
al ofagi v
en
int
eger .
4.Writeapr ogram tofindthewhet herthegi venst ri
ngi spal indromeornot .Use
pointers.
5.WriteaCpr ogram tofi
ndf actorialofgivei nteger.
6.WriteaCpr ogram tocheckwhet herthegi v ennumberi spr i
meornot .
7.WriteaCpr ogram tofi
ndt hebi ggestoft hegi v
ennumber s.
8.WriteaCpr ogram tofi
ndt hesum ofnnumber sst oredi nani ntegerar r
ay.
9.WriteaCpr ogram tofi
ndt heav erageofgi venumber s.
10.
Writeapr ogram tosortthegi vensetofnnumber sinascendi ngor der.
11.
WriteaCpr ogram toarranget henumberi nascendi nganddescendi ngorder
s.
12.
WriteaCpr ogram toopen, readanddi splayt hecont entsofat extf i
l
e.
13.
WriteaCpr ogram format r
ixmul t
ipl
i
cat i
on.
14.
WriteaCpr ogram tocountt henumberofdi git
soft hegi v
eni nt
egernumber .

You might also like