Você está na página 1de 1

Group – A

For the branches of


(Civil, Chemical, CSE, Information Technology)

ENG 1106: COMPUTER PROGRAMMING USING C & NUMERICAL METHODS


MODEL QUESTION PAPER

Exam : 3 Hrs. Ext. Marks : 70


Answer any FIVE questions.
First Question is compulsory.
Answer any FOUR from the remaining questions.

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

b) Write a program to process employee records by using structures.


7 a) Briefly explain file handling functions.
b) Write a C program to copy the contents of one file to another file.
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

Você também pode gostar