You are on page 1of 3
WO6 : 2 FN: AN203/AD303 (1403) (COMPUTING AND INFORMATICS Time : Three hours Maximum marks : 109 “Answer ave questions, taking sx Two from Group A sowrwo from GroupB and aut from GroupC. ‘All patts of 2 question (a, b, etc) should be answered at one place. “Answer should be brief end to-the-point and be supple- ‘mented with neat sketches. Unnecessary longanswers ‘may result in Joss of marks. “Any missing or wrong deta may be assumed suitably giving proper justification. ‘Figures on the right trad side margin indicate fall marks. Group A (a) Write a C function to take as arguments three real ‘numbers and return true if sum of any two numbers supplied as arguments is greater than the third. Use thefunctionina program to testifthreenumbersread from the keyboard form the sides of a valid triangle. Ore (6) Principal amount P invested for 2 years returns an amount A given by A=P(14 1/100)" where ris the percent rate of interest. Write program to display the amount to be received when Rs, 5000 is invested for 2, 3, 4 and 5 years at rate of interest of 10% 8 (Tien Over) (c) Explain the following C statement: H=(a>4)? 5:6; Said 2. (a) What is data hiding in a program? How is it implemented inC!*? 10 (8) The following program defines 2 class rectangle to store length and breadth of a rectangle: Class Rectangle { private: float length float bicadth public: Rectangle () () ois Rectangle (float , float b) { Jength=1; breadit J void show data ( ) { ‘cout «length =""

You might also like