Escolar Documentos
Profissional Documentos
Cultura Documentos
m
All questions carry equal marks.
1 a) Write the precedence rules for arithmetic operators and give example.
o
b) What is keyword? Write any five keywords and explain them.
c) What are the advantages of functions?
.c
d) Distinguish between local and global variables.
e) What is meant by structure within structure? Explain briefly.
f) Explain Bisection method.
u
2 a) Write the general forms of if-else and switch –case statements and compare them.
b) Write a program to compute roots of quadratic equation using switch-case statement.
na
3 a) What are loops? Explain various loop statements with suitable example.
b) Write a C program to find the sum of digits in a given number.
4 a) Explain the following concepts associated with functions:
i) Function declaration
ii) Function definition and
pi
iii) Function call.
b) Explain various parameter passing mechanisms.
5 a) What is a Pointer? How is it initialized? What is the function of a pointer variable? What are
te
its uses?
b) Explain the concept of pointers to structures with suitable example.
6 a) Explain the following
.s
i) Structure
ii) Accessing elements in structure
iii) Arrays of structures
w
8 a) Find the root of the following equation using Newton-Raphson method, correct the
result upto 3 decimal places.
x3- 3x-5=0.
w
b) Evaluate
2
∫ x sin(x) dx using Simpson’s rule.
-2
25