Programming in C (BCA) Questions

Section A

Multiple Choice Questions (3 Marks each)

  1. Find a correct C Keyword below.
    a) Work
    c) constant
    d) case
  1. What is the minimum number of functions to be present in a C Program.?
    a) 1
    b) 2
    c) 4
    d) 3
  1. How many characters can a string hold when declared as follows?
    char name[20]:
    a) 10
    b) 12
    c) 20
    d) None
  1. The global variables are __.
    a) External
    b) Internal
    c) Both Internal and external
    d) None
  1. The address of a variable can be obtained using _ operator.
    a) &
    b) %
    c) *
    d) =
  1. while loop is :
    a) entry control loop
    b) exit control loop
    c) universal control loop
    d) All
  1. process by which a function calls itself repeatedly
    a) Sub program
    b) sub function
    c) Module
    d) Recursion
  1. Which one of the following is a loop construct that will always be executed once?
    a) for
    b) while
    c) do while
  1. What is the size of a C structure.?
    a) C structure is always 128 bytes.
    b) Size of C structure is the total bytes of all elements of structure.
    c) Size of C structure is the size of largest element.
    d) None
  1. What is the keyword used to declare a C file pointer.?
    a) file
    b) FILE
    c) FILEFP
    d) Filefp

Section B

SHORT ANSWERS (5 Marks each)

  1. Discuss the important features of C language.
  2. What is type casting? Explain it with suitable example.
  3. Write a short note on linked list.
  4. Explain sizeof() with example?
  5. What is the structure and what are the uses of it.
  6. Explain pre-processor directive.

Section C

LONG ANSWERS (10 Marks each)

  1. Discuss the following
    a) break b) continue c) go to d) label e) conditional operators
  2. Explain various storage classes with example.
  3. Explain any five preprocessor directives in C.
  4. What is a pointer? Write a C program to swap values of two variables using pointer.

Leave a Comment