0% found this document useful (0 votes)
2 views10 pages

B.C.A (Part I) Examination, 2019

The document contains examination questions for B.C.A (Part I) from various years, covering topics such as arrays, pointers, recursion, data types, and file handling in C programming. It includes both theoretical questions and practical programming tasks. The questions are divided into three parts, with varying marks assigned to each section.

Uploaded by

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

B.C.A (Part I) Examination, 2019

The document contains examination questions for B.C.A (Part I) from various years, covering topics such as arrays, pointers, recursion, data types, and file handling in C programming. It includes both theoretical questions and practical programming tasks. The questions are divided into three parts, with varying marks assigned to each section.

Uploaded by

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

B.C.

A (Part I) Examination, 2019


Part – A (compulsory) {Marks : 15}

1. How do you reference all the elements in a 1-dimensional array?


2. What is the meaning of asterisk(*) symbol as pointer?
3. In the following program where is the variable Num is getting defined and where it
is getting declared.
int Num;
void main()
{
Num=100;
printf("%d \n",Num);
getch();
}
4. Define use of getch() in a program.
5. What do you mean by user define data types?
6. Define ternary operator.
7. What do you understand by enum?
Part – B (compulsory) {Marks : 15}

8. Explain recursion with suitable example.


9. Write a program to print Fibonacci Series.
10. Explain following with suitable example-
a. strlen()
b. strcpy()
Part – C {Marks : 20}

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}

1. What do you mean by C – pre-processors?


2. What is the difference between iterative and recursive execution?
3. Explain about extern keyword with an example.
4. Define Macro with an example
5. Give the use of break and continue with an example
6. What is the difference between malloc () and calloc()?

Part – B (compulsory) {Marks : 15}

7. C is a structured Programming language? Justify.


8. Which of the following expressions are valid? Give reason:
1) +a+b;
2) a++--b;
3) a % 10 / - b;
9. Give the usage of typedef in structure.
10. What is a file pointer?
Part – C {Marks : 20}

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}

10. Explain extern variable with an example


11. Write a program in C to print factorial of given number.
12. Write a program in C to swap two variables without using temporary variable.
13. Explain logical operators with examples
14. What do you mean by function prototype? Explain it with an example.

Part – C {Marks : 20}

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

B.C.A (Part I) Examination, 2013- 2016


1. What is variable in C Language (2015)
2. What is the use of getch() in C Program? (2015)
3. What is pre-processor directives? (2015)
4. Define unary operators in C Language. (2015)
5. Write a program in C Language to calculate area of triangle. (2015)
6. Explain all C tokens. (2015,2014)
7. Explain the different data types used in C Language. (2015)
8. By default real no. is treated as a: (2014)
a. float
b. long double
c. double
d. far double
9. Write the correct order of evaluation for the below expression(2014)
Z=x+y*Z/4%2–1
10. What is bitwise operator? (2014)
11. Arrange the following operators in ascending order according to their precedence
(2013)
a. && 3
b. || 4
c. ! 1
d. ? : 5
e. & (bitwise and ) 2
12. (2016, 2013)
a. Explain various types of operators with suitable example.
b. Compare various operators according to their precedence and also explain
their associativity.

13. What is the range of float data type. (2016)


14. What is the use of type-casting (2016)
15. Which operators are not used with literals (2016)
16. What is difference between constants and literals (2016)
UNIT II
1. Write the output for the following code: (2015)
void main()
{
int a;
b = a++ + a;
}
2. Explain the use of switch case. (2015)
3. What is the difference between goto, break and continue, specify with example.
(2015, 2014)
4. Describe the various loop control structures. (2015)
5. Write a C Program to check the string is palindrome or not without using string
function.(2015)
6. Write a program to print Fibonacci series.(2014)
7. What will be the output of the following code:(2013)
int x = 40000;
printf(“%d”, x);
8. What will be the output of the following code: (2013)
for (i = 1, j = 10; i < 6 ; ++i, j--)
{
Printf(“%d %d”, i, j);
}
9. Find errors ( if any) and remove them otherwise give output of the
following(2013)
char c = ‘A’;
int x = 10, y;
Y = x + c; Y is not defined -> y=x+c;
putchar (y);
10. Find errors and remove them (if any) otherwise give output of the following
(2013)
printf (“%d”, ++5);
11. Find errors and remove them ( if any) otherwise give output of the following
(2013)
Printf [“%d”, sizeof(“”)];
12. What will be the output of the following (2013)
Int x = 10, y = 20;
( x ? y ) ? ++x : ++y
Printf(“\n x = %d, y = %d”, x, y);
13. Write a program in C to find LCM of two numbers. (2013)
14. What is the difference between while and do while loop. (2016).
What is the output of the following program (2016)
int x = 10;
printf(“%d”, x << 2);
15. Write a program to print reverse of given number (2016)

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;

10. What is macro in ‘C’ language? (2014)


11. What is the difference between call by value and call by reference? (2014)
12. What are storage classes? Explain in detail with examples. (2014)
13. What is recursion? What is the utility of recursions in ‘C’ language? Write a
program to find out greatest common divisor of two given numbers using recursion.
(2016, 2014)
14. What is top down approach? Explain different methods of parsing arguments in
functions. Also explain different types of functions used in ‘C’ language. (2014)
15. Explain following with suitable example: (2014)
strcpy()
strcat()
strlen()
strcmp()
16. Char * name = “M.D.S. University”; then what will be the value of *( name + 18)
and what will be the output if we write printf(“%s”, name+ 8); (2013)
17. Write short notes on the following with suitable example. (2013)
auto
extern
static
register

18. Explain auto and static storage class of variable (2016)


19. Explain functions and their types with their suitable examples. (2016)

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)

You might also like