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

BCA I Sem C-Programming Paper-II

none

Uploaded by

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

BCA I Sem C-Programming Paper-II

none

Uploaded by

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

I- MID TERM EXAMINATIONS–2024

Subject Name: C Programming

Programme & Batch : BCA Semester :BCA-I Sem


Course Title : C Programming Course Code : CA104103
Duration :1Hour Maximum :10 marks

Instructions:
1. Before attempting any question paper, be sure that you got the correct question paper.
2. The missing data, If any, may be assumed suitably

Question K Level
Question Mark (CO)
No (K1-K6)

Section A (2*1=2Marks) Answer all Questions


1 Define a pointer in the context of C programming. Discuss the 1 K1 CO1
significance of pointers in efficient memory management.
2 What distinguishes a for loop from a do-while loop in terms of 1 K1 CO2
iteration control?
Section B (2*2=4Marks) Answer all Questions
3 Construct a C program to compute the factorial of a given 2 K2 CO1
integer through iterative processing. Concisely explain the
approach utilized in your solution.

4 Differentiate between static and automatic (local) variables 2 K3 CO2


in C in terms of scope, lifetime, and memory allocation.
Illustrate with an example to depict their distinctions in
varying scopes.

Section C (1*4=4Marks) Answer any one Questions


5 Devise a C program that merges two pre-sorted arrays into a single 4 K2 CO1
sorted array, without leveraging any standard library sorting
functions. Display the merged result to verify accuracy.

OR

6 Implement a user-defined function to assess whether a given string CO2


is palindromic. Employ this function within a main program to
evaluate multiple strings provided by the user.

You might also like