13 Problem Solving Techniques Using C - April May 2021 (F+ R CBCS Y2K14)
13 Problem Solving Techniques Using C - April May 2021 (F+ R CBCS Y2K14)
t3
I Semester B.C.A. Examination, April/tVlay 2021
(CBCS) (Y2K14 Scheme) (F + R)
COMPUTER SCIENCE
BCA 103T : Problem Solving Techniques Using C
Time : 3 Hours Max. Marks:70
lnstruetions : 1) Answer all Sections.
2) Section -* A : Answer any ten questions.
3) Section B : Answer any five questions.
SECTION _ A
Answer any ten questions : (10x2=20)
1. "c programming is a middle level language". Justify the statement.
2. what do you mean by Reserved words in c ? Give a few exampres.
3. What is identifier ? Give example.
4. What will be the output of following code :
# include <stdio.h>
void main( )
{
int a='10, b=20, c=30;
(a>b && c++) ? a++ : c ;
printf("%d o/"dohd", a, b, c);
7. What is an array ? How one dimensional array can be declared and initialized ?
srciroN - a
16. a) Discuss about getchar( ), getch( ) and getche( ). Which among these three
you would prefer to use while taking password as input and why ? 7
b) Explain the use of break statement in a C program. 3
18. a) What is dynamic' memory allocation and how is it different from static
memory allocation ? 4
b) Explain the differences between call by value and call by reference. Give
exarnple to justify the differences. 6
20. a) How are array of structure created and initialized ? lllustrate with an
example.
b) Explain with a suitable example the use of argv and argc as arguments to
main function.