Karnataka State Open University (KSOU) 2010 B.C.A Computer Application Programming in C - Question Paper
Illlllllllllll BCA - 13
I Semester B.C.A. Examination, Feb./March 2010 PROGRAMMING IN C
Time: 3 Hours Max. Marks: 80
Instructions : 1) Answer all questions in Part A, 6 out of 8 questions in Part B, and 3 out of 5 questions in Part C.
2) Part A: Questions from 1 to 8 carry 1 mark and 9 to 14 carry 2 marks each.
3) Part B: Each question carries 5 marks.
4) Part C: Each question carries 10 marks.
PART - A
1. main()
{ int a = 30, b = 40, x;
X = (a!=10) && (b!=30);
Printf(%d,x);
The output of this code is__.
2. Default return type in C is___.
3 ._______invented C language.
4. Magnetic disks are__type of devices.
5. _is a device that connects two LANs.
6. Format specifier for inputing real number is__.
7. A for loop with no test condition is known as__loop.
8 .__is the example of a scalar data type.
9. What is an array ? Mention different types of array.
10. What is Field Width Specification?
11. Write a note on input devices.
12. Write the syntax for the conditional operator in C.
13. A C program contains the following declaration Int i,j ;
Char c;
Float x;
Short s;
Determine the data type of i) x + c ii) s + j.
14. What is the output of the following C statement ?
X = 3 , y = 5;
Y = +x-y;
Y = ++y;
Printf(%d,y);
PART - B
1. List four storage classes available in C and explain.
2. Write a C code to find the roots of a quadratic equation.
3. Write a C code to convert decimal value to octal.
4. Write a C code to sort an array by using Bubble sort technique.
5. Write a flow chart to compute the factorial of a given number.
6. Briefly explain the different character sets in C language.
7. Explain any two bitwise operators with an example.
8. With a C program explain the use of break statement.
PART - C
1. Write a C program to multiply two matrices.
2. Write a C program to find GCD and LCM by using functions.
3. Explain different types of Arithmetic operators with an example.
4. Write a program using pointers to compute the Sum of all elements stored in an array.
5. Explain the difference between actual and formal parameter with an example.
Attachment: |
Earning: Approval pending. |