Computer Programming And Problem Solving Through "C - Question Paper of BCA 1st Year April 2012 - Panjab University

Panjab University Chandigarh
Computer Programming And Problem Solving Through "C"


Paper : BCA 1st Year
Time : 3 Hrs.
M.Marks : 90

Note : Attempt five questions in all. select one question each from Sections A-D. section E is compulsory.

Section - A

1. Explain the various symbols used for making flowcharts. Write a flowchart to find the largest of three numbers.                                                                                                                           18

2. (a) Explain the bitwise operators with the help of suitable examples.                                       9
(b) Describe the different format specifier to scanf() with the help of suitable example.            9

Section - B

3. Discuss the various control statements available in C with the help of suitable example.   18

4. (a) Differentiate between function prototype, function definition and function call with the help of suitable example. 9
(b) Write a program in C to compute the factorial of a given number.                                     9

Section - C

5. (a) Explain the concept of pre-processor directives in detail.                                               9
(b) Write a program in C to check whether a matrix is singular or not.                                    9

6. (a) What is meant by a pointer ? Discuss the various advantages of using pointers through suitable examples.                                                                                                                                9
(b) Explain the following operations on pointers:
(i) Subtraction of two pointers
(ii) Addition of a number to pointer variable
(iii) Subtraction of a number from a pointer variable                                                                9

Section - D

7. (a) Mention the difference between the operator of fwrite() and fprint() in C.                   9
(b) What are the three steps that are followed while accessing a file ?                                   6
(c) Differentiate between a binary file and a text file.                                                             3

8. Explain the following with the help of suitable example:
(i) Array of structure
(ii) Union
(iii) Streat                                                                                                                                 3*6=18

Section - E

9. Write a short note on the following :
(i) Algorithm
(ii) Macro
(iii) Program debugging
(iv) Conditional operators
(v) Header Files
(vi) Global variables                                                                                                                6*3=18

Post a Comment

Previous Post Next Post