COMPUTER PROGRAMMING WITH C.pdf - Google Drive

3 downloads 90 Views 59KB Size Report
Page 1 of 2. P.T.O.. EJ – 1384. I Semester B.E. Degree Examination, June/July 2015. (2K11/2K6 Scheme). COMPUTER PROGRA
EJ – 1384

*EJ1384*

I Semester B.E. Degree Examination, June/July 2015 (2K11/2K6 Scheme) COMPUTER PROGRAMMING WITH C Time : 3 Hours

Max. Marks : 100

Instruction : Answer any five full questions selecting at least two questions from each Part. PART – A 1. a) Draw the architecture of Von Neumann’s digital computer and explain.

10

b) List i/p and o/p devices and explain.

10

2. a) What are built in data types ? Explain.

6

b) What is type casting explain with an example ?

6

c) Evaluate the expression ((10 * ((5 – 12) ((((2 * 10) – 10)/4) + 20)))).

8

3. a) Use of continue and goto statements increases the program clarity/ambiguity. Justify your answer.

8

b) Explain switch statement with suitable program.

8

c) Differentiate between break and exit statements.

4

4. a) Bring out the idea of parameter passing techniques with an example.

10

b) Write a program to implement binary search using recursive technique.

10

PART – B 5. a) Explain two dimensional arrays with an example.

6

b) How characters and strings are initialized in declaration parts illustrate with an example ?

6

c) Write a program to find string length without using built in function.

8

P.T.O.

*EJ1384*

EJ – 1384 6. a) What is a pointer ? Explain its pros and cons.

7

b) What is meant by dereferencing ? Give an example.

6

c) What is prototype ? How function prototypes are declared show with an example ?

7

7. a) How do you initiative structures during declaration ? Explain with suitable example.

10

b) What is union ? Explain how it is different from structures ?

10

8. a) What are self referential structures ? Illustrate with an example.

6

b) Implement the following function using linked list :

8

i) Create ii) Display. c) Write a note on file streams. _______________________

6

Suggest Documents