0% found this document useful (0 votes)
16 views2 pages

C Programme Module 2 Question

Uploaded by

Mercy Saji
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views2 pages

C Programme Module 2 Question

Uploaded by

Mercy Saji
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Course Code: EST102

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

1. a) Explain arithmetic, logical and bitwise operators with examples. (7marks)


b) Write a C Program to check if a given number is a strong number or not. A strong number is a
number in which the sum of the factorial of the digits is equal to the number itself.

Eg:- 145=1!+4!+5!=1+24+120=145 July 2021(7marks)

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)

5. Write a program for sort the numbers in ascending order (7marks)


6. Write a c program to perform linear search. (7marks)
7. Write a program for sum of digits, reverse and check the given number is palindrome or not.
(7marks)
8. Explain formatted and unformatted input/output statements. (7marks)
9. Write a program to check whether the given no is palindrome or not (7marks)
10. a) Explain different data types supported by C language with their memory requirements.

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.

June 2022 (7marks)

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.

June 2022 (7marks)

You might also like