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

Programming in C

This document outlines the examination structure for the B.C.A. (First Semester) Programming paper for the academic year 2021-22. It specifies the exam duration, maximum marks, and instructions for answering questions from two sections, A and B. Section A consists of five questions worth 5 marks each, while Section B includes three questions worth 15 marks each, covering topics such as arrays, recursion, pointers, and file handling in C programming.

Uploaded by

ravikr54154
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Programming in C

This document outlines the examination structure for the B.C.A. (First Semester) Programming paper for the academic year 2021-22. It specifies the exam duration, maximum marks, and instructions for answering questions from two sections, A and B. Section A consists of five questions worth 5 marks each, while Section B includes three questions worth 15 marks each, covering topics such as arrays, recursion, pointers, and file handling in C programming.

Uploaded by

ravikr54154
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

ROW NOs

wsswscvacavssssedeanens

~ P+307
SET/CSE/BCA/C-102
B. C. A. (First Semester)
EXAMINATION, 2021-22
‘Paper Second

IN ‘C’
|
PROGRAMMING
rime : Two Hours
3

[ Maximum Marks : 70
Note: (i) Attempt any five questions from Section A and
any three questions from Section B.
(ii) Answer each question of Section A within
50 words.
}

(iii) Limit your answers within the given answer


book. Additional answer book (B-Answer book)
.
Should not be provided or used.

Section—A
Note : Attempt any five questions. Each question carries
5 marks.

1. What is the purpose of header files ? Give examples.

P. T. O.
[3]
[2] P-307
(ii) A file with name DATA contains a series of
What is an array ? Write a program to compute Mean integer numbers. Write a C program to read these
and Median using arrays. numbers and then write all odd numbers to file
What is recursion ? Write a program to add first . called ODD and alleven numbers to a file called
10 natural numbers using recursion. EVEN. 7
Explain the switch statement with syntax and example, (i) Describe function and how it is defined in C.
Explain the working of for loop with an example. Explain actual and formal parameters with proper _

example. 8
State the use of break and continue statement with
example. : (ii) Design and develop a C program to reverse of an
integer number NUM and check whether it is
Explain the meaning of the following statements with

:
PALINDROME or NOT. 7
reference to pointers

int *
a, b;
ja What is a pointer ? Explain how the pointer
variable declared. and initialized. Write a C
b= 20; ‘program to swap two numbers using call by ;
| |

pointers method. 8
Fa ab!
:

(ii) Explain about the data types in C language with


a= &b; .
example.

:
Section—B
Differentiate between the following 5 each
Note : Attempt any three questions. Each question carries
(i) structure and union
15 marks.
(ii) while loop and do---while loop
What are the string handling fiinctions available in C ? (iii) pre and post-increment operator in an expression
Write user defined functions for string copy, string (iv) call by value and call by reference
compare and substring. 15.7 variable and constant
(v)
(i) What is a file ? Explain with an example the file P-307 A440
handling functions. 8

You might also like