PROGRAMMING IN C' Year 21
PROGRAMMING IN C' Year 21
P. T. O.
[3] BCA–C-102 [4] BCA–C-102
(g) The function main( ) is a : (CO3) (k) The file function fclose( ) is used to : (CO3)
(i) User defined function (i) Open a file
(ii) Library function (ii) Close a file
(iii) Keyword (iii) Write into a file
(iv) None of these (iv) Write from a file
(h) Logical operators are used to evaluate expressions (l) The string function strrev( ) is used to find the :
which are : (CO1) (CO2)
(i) True or False (i) Length of the string
(ii) Greater than or less than (ii) Depth of the string
(iii) Both of these (iii) Reverse of the string
(iv) None of these
(iv) Data type of the string
(i) A pointer that is printing to nothing is a : (CO4)
2. Attempt any four of the following : 3 each
(i) Void pointer
(a) With a suitable example, show how to create
(ii) Dangling pointer
structure. (CO4)
(iii) Null pointer
(b) Design and implement a ‘C’ program in C to find
(iv) Wild pointer the area of a circle. (CO5, CO3)
(j) String functions are defined in the header file : (c) List any two conditional control statements in C
(CO2) with example. (CO2)
(i) conio.h (d) Explain the Break and Continue statement with
(ii) stdlib.h examples. (CO1)
(iii) stdio.h (e) Explain any four string functions with examples.
(iv) math.h (CO2)
P. T. O.
[5] BCA–C-102 [6] BCA–C-102
(a) Explain the different elements of user defined (c) Design and implement a C program that
functions in detail. (CO1) computes the size of int, float, double and char.
(b) Design and implement a C program to calculate (CO4)
the Fibonacci sequence using recursion functions.
(CO3, CO2)
P. T. O.