Sei sulla pagina 1di 4

OR

6. a) How a 2-D array can be accessed through a pointer? Explain? 6


b) Write a program to illustrate the usage of realloc() Function? 6
UNIT-IV
7. a) Explain bit field operators with an example? 6
b) Write a program to illustrate the usage of pointers to structures? 6
OR
8. a) Write a C program using nested structures to store the details
of students? 6
b) Differentiate between unions and structures? 6
UNIT-V
9. a) Explain about formatted I/O with syntax and examples? 6
b) How errors are handled explain with examples? 6
OR
10. a) Differentiate between text files and binary files? 6
b) Write a C program to append the contents into an existing
file? 6

[1,2,3,4,5,6,7,8,9/I S/112]
[Nov-12]
[EURCS-105B]
B.Tech. Degree Examination
I SEMESTER
PROGRAMMING WITH C
(Effective from the admitted batch 2012-13)
(Common for all branches)
Time: 3 Hours Max.Marks: 60
--------------------------------------------------------------------------------------- -------------
Instructions: Each Unit carries 12 marks.
Answer all units choosing one question from each unit.
All parts of the unit must be answered in one place only.
Figures in the right hand margin indicate marks allotted.
--------------------------------------------------------------------------------------- ------------
UNIT-I
1. a) Define Algorithm and flow chat? 6
b) Write an algorithm and flow chat to find the average of ‘n’
numbers? 6
OR
2. What are the different data types available in ‘C’? Explain them
with an example? 12
UNIT-II
3. a) How static variables are used in recursive functions? Explain
with examples? 6
b) Explain different parameter passing mechanisms? 6
OR
4. Write a program to find generates Fibonacci primes? 12
UNIT-III
5. a) What are the different ways of passing array as parameter to
function? Explain? 6
b) Can array be return type for a function? 6
OR
6. a) How a 2-D array can be accessed through a pointer? Explain? 6
b) Write a program to illustrate the usage of realloc() Function? 6
UNIT-IV
7. a) Explain bit field operators with an example? 6
b) Write a program to illustrate the usage of pointers to structures? 6
OR
8. a) Write a C program using nested structures to store the details
of students? 6
b) Differentiate between unions and structures? 6
UNIT-V
9. a) Explain about formatted I/O with syntax and examples? 6
b) How errors are handled explain with examples? 6
OR
10. a) Differentiate between text files and binary files? 6
b) Write a C program to append the contents into an existing
file? 6

[1,2,3,4,5,6,7,8,9/I S/112]
[Nov-12]
[EURCS-105B]
B.Tech. Degree Examination
I SEMESTER
PROGRAMMING WITH C
(Effective from the admitted batch 2012-13)
(Common for all branches)
Time: 3 Hours Max.Marks: 60
----------------------------------------------------------------------------------------------------
Instructions: Each Unit carries 12 marks.
Answer all units choosing one question from each unit.
All parts of the unit must be answered in one place only.
Figures in the right hand margin indicate marks allotted.
--------------------------------------------------------------------------------------- ------------
UNIT-I
1. a) Define Algorithm and flow chat? 6
b) Write an algorithm and flow chat to find the average of ‘n’
numbers? 6
OR
2. What are the different data types available in ‘C’? Explain them
with an example? 12
UNIT-II
3. a) How static variables are used in recursive functions? Explain
with examples? 6
b) Explain different parameter passing mechanisms? 6
OR
4. Write a program to find generates Fibonacci primes? 12
UNIT-III
5. a) What are the different ways of passing array as parameter to
function? Explain? 6
b) Can array be return type for a function? 6

Potrebbero piacerti anche