rtmnuonline.
com
KNT/KW/16/5240
Bachelor of Computer Application (B.C.A.) Semester–I (C.B.S.) Examination
"C" PROGRAMMING
Paper—II
Time : Three Hours] [Maximum Marks : 50
N.B. :— (1) ALL questions are compulsory and carry equal marks.
(2) Draw neat and labelled diagram wherever necessary.
om
e.c
EITHER
lin
1. (a) Explain modular logic with an example in C. 5
on
nu
(b) Write an algorithm to find the factorial of a number. 5
m
.rt
OR
w
w
(c) What is a flowchart ? Write the advantages and disadvantages of flowcharts. 5
w
(d) Write a short note on pseudo code. 5
EITHER
2. (a) Explain the arithmetic and relational operators in C. 5
om
(b) Write a program in C to find the roots of a quadratic equation. 5
e.c
OR
lin
on
(c) Give the purpose, syntax and example of switch statement. 5
nu
(d) Write a short note on break and continue statements in C. 5
m
.rt
EITHER
w
w
w
3. (a) Explain the following string fns :
(i) strlen( )
(ii) strcat( ) 5
(b) Write a program in C to find the largest number from one dimensional array. 5
OR
(c) Write a program to find the factorial of a number using recursion. 5
(d) Write a short note on storage classes. 5
NWN—8810 1 (Contd.)
[Link]
[Link]
EITHER
4. (a) Differentiate between structure and union. 5
(b) How will you open and close a file in C ? 5
OR
(c) Explain different file modes in C. 5
(d) Explain pointer arithmetic in C. 5
5. Attempt ALL :
(a) Explain the various symbols used in flowcharts. 2½
(b) Write a short note on enumerated data types. 2½
om
(c) Explain any two mathematical functions. 2½
e.c
(d) Explain void pointer with example. 2½
lin
on
nu
m
.rt
w
w
w
om
e.c
lin
on
nu
m
.rt
w
w
w
NWN—8810 2 KNT/KW/16/5240
[Link]