ADVERTISEMENT
ADVERTISEMENT

Old Question Paper:  BCA-I , Semester - I

Punjabi University Patiala

Year :  December- 2022

Note: Attemp any two questions each from Section-A and Section-B, carrying 10 marks each. Entire Section C is compulsory, carrying 3 marks each.

SECTION-A

  1.  a) Discuss the various phases of Problem Solving Process. (5)

            b) Elaborate the Structure of C-Program. (5)

       2.  Explain the various Data Types. Also specify their range and memory requirement. (10)

       3. Explain the differences:

            a) While and do-while (2.5)

            b) Break and Continue (2.5)

           c) if and If-else (2.5)

           d) Switch case and Nested If (2.5)

       4. How can you declare and User defined functions. What are he various methods of passing parameter to a function with the help of a program. (10)

SECTION-B

      5. How are the elements of two dimensional array accessed. Write a program to calculate the largest and smallest element of eveery row of a matrix. (10)

      6. Program to print all prime numbers between 2 and n. (10)

      7. Explain the Followings:

          a) Differentiate Structure and Union (5)

          b) String Handling Functions (5)

     8. How do you initialize and declare Pointer? What operations can be performed on Pointers. Also how can you access Array elements using Pointers. (10)

SECTION-C

     9.  Write Short notes on the following questions:  (3x10=30)

  • Discuss the relevance of header files in C-Programming.
  • Differentiate identifier and Keywords
  • Why C is called the case sensitive language?
  • Differentiate Array and Structure
  • Differentiate Assignment Operator and Equality Operator.
  • What is function prototype?
  • Can we use two variable with the same name in a program. If yes,Explain how,if No, then justify your statement
  • Differentiate text and Binary Files
  • What do you mean be lifetime and scope of a variable?
  • Hoe character strings are processed

   


ADVERTISEMENT

ADVERTISEMENT