Chadalawada Ramanamma Engineering College: B. Tech I Year I Semester (R20) Supplementary Examinations, November - 2021

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

CODE: 20CA05101

CHADALAWADA RAMANAMMA ENGINEERING COLLEGE


(AUTONOMOUS)
Chadalawada Nagar, Renigunta Road, Tirupati – 517 506
B. Tech I Year I Semester (R20) Supplementary Examinations, November - 2021
C PROGRAMMING LANGUAGE
(ME, CSE)
Time: 3 hours Max Marks: 70
PART – A
1. Answer any ten questions (10 x 2 = 20 Marks)
(a) Define keyword, constant and variable.
(b) Explain sizeof() with example?
(c) What is an array? Write the types of an array.
(d) What is string constant?
(e) What is #include, #define directives.
(f) What is a function? Write the types of functions.
(g) How do we declare pointer variable?
(h) What is dangling memory problem?
(i) What is a null pointer? What is its use?
(j) Define Structure? How to Initialize a Structure?
(k) What are the Different file operations?
(l) How does an append mode is different from a write mode?
PART - B
Answer all five units (5 x 10 = 50 Marks)

UNIT-I
2. (a) Explain the basic structure of a C program with an example.

(b) Discuss about the following operators in C language with example.


a) Bitwise operators b) Increment and decrement operators c) Logical operators

OR
3. (a) Show how break and continue statements are used in a C program, with example.

(b) Explain switch statement with syntax. Write a Program to perform arithmetic operations
using switch.
UNIT-II
4. (a) Illustrate multidimensional arrays with example program.
(b) Write a C program to implement strcmp() , strcat() , strcpy() and strlen().

Continued in page 2
Page 1 of 2
CODE: 20CA05101
OR
5. (a) Write a C program to count the number of vowels, consonants, digits, spaces and special
characters in a given string.
(b) Write a C program to find the largest element in an array.

UNIT-III
6. (a) What is function? Explain the difference between user defined and library functions.
(b) Explain two categories of argument passing techniques, with examples.
OR
(a) Distinguish between the following:
7.
a) Actual and formal arguments b) Global and local variables
(b) Explain in detail about various storage classes available in C language with examples.

UNIT-IV
8. What is dynamic memory management? Explain different dynamic memory management
functions available in C language.
OR

9. (a) What is pointer? give the advantages and disadvantages of pointer data type.

(b) Write a C program to read and display multiple strings using pointers.

UNIT-V
10. (a) What is a union? For what kind of applications are unions are useful? Explain the unions
with an example.
(b) Write a C program that reads contents of a file and displays then in capital letters if they
are alphabets.
OR

11. (a) What is the need of nested structures? Explain with one example.

(b) List out the differences between unions, structures and arrays.

*****

Page 2 of 2

You might also like