C Programme Module 2 Question
C Programme Module 2 Question
PROGRAMMING IN C
MODULE-2
Part A
1. What is the difference between assignment and equality operators? July 2021(3marks)
2. What is a static variable? When should it be used? July 2021(3marks)
3. What is the importance of precedence and associativity? Write the table for operator precedence.
July 2021(3marks)
4. Differentiate between ‘break’ and ‘continue’ statements. July 2021(3marks)
5. Differentiate between while and do-while loops using an example. June 2022(3marks)
6. Why is the use of goto statement discouraged in C programs? June 2022(3marks)
Part B
OR
2. a) Write C program to convert the given decimal number into binary number. (7marks)
b) What do you mean by Formatted Input? Explain in detail the prototype of ‘scanf()’ function in C
including its argument list and return type. July 2021(7marks)
3. a) Explain different data types supported by C language with their memory requirements.
(7marks)
b) Write a C program to check if a number is present in a given list of numbers. If present, give
location of the number otherwise insert the number in the list at the end.
July 2021(7marks)
OR
4. a) Write a C program to find the Sum of first and last digit of a number. (7marks)
b) What is type casting? Name the inbuilt typecasting functions available in C language. What is the
difference between type casting and type conversion? July 2021(7marks)
https://wa.me/+917994352111
(7marks)
b) Write down a C program to check if a number is present in a given list of numbers. If present give
location of the number otherwise insert the number in the list at the end.
OR
11. a) Explain formatted and Unformatted I/O functions of C language with syntax and example.
(7marks)
b) Write a C program to read a character from the user and check whether it is a vowel or consonant.