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

                                              April 2008

Time : Three Hours                                                                            Maximum : 100 marks
                                                        PART-A (10 * 3 =30 marks)
                                                       Answer any Ten questions.
                                                  All Questions carry equal marks.
  1. Differentiate between identifiers and keywords.
  2. Write a note note on Unary operators in C.
  3. What do you mean by nested control structures? State the rules.
  4. Differentiate between break and continue statements.
  5. Write a note on Comma operators.
  6. Define Prototype.
  7. Write a note on multifile programs.
  8. What do you meany by recursion? Write a recursive program to find factorial of a number.
  9. What are user defined data types?
  10. Differentiate between structure and union.
  11. Define the meaning of *a[10] and (*a)[10].
  12. How will you test the end of file?
                                            PART-B (5 * 6 = 30 marks)
                                 Answer any FIVE questions.

All questions carry equal marks.

Write a program to find the maximum of three numbers using conditional operator.

Explain the switch structure with an example.

Write a program to find the standard deviation of a set of numbers.

Explain the general structure of a function.

Explain the methods to pass arguments.

Explain the bitwise operators.

How to pass pointers to functions? Explain with an example.

PART-C (4 * 10 = 40 marks)

Answer any FOUR questions.

All questions carry equal marks.

  1. Explain the relational, logical and assignment operators in C.
  2. Explain any four mathematical library functions in C.
There are n students in a co-education class. For each student the sex code (1 for male and 2 for female) and height are available. Write a program to find the average male height and the average female height.

Discuss the storage classes.

Write a program to evaluate ncr using a recursive function to find n! where

                     n!

ncr =    --------------

                 r! (n-r)!

Write a program to multiply two matrices of order m*n and n*l.

Write a program to create a sequential data file called NUMBER.DAT with a set of integer numbers. Write another program to read numbers from the created file and create two other files namely ODD.DAT and EVEN.DAT with odd numbers and even numbers respectively.

Powered by Create your own unique website with customizable templates.