C-Unit 1 Question Paper
C-Unit 1 Question Paper
no:
Course Code/Name: CS3251/PROGRAMMING IN C Marks: 50 Course Code/Name: CS3251/PROGRAMMING IN C Marks: 50
PART – A PART – A
ANSWER ALL THE QUESTIONS (05X02 = 10marks) ANSWER ALL THE QUESTIONS (05X02 = 10marks)
1. Write a short notes on keywords in C language. 1. Write a short notes on keywords in C language.
2. What are the types of variables? 2. What are the types of variables?
3. What is the use of preprocessor directive? 3. What is the use of preprocessor directive?
4. Difference between while and do-while looping statements? 4. Difference between while and do-while looping statements?
5. What are the two ways to define constants in C? 5. What are the two ways to define constants in C?
(OR) (OR)
b).Enumerate the difference between ‘else-if-ladder’ and ‘switch-case’ b).Enumerate the difference between ‘else-if-ladder’ and ‘switch-case’
statements with appropriate C program. statements with appropriate C program.
7. a) Explain the looping statements in C with suitable examples. 7. a) Explain the looping statements in C with suitable examples.
(OR) (OR)
b) Draw the structure of C program and explain each part in detail. b) Draw the structure of C program and explain each part in detail.
PART-C PART-C
ANSWER ALL THE QUESTIONS ( 1*14 = 14 Marks) ANSWER ALL THE QUESTIONS ( 1*14 = 14 Marks)
8. Explain the various types of operators with simple C program. 8. Explain the various types of operators with simple C program.