Programming in C Previous Year Question Paper 2012 | HNBGU BCA First semester

Programming in C

HNBGU BCA Previous Question Paper 2012-13

    1. Write and explain the various data types in C with examples in brief.

    2. What do you understand by syntax error, execution error and logical error? How do the execution errors differ from logical error?

    1. Write a C programme to print the series 1,2,3,4, .... using recursion function.

    2. What is function? Differentiate between function and library function.

    1. Write down the C program to find the largest number in the array using pointer.

    2. Write a C program to multiply two matrix.

    1. What do you mean by structure in C? Explain it by suitable example.

    2. Explain the following with example:
           • Pointer to function
           • Pointer to pointer

    1. Explain the various operations used for handling the file with example.

    2. Differentiate between the following:
           • Call by value and call by reference
           • Structure and union

    1. Write the various functions for handling the string in C

    2. Write down a C program to find number of characters in a line.

  1. Write short notes on any four of the following:

    1. Storage classes in C
    2. Various operations used in C
    3. Structure of C programme
    4. Calloc() and Malloc() function with examples
    5. Multidimensional arrays
    6. Decision making statement