0% found this document useful (0 votes)
14 views

PROGRAMMING IN C' Year 21

This document contains a sample exam for a Programming in C course. It includes multiple choice and long answer questions testing students' knowledge of C programming concepts. The questions cover topics like data types, arrays, structures, functions, pointers, strings, preprocessor directives, and more. Students are asked to write programs demonstrating their understanding of concepts like recursion, flowcharts, data type sizes, and switch statements. The exam aims to evaluate students' mastery of the course objectives through practical application.

Uploaded by

leeanas9911
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

PROGRAMMING IN C' Year 21

This document contains a sample exam for a Programming in C course. It includes multiple choice and long answer questions testing students' knowledge of C programming concepts. The questions cover topics like data types, arrays, structures, functions, pointers, strings, preprocessor directives, and more. Students are asked to write programs demonstrating their understanding of concepts like recursion, flowcharts, data type sizes, and switch statements. The exam aims to evaluate students' mastery of the course objectives through practical application.

Uploaded by

leeanas9911
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

[2] BCA–C-102

(c) In order to modify previously allocated memory


Roll No. …………………..
space, we use : (CO5)
(i) calloc
(ii) malloc
BCA–C-102 (iii) free
B. C. A. (First Semester) (iv) realloc
EXAMINATION, 2020-21 (d) An array is : (CO2)
PROGRAMMING IN ‘C’ (i) A collection of variables of dissimilar data
Time : 2 12 Hours type
Maximum Marks : 60 (ii) A collection of variables of similar data type
Note : All questions have to be attempted.
(iii) A collection of global variables
Section—A
(iv) None of these
1. Multiple choice questions : 1 each
(e) A nested function will call : (CO3)
(a) All type of computer programs are collectively
referred to as : (CO1) (i) Itself
(i) software (ii) Another function
(ii) hardware (iii) Global variable
(iii) compiler (iv) None of these
(iv) interpreter
(f) Give the value of ‘y’ after execution of
(b) The process of finding and removing errors is
y  3% 21 ? (CO1)
called : (CO1)
(i) compiling (i) 5

(ii) assembling (ii) 2


(iii) debugging (iii) 6
(iv) None of these (iv) 0

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

Section—B (b) Define flowchart. Draw a flowchart to find roots


3. Attempt any two of the following : 6 each of a quadratic equation. (CO3, CO2)

(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)

(c) Explain the C syntax of structure declaration with


example. (CO1)

4. Attempt any two of the following : 6 each

(a) Explain the difference between array and


structures with appropriate program.

(CO3 & CO1)

(b) Explain the # define and # include preprocessor


directive. Show their usage in an example.

(CO3 & CO1)

(c) Explain the switch statement with syntax and


develop a program to explain its usage. (CO5)

5. Attempt any two of the following : 6 each

(a) Explain the basic data types available in ‘C’.


(CO1) BCA–C-102 70

P. T. O.

You might also like