April 2008
Time : Three Hours Maximum : 100 marks
PART-A (10 * 3 =30 marks)
Answer any Ten questions.
All Questions carry equal 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.
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.
Time : Three Hours Maximum : 100 marks
PART-A (10 * 3 =30 marks)
Answer any Ten questions.
All Questions carry equal marks.
- Differentiate between identifiers and keywords.
- Write a note note on Unary operators in C.
- What do you mean by nested control structures? State the rules.
- Differentiate between break and continue statements.
- Write a note on Comma operators.
- Define Prototype.
- Write a note on multifile programs.
- What do you meany by recursion? Write a recursive program to find factorial of a number.
- What are user defined data types?
- Differentiate between structure and union.
- Define the meaning of *a[10] and (*a)[10].
- How will you test the end of file?
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.
- Explain the relational, logical and assignment operators in C.
- Explain any four mathematical library functions in C.
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.