We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 2
a\ Sb
Roll No. .......
Total Pages : 02
BCA/M-18 1904
ADVANCED PROGRAMMING IN C
BCA-121
Time : Three Hours] [Maximum Marks : 80
Note : Attempt Five questions. Q. No. 1 is compulsory. Select
one question from each Unit.
(Compulsory Question)
1. (a) Explain various string handling functions in C.
(b) Distinguish between Malloc and Calloc.
(c) Explain Header files with examples.
(dy What are the different file operations in C ? 4*4=16
Unit I
2. (a) What are strings in C ? Write a program to check
whether string is palindrome or not ? 10
(b) Write a program for adding string to end of another
string. . 6
3. (a) Difference between Structure and Union. Write
syntax. for declaration of Structure and Union.
(vb) Explain typecasting with example. 8x2=16
(@-21/74)L-1904 PTO.Unit 11
4. What is Recursion ? Write a program in C to print series
0, 1, 1, 2,3, 5, 8... using recursive functions.
16
8. (a) Differentiate between Call by Value and Call by
Reference in C with suitable examples.
(b) Explain dynamic allocation ih C using pointers. <
8x2=16
Unit 1
6. Explain the following : 8x2=16
(a) File VO and Console 1/0
(b) fopen() and felose().
“7, What are the different ways in which files can be
categorized in C ? How errors are detected in files 2? 16
Unit IV
8. Write short notes on the following : 4xd=16
(a) #define
(b) Macros In C
(c) Conditional Compilation
(d) #include.
9. What are Command Line Arguments ? How do we define
and use Command Line Arguments ? Wriie a simple
program for Command Line Arguments. 16
L-1904 2 2,206
el