You are on page 1of 1

SHRI SHANKARACHARYA TECHNI CAL CAMPUS, J UNWANI , BHILAI

CLASS TEST I (EI 3rd- Sem.)


Sep. 2013 (Odd Sem.)
Subject: Programming with C
Max. Marks: 40 Min. Marks: 14 Time: 2 Hours
Note: Attempt all questions. Part (a) is compulsory.
Attempt any two out of part (b), (c) or (d) in question 1, 2 & 3.


Q.1. a) Point out errors, if any in the following c statements: 2
i) int=31.56*150; ii) m_i=rate of interest*amount in rs;
iii) 3.14*r*r*h=vol_of_cycle iv) date=9 Mar 13;
b) Write short on hierarchy of development of C. Explain features and characteristics. 6
c) Explain operators precedence and associativity. WAP to convert temp. into centigrade
degrees. Temp. of a city in Fahrenheit is input through the K/B.

d) If a 5-digit no. is i/p through the K/B, WAP to reverse the no. 6
Q2. a) Differentiate break and continue. 2
b) Explain else-if ladder with suitable c program. 6
c) Explain conditional operator to check whether a year i/p through K/B is leap year or not. 6
d) WAP to to find whether any input number is Palindrome or not. 6
Q3. a) Briefly explain switch-case statement. 2
b) Explain While loop. WAP to print all prime nos. b/w 1 and 300. 5
c) Display the value of following series: 5
1! 2! + 3! 4! + 5!
d) Print the following pattern using for loop. 5
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5

You might also like