Вы находитесь на странице: 1из 7
CONFIDENTIAL csiocT 2016/¢SC118 UNIVERSITI TEKNOLGI MARA FINAL EXAMINATION ‘COURSE : FUNDAMENTALS OF ALGORITHM. DEVELOPMENT COURSE CODE csc118 DATE OCTOBER 2016 TIME 3 HOURS INSTRUCTIONS TO CANDIDATES 1 This question paper consists of three (3) parts: PART A (10 Questions) PART B (6 Questions) PART C (1 Question) ‘Answer ALL questions from all three (3) parts: i) Answer PART A in True/False Answer Sheet jl) Answer PART B and PART C in the Answer Booklet. Start each answer on a new page Do not bring any material into the examination room unless permission is given by the invigilator Please check to make sure that this examination pack consists of: i) the Question Paper ii) an Answer Booklet ~ provided by the Faculty iil) a True/False Answer Sheet — provided by Faculty ‘Answer ALL questions in English DO NOT TURN THIS PAGE UNTIL YOU ARE TOLD TO DO SO This examination paper consists of 7 printed pages (© Hak Cipta Universit Teknologi MARA CONFIDENTIAL CONFIDENTIAL 2 cs/OcT 2016/CSC118 PART A (10 MARKS) Answer TRUE (T) or FALSE (F) for the following questions: 1 10. The program that controls and manages the basic operations of computer is referred as system software To produce a correct program in any programming language, two different but related phases are involved namely problem solving phase and programming phase. One of basic computer operations is the ability to assign a value to a variable or memory location. A variable name represents a memory location of specific data type. The following pseudocode fragment is correct IF ( status = 1) THEN Display “Full Time student” ENDIF Itis impossible to combine alll the control structures (sequence, selection, repetition) in one algorithm. The default value for the unini xd element in an array is 0. The following loop will cause an infinite loop Set i too While (i < 10) iei*s endWhile In a nested loop, the inner loop must be terminated first before the outer loop can be updated. Module calcTotalsalary(in basicSal, in-out Overtime, out totalSalary) receives two parameters and return one value. (© Hak Cipta Universiti Teknologi MARA CONFIDENTIAL CONFIDENTIAL, 3 cs/ocT 2016/¢SC118 PART B (70 MARKS) QUESTION 4 a) __List four (4) main components of computer hardware with one example of each. (4 marks) b) i) __ Problem is defined as a “state of difficulty”. Discuss the definition (2 marks) ii) Phase 1 of problem solving is to define a problem. Give two possibilities that will happen when this phase is not handled carefully. (2 marks) ili) Given is an expected screen. State the input, process and output. (2 marks) QUESTION 2 a) Create a suitable variable name to store the following data or information: i) The total number of odd number from the list The description of a job. The eligibility to get a loan. iv) The amount of water in a jug. v) The selection of players with ‘YES’ or ‘NO’ (5 marks) b) Construct a flowchart for the given pseudocode below: Start shoesPrice = 55 blousePrice = 20 input shoesQuantity, blouseQuantity totalShoesPrice = shoesPrice X shoesQuantity totalBlousePrice = blousePrice x blouseQuantity totalAllprice = totalShoesPrice + totalBlousePrice print totalShoesPrice, totalBlousePrice, totalaAllPrice End (5 marks) (© Hak Cipta Universiti Teknologi MARA CONFIDENTIAL

Вам также может понравиться