0% found this document useful (0 votes)
59 views

IT1 2017 Structured Programming

HNDIT Structured Programing Past Papers ( 2017)

Uploaded by

Pathum Tharaka
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
59 views

IT1 2017 Structured Programming

HNDIT Structured Programing Past Papers ( 2017)

Uploaded by

Pathum Tharaka
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 4
sta Rem © suare _| SRILANKA INSTITUTE OF ADVANCED TECHNOLOGICAL EDUCATION IGenbtosnte nny ager anon vont 20 Higher National Diploma in Information Technology First Year, First Semester Examination ~ 2017 HINDIT 1103 - Structured Programming Irsteutions for Candidates: No.of questions 06 Anster five (08) questions only No.of pages 04 Time 03 Hours Question ot 1. Define the terms flow chart end pseudo code (2 marks) Draw symbols sod inflow chart to indsat the followings (G marks} 2) Input ») Process «) Decision IL, Evaluate the folowing expressions. (émarts) 2) int xed B) iacx(4r7y5 8) ius 8) im 3% 1V, Write down wheter the following statements are Tee or Fla, (smarks) 2) The iosteam header fl is sell when your program needs to receiv key inpt and prin text om the sece. by Each C+ program may have many main functions «) The cin>> input statement i edt receive dala from keyboard 9) A commentin C= fanguage sans wih *) and ends with ©) Cos case sense ¥._ Draw a law chart to inpu average marks and find the grade according tothe grade s)sem aiven bow (marks) 5-100 6.4 oe 55268 se ost oO. OF ‘Question 02 . Why main funtion special in C++? @ marks) IL Puta tick mark (7) against the identifiers which can he used for ring variables, constant functions in 8 CH progr Gas) 8) repeat » or ) Number? 4) 2adName 9) Amon 9) COUNTER 2 1, What (ype of eror Gyniay, runtime oF loyal ean be oeeumed in the fllowing statements? marks) a) einen, ') remainder = ab; e) ens @) tat WW. Declare variable and assign he fllowing data values for each, (6 marks) 3) 87988 baat 97 4) 6.897865 ) “SUIATE™ V. Wriea C+ program to output the volume and aea oF pore fr the input radius ofthe sphere, Clearly declare cosiants and varsbes in you pogram (Gras) (int: Volume ofa sphere=4/3 x=, Area fa sphere= dae where rs radius here 3-227) Question 03 I. Wee the sytaes fori” statement and switch statment mats IL sswich case asta thn “lei? Explain our ave Gimus) UL Rewrite the following C+ sole segment afer romoving the spay eres GH a). Undine each comes and wie eons a emmen ‘imacks) claret! ‘oil

You might also like