[Nov-15] b) Write a program to check whether the given string is palindrome
[EID-101] or not 6
B.Tech. Degree Examination OR
6. a) Write a program to print the following pattern: 6
BT, CSE, ECE, EIE, EEE & IT
*
I SEMESTER * * *
* * * * *
PROGRAMMING WITH C * * * * * * *
(Effective from the admitted batch 2015–16)
Time: 3 Hours Max.Marks: 60 b) Discuss about the declaration and initialization of
---------------------------------------------------------------------------------------------------- 2-Dimentional array in C language 6
Instructions: Each Module carries 12 marks.
Answer all modules choosing one question from each module. MODULE -IV
All parts of the module must be answered in one place only. 7. a) Write short notes on storage classes 6
Figures in the right hand margin indicate marks allotted.
--------------------------------------------------------------------------------------------------- b) What is a void pointer? Explain with an example 6
MODULE-I OR
1. a) What is the difference between an algorithm and a flow chart? 8. a) Differentiate between call by value and call by reference using
Explain with an example 6 suitable examples 6
b) Write a short note on basic data types that the C-language b) Explain the term ‘Dynamic memory allocation’. Specify the
supports 6 functions used for dynamic memory allocation along with
OR suitable examples 6
MODULE -V
2. a) Give the structure of a C-program along with example 6
b) Why are compilers and interpreters used? 6 9. a) Explain the utility of “type def” keyword in structures 6
b) Write a short note on functions that are used to:
MODULE -II i) Read data from a file ii) Write data to a file 6
3. a) Write a short note on Operators available in C-language 6 OR
b) Write a program to print the reverse of a number 6
10. a) Write a short note on “structure versus union” 6
OR b) What is file? Explain the terms file pointer and EOF with
4. a) Write a C program to read a floating point number. Display suitable examples 6
the rightmost digit of the integral part of the number 6
[1,3,4,5,6,7/I S/115]
b) Explain the importance of a switch case statement. In which
situations is a switch case desirable? Also give its limitations 6
MODULE -III
5. a) Write a short note on iterative statements that C language
supports 6