One Stop for all the Old Question Papers of Jammu University.

B.C.A. 1st Semester Examination BS-IS/12 230294 PROBLEM SOLVING USING C-LANGUAGE Course No.: BCA - 102 Time Allowed: 3 hou...

Problem Solving Using C-Language BCA Semester-1st Previous Year Old Question Paper Jammu University, Under Graduation





B.C.A. 1st Semester Examination
BS-IS/12
230294
PROBLEM SOLVING USING C-LANGUAGE
Course No.: BCA - 102
Time Allowed: 3 hours                                                                        Maximum Marks: 80

Note: Attempt total five questions in all, selecting one question from each unit. Q1 is compulsory. Each question carries 16 marks.

1.     a) Explain what is meant by precedence and associativity.

b) Explain with the help of an example what in nesting of loops.

c) Explain four standard library functions used for string manipulation.

d) Discuss how unions are declared and accessed.

UNIT - I
2. Write an algorithm to find the largest element in a list of elements. Also, draw its flowchart.
3. What is an error? Explain the different types of errors? Give example for each one of them.

UNIT - II
4. Discuss the various decision control statements.
5. Differentiate between while loop, Do while loop and for loop.

UNIT - III
6. Write a program in C to sort an array of integers in descending order.
7. Discuss the features of various storage classes in C language.

UNIT - IV
8. Write a program in C to illustrate how two dimensional arrays are accessed using pointers.
9. Write a program in C to read and display an array of structures.