C Programming Language
  • Home
  • C Fundamentals
    • C Character Set
    • Tokens>
      • Keywords
      • Identifiers
      • Constants>
        • Definition and Its types
        • Numeric Constants>
          • Integer Constants
          • Real Constants
        • Character Constants
        • String Constants
        • Backslash Character
      • Operators>
        • Definition and Its types
        • Arithmetic
        • Relational
        • Logical
        • Increment
        • Decrement
        • Assignment
        • Arithmetic Assignment
        • Conditional
        • Bitwise
        • Special Operators
        • Hierarchy
    • Data Types>
      • Primary (Or) Basic
      • User-Defined
      • Derived
    • Variable>
      • Definition
      • Declaration
      • Initialization
  • Control Structures
    • Decision-Control>
      • If Statement>
        • Simple-if Statement
        • if-else Statement
        • Nested-if Statement
        • if-else ladder Statement
      • Switch Statement
    • Loop Control>
      • For
      • While
      • Do-While
  • Arrays
    • Introduction
    • Single-Dimensional>
      • Definition
      • Declaration
      • Initialization
    • Two-Dimensional>
      • Definition
      • Declaration
      • Initialization
    • Multi-Dimensional>
      • Definition
      • Declaration
      • Initialization
  • Functions
    • Definition
    • Standard Library Character Functions
    • Standard Library String Functions
    • Storage Classes>
      • Definition
      • Automatic
      • Register
      • Static
      • External
  • Pointers
  • Files
    • Concepts
    • Data Files and its Categories
    • Standard Files and its Categories
  • University Questions
    • April 2001 To 2005
    • April 2006 To 2010
    • April 2011 To 2015
    • November 2001 To 2005
    • November 2006 To 2010
    • November 2011 To 2015

                                                           November 2005

Time: Three hours                                                                                                Maximum: 100 marks

                                                                 PART-A (10 * 3 = 30 marks)
                                                                Answer any TEN questions.
                                                          All questions carry equal marks.
                                              Each answer should not exceed 50 words.

  1. List down the differences between Break and Continue statement.
  2. List down the different operators available in C.
  3. Define register variable.
  4. What do you mean by preprocessor?
  5. What is the meaning of ‘&’ operator? Along with which variable it may be used?
  6. What is meant by multi-dimensional array?
  7. Explain the term void function.
  8. Give the syntax of union.
  9. Explain any two standard mathematical functions.
  10. List down the different I/O operations on files.
  11. What is stack?
  12. How can labeled data items generated by the printf functions?

                                                                 PART-B (5 * 6 = 30 marks)
                                                               Answer any FIVE questions.
                                                         All questions carry equal marks.
                                              Each answer should not exceed 200 words.

13.    Develop a C program to find the smallest and second smallest from a set of numbers.
14.   Write the difference between while and for statement.
15.   Write a program in C to multiply two matrices A and B the resultant matrix in C.
16.   Write a function using pointers to exchange the values stored in two locations in the memory.
17.   Write a program to read a line of text containing a series of words from the terminal.
18.   Discuss the uses and limitations of a function getc and putc. Distinguish the following concepts:                   
                        a)    getch and getchar
                  b)    printf and fprintf
                  c)    feof and ferror

19.    Write a C program to read 100 numbers into an array and compute the mean of only the seven numbers.


                                                                  PART-C (4 * 10 = 40 marks)
                                                               Answer any FOUR questions.
                                                         All questions carry equal marks.
                                              Each answer should not exceed 500 words.

20.  Write the different types of IF structure available in C.
21.  Summarize several types of commonly used linked data structures. Write a C program to create and maintain a singly linked list.
22.  An n-order polynomial can be evaluated as follows:    P= (… (a0X + a1)X +a2) X+…an. Write a function to evaluate the polynomial using an array variable n.
23.  Using pointers write a function that receives a character string and a character as argument and delete all occurrences of this character in
        the string. This function should return the corrected string with holes.
24.  What is meant by Nested structure and Array of structure? Explain it with example.
25.  Write a C program to compute the real and complex roots of a quadratic equation ax2 + bx + c=0.
Powered by Create your own unique website with customizable templates.