Model Question I

Model Question Paper-I

Part A

  1. Define term identifier.
  2. What is meant by header file?
  3. What is meant by looping?
  4. State any two difference between Do-while statement and while statement.
  5. What is meant by a string?
  6. State any two difference between structure and union. 
  7. What is called macro substitution?
  8. State the difference between getc and putc function.
  9. Define inheritance.
  10. Define object.

    Part B
  11. State various  functions available in math.h header file.
  12. Discuss the syntax of while statement and do – while statement.
  13. What are the various application of structures and unions?
  14. Differentiate between the content of variable and address of a variable.
  15. Explain the term polymorphism and class.

     Part C
16.(a) Explain the use of printf() and scanf() function with example
                       (or)
 (b) Write a program in “c” to solve a quadratic equation.

17.(a) Write down the syntax of while and do… while statement and explain. Write example.
                      (or)
(b)With suitable examples explain how one dimensional and two dimensional arrays  declared and initialized.
18.(a) What are the different ways of passing arguments to a function?  Explain  with suitable  examples. 
                      (or)
(b) With the help of a suitable example explain structure within a structure.

19.(a) Write a function named swap to interchange the values stored in two locations.
                     (or)
(b) Explain how an array of storage is handled using pointers.

20.(a) Explain the characteristics of object oriented programming.
                  (or)
(b) Explain input/output operations on files.

Share |