B.C.A (Part I) Examination, 2019
B.C.A (Part I) Examination, 2019
11. Explain the difference between call by value and call by reference with example. (7)
OR
Explain various types of operators with suitable example.
12. What is array? write a program to calculate 2-dimension matrix multiplication. (2+4)
OR
a. What is storage class? (3+3)
b. Differentiate structure and union.
B.C.A (Part I) Examination, 2019
Part – A (compulsory) {Marks : 15}
11.
a. Give the control flow diagram of for loop. How the execution of for loop proceeds?
(4)
b. Write a program to find a factorial of a given integer number using while loop.(3)
OR
Describe about two dimension arrays of strings, initializing the sized and unsized two
dimension arrays and accessing elements in such arrays.(7)
char language[5] [10] = { “Java”, “C++”, “HTML”, “SQL”, “Python”};
12.
a. How are the variables passed to function? Explain. (5)
b. When should be pointer used? What are the reasons? (2)
OR
a. What are text and binary files? Explain (2)
b. Explain the differences between fscanf() and fprintf() functions with an example.(5)
B.C.A (Part I) Examination, 2017
Part – A (compulsory) {Marks : 15}
1. What will be the output of-
x=101;
x= x>>2 << 2;
Print f(“% d”,x);
2. What will be the value of the following expression?
a. ‘A’ + ‘9’
3. Write down the C statement to calculate percentage where three subjects
English, hindi, maths and total are of int type and percentage is of float. Max
marks for each subjects are 100.
4. What will be the output of
int x = 0;
if(x==0)
{
printf(“Hello”);
}
else
{
printf(“Hey”);
}
5. What happens when a variable is declared as register variable but register
memory is not available.
6. Create a Boolean data type in C, which will accept true and false value
a. True = 1
b. False=0
7. Define structure.
8. What is global variable?
9. What do you mean by following statement?
int * x [10];
Part – B (compulsory) {Marks : 15}
15. Explain various types of data types in ‘C’, also explain implicit and explicit type
casting.
16. Write a program to create a mark sheet using structure and explain it.
17. Explain various branching statements with appropriate examples
18. Explain various looping statements with appropriate example
19. Explain multi-dimensional array with appropriate example
20. Explain pointer to structure with appropriate example
Unit III:
1. Define Pointers and its use.
2. What is the use of register variable.
3. Write difference between user-defined and library functions.
4. What is recursion? Explain with example.
5. In the following program where is the variable ‘a’ getting defined and where it is
getting declared? (2014)
int main()
{
extern int a;
printf(“%d\n”, a);
return a;
}
int a = 20;
Unit IV:
1. Write a program in C language to sort the array elements using bubble sort. (2015)
2. Explain array and its types with appropriate syntax and example. (2015)
3. What is the function of pointers in ‘C’ language? (2014)
4. Explain the role of pointers in ‘C’ language. Explain reference variable in context
to a program (2014)
5. What is the meaning of
(2013)
a. Int (*p) [10];
(2013)
6. Write a program to calculate 2D matrix multiplication
7. Write a program to print transpose of matrix.
8. What is an array (2016)
9. Why arithmetic operators are not used with pointers (2016)
10. Explain 1-D and 2-D Array with suitable examples. (2016)
11. Write a program to multiply two 2-D arrays. (2016)
12. Explain pointers and addresses with suitable examples. (2016)
13. Explain pointers to 1-D and 2-D arrays with examples. (2016)
Unit V:
1. What do you mean by user-defined data types? (2015)
2. Write important difference between structure and union. (2016, 2015)
3. What is the difference between calloc() and malloc()? (2014)
4. How will you free the allocated memory? (2014)
5. What is enumerated data type? (2016, 2014)
6. Explain the role of pointers in structures with program and how arithmetic
operations performed on pointers. (2014)
7. Explain typedef with suitable example.(2016, 2013)
8. What is union? Explain (2013)
9. Explain various file handling operations with suitable examples.(2016)