Answer All Questions. Each Question Carries Marks of 1: Part A
Answer All Questions. Each Question Carries Marks of 1: Part A
PART C
Answer any four questions .Each question carries marks of 5.
17.Write conditional operater to evaluate following
Y=2.4x+3 for x<=2
Y=3x-5 for x>2
18.Output the number x=56.1624 under the following format specification
Printf(%7.2f,x)
Printf(%f,x)
Printf(%8.2e,x)
Printf(%e,x)
19. What is top down design write down the steps to break down a problem into sub problems.
20. Write a program to test if a character from keyboard is lower case letter.
21. Explain the following statements
i.getchar()
ii.putchar()
22. Defie the following
i.auto variable
ii.static variable
iii.External variable iv. Register variable
(4x5=20)
PART D
Answer any one question. Each question carries marks of 10.
23. Describe simple if statement, if.else statement with flow chart
Write a C program to check whether an integer entered by the user is odd or even.
Program to display if enter a negative number.
24. What are C tokens? Explain each with examples.
(1x10=10)