BCA (Serfi.-1.t) U: Roll No. Total No. of Questions: 071 (Total No. of Pages: 02 ('t3+ 3ze Al I Su/7 - Eet-R 4ycc, @ta
BCA (Serfi.-1.t) U: Roll No. Total No. of Questions: 071 (Total No. of Pages: 02 ('t3+ 3ze Al I Su/7 - Eet-R 4ycc, @ta
u
BCA (Serfi.-1.t)
PROGRAMMING IN C
SUBJECTCODE: BC - 104(N2)
PaperID : [B020al
lNote : Pleasefill subjectcodeand paperlD on Oi\lRl
l\{aximumMarks:60
T i m e : 0 3H o u r s
Instruction to Candidates:
1) Section- A is Compulsory.
2), Attempt any Four questionsfrom Section- B.
Section- A
QI)
Q0x2:20)
a) What do you understandby programming paradigm?Name various
progralnmingparadigni.
b) Differentiatebetweenstrlen() and sizgo( ) with suitableexamples.
c) Write any two advantagesof pointers?
Give suitableexample.
d) What is typedefdeclaration?
e) What are the three constructsthat govern statementflow?
0
j)
J-32e[812e]
PTO.
Section- B
(4x10:40)
Q2) (a) Explainbasicdatatypesavailablein C rviththehelpof example.
(b) Write a functionin C to f-u-rd
the sumof the fbllowirrgseries:
| + 2 + 3 + 4 + 5 + 6 + 7 + .......up to n tenns.
Q3) (a) Compareall the threeloopsavailablein C.
(b) Explain tl-revariouscharacterinput/outputfunctionswith the help of
suitableexamples.
Q4) (a) Write a programin C to sort in ascendingorder integerelementsof one
dimensionalarray.
(b) Differentiatebetweenpassby value and passby referencewith the help
of example.
two strings.
QS) (a) Write a programto concatenate
(b) Explain the conceptof passinganay to functions.
Q6) (a) Explain the relationshipofone dimensionalarraywith pointers.
(b) Write a programin C to bubblesort the given 10 numbers.
Q7) (a) Write a programusing C to computetransposeof a matrix.
(b) What is a class?How the objects are created?Explain with help of
examples.
EEEE
J-329