Professional Documents
Culture Documents
26._Dec_2022 MCS-011 IGNOUAssignmentGuru.com
26._Dec_2022 MCS-011 IGNOUAssignmentGuru.com
26._Dec_2022 MCS-011 IGNOUAssignmentGuru.com
om
MASTER OF COMPUTER
u.c
APPLICATIONS (REVISED)/
BACHELOR OF COMPUTER
ur
APPLICATIONS (REVISED)
(MCA/BCA)
tG
Term-End Examination
en
December, 2022
m
MCS-011 : PROBLEM SOLVING AND
PROGRAMMING
ign
Weightage : 75%
ss
algorithm. 10
P. T. O.
[2] MCS-011
om
1 to 10. 10
(c) Write a program in ‘C’ to sort an array of
u.c
10 elements in ascending order. 10
(d) Explain difference between ‘call by value’
and ‘call by reference’ with the help of
ur
examples. 10
tG
2. (a) What is Union ? How is it different from
structure ? Explain declaration and use of
en
union in C with the help of an example and
program. 10
m
(i) malloc
UA
(ii) fputc
(iii) strcat
(iv) fclose
NO
10
[3]
om
function. Also display the length of the
resultant string. 14
u.c
(b) Explain the use of the following statements
with the help of an example : 3×2=6
ur
(i) Switch statement
(ii) Else-if statement
tG
(c) Write a macro to evaluate : 4
𝑓𝑓(𝑥𝑥) = 5𝑥𝑥 3 + 2𝑥𝑥 + 3
en
5. (a) Write a program to display the following
pattern : 6
m
1 2 3 4
ign
5 6 7
8 9
ss
it. 10
IG
MCS–011