Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

[OCT-17]

[EID-101]
B.Tech. Degree Examination
BT, CSE, ECE, EEE, EIE & IT
I SEMESTER
PROGRAMMING WITH C
(Effective from the admitted batch 2015–16)

Time: 3 Hours Max.Marks: 60


--------------------------------------------------------------------------------------- -------------
Instructions: Each Module carries 12 marks.
Answer all modules choosing one question from each module.
All parts of the module must be answered in one place only.
Figures in the right hand margin indicate marks allotted.
--------------------------------------------------------------------------------------- ------------
MODULE-I
1. a) Draw the flowchart to find the sum of first ten terms of
sinusoidal expression 6
b) What are the salient features of C language? Explain in detail 6
OR
2. a) Write an algorithm for printing five integer numbers in ascending
order 6
b) What are the primary data types in C language? Explain with an
example each 6
MODULE-II
3. a) Explain any four basic types of constants available in C language
with an example each 6
b) Determine the value of the following C expressions: 6
(i) int i, j, k; i = j = k = 1; i -= -j-- - --k; printf(“%d”, i);
(ii) int x = 5, z; float y; x /= y = z = 1 + 1.5;
printf(“%d”, x);
OR
4. a) What are the various control structures available in C language?
Explain 6
b) What is the difference between the Standard I/O and formatted
I/O? Explain 6
MODULE-III
5. a) Compare the do loop and the do-while loop in C language with an
example each 6
b) Consider the following program fragment in C:
int i, j; for(i=1; i<=2; i++) for(j=1; j<=2*i; j++) for( j=1; j<=2*i;
j++) printf(“%d”, j);
How many times the value of ‘j’ is printed? 6
OR
6. a) Consider the array declaration: float a[5]; and the memory
address of a[0] is 4056. What is the memory address of a[3]? 4
b) Write a C program to find the number of vowels, consonants, and
words in the given text 8
MODULE-IV
7. a) Consider the following C function definition:
int what(int a, int b){ return(b = = 0 ? 1 : a < b ? 0 :
what(a – 1, b) + what(a – 1, b – 1)); }
What is the value of the function call what(3, 2)? 6
b) What is a pointer to a pointer? Explain the process of accessing
a variable through its pointer’s pointer’s pointer with an example 6
OR
8. a) What is a storage class? Explain the different storage classes with
an example each 8
b) What is the output of the following C program? 4
main() { static int i = 10; printf("%d\n", i--); if(i) main(); }
MODULE-V
9. a) What are the file processing operations? Explain 6
b) Explain the difference between fscanf() and fprintf() with an
example 6
OR
10. a) What is a self-referential structure? Give an example 5
b) Find the output of the following C program: 7
void main(){union { int i; char ch[2]; }k; k.i = 512;
k.ch[0] = 50; printf(“%d”, k. ch[1]); }

[1,3,4,5,6,7/I S/117]

You might also like