You are on page 1of 36
rc rest cove 01229020 ~ | JANUARY 2015 FORM TP 2015014 Se CARIBBEAN EXAMINATIONS COUNCIL CARIBBEAN SECONDARY EDUCATION CERTIFICATE® EXAMINATION INFORMATION TECHNOLOGY Paper 02 — General Proficiency 2 hours 15 minutes READ THE FOLLOWING INSTRUCTIONS CAREFULLY. 1. This paper consists of THREE sections and a total of TWELVE questions. Candidates MUST answer ALL questions in all THREE sections. 2. Number EACH answer correctly in the answer booklet. Do NOT write in the margins 4. Code is to be written in the programming language, Pascal. 5. Ifyou need to rewrite any answer and there is not enough space to do so on the original page, you must use the extra lined page(s) provided at the back of this booklet. Remember to draw a line through your original answer. 6. Ifyou use the extra page(s) you MUST write the question number clearly in the box provided at the top of the extra page(s) and, where relevant, include the question part beside the answer. DO NOT TURN THIS PAGE UNTIL YOU ARE TOLD TO DO SO. Copyright © 2013 Caribbean Examinations Count All rights reserved. ia 01229020/ANUARY/F 2015 _|fMNNINVEND M0 0 0 _| 0122902003 r * 1 & SECTION I : THEORY - 60 marks i Answer ALL questions. 5 s 1. (@)_—_ Convert the decimal number 78 to hexadecimal. All working must be shown. g iE = E is a E 3s (@ marks) & () The BCD of a signed decimal number is 1011 0011 0111 1000. What is the decimal ig number? S : : S a (@ marks) (©) TheASCIf representation of the character “K” is 1001011. What s the ASCII representation 8 of the character “H” ? S < < : = E @ marks) s GO ON TO THE NEXT PAGE 01229020/SANUARY/F 2015 L IQEC _| E 0122902004 E r > 7 @__ The two’s complement 8-bit representation of a decimal number is 11000100. What is the decimal number? TEIN THIS AREA (2 marks) DONOT WAL Total 10 marks IN THIS ARES PONOTHRTE GO ON TO THE NEXT PAGE 01229020/JANUARY/F 2015 L {NE Ne | Z (0122902005 = 2. Consider the following devices listed from D1 to DS: D1 — Pressure sensor D2—Plotter D3 — Headphone D4 — Scanner DS — Joystick (a) From the above list, state the devices that are classified as @ input devices Gi) output devices. marks) (b) For EACH device listed in the table below, give an example of an application that would be suitable for the device. Write your answer in the table. Device ‘Application Pressure sensor Plotter Headphone Scanner Joystick marks) ‘Total 10 marks GO ON TO THE NEXT PAGE 01229020/JANUARY/F 2015 L ANNE C00 a 0122902006 =| ‘DO NOL WRILEIN THES REL. DO NOE WRITE IN THIS AREA ‘pO NOTIPRITE IN THISAREL. 5 sl 3. (@ _ State the name of the hardware component that performs EACH of the following tasks: a (Stores the ‘boot up’ program = = a (ii) Executes the sequencing of instructions in the CPU = S| = = (iii) Stores data to be used later : = > a (iv) Allows data to be entered into the computer : (¥) Displays the results of processing to the user = = G marks) 5 = : S = = a a = = < = : = : GO ON TO THE NEXT PAGE 01229020/JANUARY/F 2015 L SHOOT | 0122902007 (b) _ Anexcerpt of the specifications of a computer system is listed below. Optical Drive: 8X DVD+/-RW Memory: 4GB DDR3 SDRAM Hard Drive: ITB 7200rpm SATA Hard Drive Display: 14.0" HD (1366 * 768) LED Processor: Intel® Core™ i5 Processor (2.5GHz) Ports: 5 USB 3.0 From the specifications provided, identify the (resolution of the monitor Gii) size of the hard drive (iii) size of the RAM (iv) type of processor (¥) speed of the optical drive. (6 marks) Total 10 marks GO ON TO THE NEXT PAGE 01229020/JANUARY/F 2015 | CNA 0122902008 e = : = HEMT We Roy ee ee PO NOT IPRITE IN THIS BEL i = = 2 = eo = £ 2 Ss a CTE IN THIS AREA boNOT (| DO NOT IVRITE IN THIS AREA || rc 4. -7- 7 An operating system is a special software that enables users to interact with the computer system. (@ State ONE example of an operating system software used on a desktop computer. (mark) (b) State TWO types of software user interface other than a graphical user interface (GUI). Indicate the main input device used in EACH. (4 marks) (©) State ONE example of a hardware user interface. (1 mark) (@ Identify TWO characteristics or features found in a GUI. (2 marks) (©) Apart from providing the user interface, state TWO other functions of an operating system software. @ marks) Total 10 marks GO ON TO THE NEXT PAGE 01229020/JANUARY/F 2015 L NEMO E00 A | 0122902009 r 5. te Data has been collected for a survey and entered into a computer using a data entry form. 4 (@ - State TWO methods that can be used to ensure that the data is entered accurately into the computer, ¢ (6) Explain how the TWO methods named in (a) above ensure that the data is entered accurately into the computer. @ marks) (©) State the names of THREE checks and explain how they work to ensure that the data entered is valid. (6 marks) Total 10 marks GO ON TO THE NEXT PAGE 01229020/JANUARY/F 2015 L AN 0 0 0122902010 _ ‘DO NOT EREFE IN THIS. AREA EE OGOMOD JERETEIN THIS AREA ce r * 7 = 6. The Ministry of Education has set up a video conference laboratory in a school and installed a = high-speed Internet connection. S| (@) _List FOUR hardware devices that are required for this laboratory. = = = = S = ws . S (4 marks) =e d (b) Write down the number of the term indicated in Column X (1 to 6) that corresponds to the most appropriate meaning in Column Y. : Column X Number Column Y = 1. UPLOAD. Link computers in the computer lab = < 2. VOIP Rules for transferring files over the = Internet = 3. HOTSPOT = Address of a website = 4, URL = Public area where you can access the = 5. LAN Internet via Wi-Fi & = 6. FTP Making phone calls over the Internet S = ‘Transfer files from your computer to @ dj web server . (6 marks) Total 10 marks BEM WRERE IN THES: DONOT =| GO ON TO THE NEXT PAGE e 01229020/0NUARY/F 2015 ASE | 0122902011 r “". 7 SECTION IL ES PRODUCTIVITY TOOLS - 15 marks Bi ‘ Answer ALL quest : : 7. BJ Stores, a local chain store with branches around the country, has prepared the spreadsheet 4 below showing sales for the period 2013-2015. Answer the following questions based on the 3 spreadsheet, s : Ene Eee E : J BJ STORES 4 SALES: 2013-2015 Branch 2013 2014 2015 Total 2016 E 5 |ot 1,250 1,190 1490| 3,930 1639 S [EC 750 680 1,100 2,530 1210) s we 500 400) 1,010 1,910 1 § EB 800 700 1,200| 2,700! 1320) a BCE 300) 650) 900, 1,850 990, : ps [ [ x | 10 [Total 3,600 3,620 5,700] _ 12,920 6270 5 [i 3 is (@ State the name of the feature used in the spreadsheet to align the text “BJ STORES” across ; the columns used in the spreadsheet. s (1 mark) (>) Write the function to find the maximum YEARLY Total for the period 2013-2015. (2 marks) (©) __Itisprojected that the 2016 sales for each branch will increase by 10% over the 2015 sales. Write the formula to compute the 2016 projected sales for the BCE branch. (2 marks) IDO NOT ERITE IN TIS ATRL GO ON TO THE NEXT PAGE 01229020/JANUARY/F 2015 E L {ANC 0 _| = 0122902012 = ge -u- ~] (d) ~The sales figures in the spreadsheet have been formatted. State the format used. (1 mark) (©) If the spreadsheet is sorted in ascending order by the total sales for each branch, which branch will be at the top of the spreadsheet? marl, ‘Total 7 marks AONOTHRITE IN PHISAREA DO NOT WRITEIN THIS Anes DO NOT WRITE IN THIS AREA GO ON TO THE NEXT PAGE 01229020/JANUARY/F 2015 L (E000 _] 0122902013 r “a. 7 8 Addepartment has created a database with one table named STOCK to store computer and related equipment in the department. A part of the database is shown below. 11/14/2008 HI-135 System Unit Delt 06/10/2009 3 2-005 Monitor Dell 08/10/2009 1 13-001 Printer HP 03/12/2010 3 HB-115 Printer HP 04/17/2011 1 2-120 UPS APC 07/15/2010 1 P2-178 Stabilizer APC 03/15/2010 1 (@) Name TWO data types other than the TEXT data type used in the stock table. (2 marks) (©) State the field MOST appropriate for use as the primary key and indicate the reason for your choice. @ marks) GO ON TO THE NEXT PAGE 01229020/JANUARY/F 2015 L INTO 0 | 0122902014 TA Aiea ae Fe De Pd NOERRITEINTHIC AREA | ‘ya DO NOL WRITE IN THES AREA DO NOT WRITE IN THIS AREA WRITE IN THIS AREA | ‘DO: r -». 7 (© Aquery was created on the STOCK table and the result of the query is shown below. Query2 7 WARRANTY EQUIPMENT DOP(mm-dd-yyyy) (YEARS) Printer 03/12/2010 3 Printer 11/14/2008 3 System Unit (06/10/2009 3 State the criterion used for the query. (4) The report below was generated from the table. ITEMS REPORT ‘MANUFACTURER DOP ‘CODE | EQUIPMENT | WARRANTY (mm-dd-yyyy) (YEARS) ‘APC. 3/15/2010 P2-178 Stabilizer 1 7/15/2010 P2-120, UPS 1 ‘Canon 1171472008 G1-012 Printer 3 Dell 6/10/2009 HI-135 ‘System Unit [3 8/10/2009 H2-005 Monitor 1 HP 3/12/2010 13-001 Printer 3 4/17/2011 13-115 Printer 1 Friday September 20, 2013 Page 1 of | (i State the field used to group the records. Gi) Which field was used to sort the records? @ marks) ‘Total 8 marks GO ON TO THE NEXT PAGE 01229020/JANUARY/F 2015 ie AOUEE A _] 0122902015 9 -14- 7 SECTION II PROBLEM SOLVING AND PROGRAMMING - 45 marks Answer ALL questions. ‘The Minister of Finance announced a 5% salary increase for all public servants with effect from 1 January 2015. ‘The tax-free allowance for the year 2015 is $60,000 and the tax is 20% of the taxable salary. To compute the tax, a computer with the following program loaded has been set up at the tax booth to assist public servants. Line Codes 1 Program Public_Servant; 2 CONST 3 tax_rate = 0.2; 4 VAR 5 new_monthly_sal, old_monthly_sal, new_yearly_sal, tax2015 : real; 6 Begin 7 Write(‘Enter your old monthly salary : ”); 8 ReadIn(old_monthly_sal); 9 new_yearly_sal := (old_monthly_sal *1.05) * 12; 10 Writeln(‘ Your Total Salary for 201: new_yearly_sal : 8: 2); u Ifnnew_yearly_sal <= 60000 then 12 tax2015 = 0 else 1B tax2015 = (new_yearly_sal - 60000) * tax_rate; “4 writeln(* Your tax for 2015 is : *, tax2015: 8: 2); 15 End. @) State the name of the control structure used in the program and indicate the line numbers. (2 marks) GO ON TO THE NEXT PAGE 01229020/JANUARY/F 2015 L {AE 0 0 _| 0122902016 pa eae ep Ay) aE ee Ee dees DONOTIFRITE IN THISGREL r vs 1 (®) _Drawa flowchart to represent the program. PO NOT IERIE IN THIS AREA ( BONOT WRITE IN THIS ARES, (9 marks) GO ON TO THE NEXT PAGE DO NOT RITEIN THIS AREA 01229020/JANUARY/F 2015, = L {OC | 10. ©) @ -16- ~] Indicate the value of the constant used in the program and state what the value represents. @ marks) State the name of the variable which contains tax paid by public servants for 2015. What is the data type for this variable? ‘Name of variable: Data type: (2 marks) Total 15 marks Anarray named OMEGA is used to store the values of three integers. Write Pascal code for EACH of the following: (@) ) © Declare the array named OMEGA. (4 marks) Assign the values 5 and 10 to the first and second locations of the array respectively. (Use ‘two Pascal statements). (4 marks) ‘Add the values in the first and second locations of the array and store the sum in the third location of the array. @ marks) Total 10 marks GO ON TO THE NEXT PAGE. 01229020/JANUARY/F 2015 L {ANE 0 _| 0122902018 fg y TOE BNE DERE, PATS A, DO NOT WRITEIN | DO NOT WRITE IN THIS AREA eel = 5 = : : 5 : _DONOL WRITE IN THIS ARES -17- ~] 11. Read the paragraph that follows. From the group of capitalized words given, determine the missing, word that BEST fits the numbered space. John, a programmer, is responsible for developing a payroll program for an organization. He constructed a _1 using symbols to represent the _2_of the program. John then wrote the _3__ code for the payroll program using the Pascal programming language. He then needed to_4 the program to check for _5_errors. Two errors were highlighted. John then had to_6__ the program to locate and fix the errors. He proceeded to__7_the program which “hanged” and produced no results indicating that there was a__8 error. Those errors were located and corrected and the program did what it was supposed to do, indicating that there were no_9 errors. John then created ___10__ documentation with instructions to the end users on how to use the program. + ALGORITHM + COMPILE + DEBUG + EXECUTE + EXTERNAL + FLOWCHART + LOGIC + RUN-TIME, + SOURCE + SYNTAX Write the missing word next to the correct number in the table given below. Number Word _ 1 2 4 5 6 7 8 9 10 Total 10 marks GO ON TO THE NEXT PAGE, 01229020/JANUARY/F 2015 L NEA _| 0122902019 2n @ () -18- | In the table below, write numbers 1 to 6 to indicate the correct order of steps that correspond i ies shown below. Step Number Activity Write an algorithm “Test and debug the program Analyse the problem Write the program ‘Test the algorithm Identify and define the problem (6 marks) For EACH of the following programming languages, state the generation (first to fourth) to which it belongs. Write your answers in the table below. Language Generation @ Structured Query Language (SQL) Pascal (ii) | Machine Language (iv) | Assembly Language (4 marks) Total 10 marks END OF TEST IF YOU FINISH BEFORE TIME IS CALLED, CHECK YOUR WORK ON THIS TEST. 01229020/JANUARY/F 2015 A A | 0122902020 eb Nad PCED aaa TAR PEER ca: = WPL TN Ee dae ONDE NOT WRITEIN THIS AREA. The: r “v 7 = EXTRA SPACE, = Ifyou use this extra page, you MUST write the question number clearly in the box provided. = = = Question No. = e = : S =) = = = = e S| . S = e g € = = = = 5 S = =| 01229020/JANUARY/F 2015 L A _| r * 7 EXTRA SPACE S 3 Ifyou use this extra page, you MUST write the question number clearly in the box provided. ES ‘ Question No. 2 s ES . 2 5 z a E . dE aA ae ee Boe ws 01229020/JANUARY/F 2015 L ‘nce a tly cB. rest cove.01229032 — | FORM TP 2015015 JANUARY 2015 ‘© CARIBBEAN EXAMINATIONS COUNCIL r CARIBBEAN SECONDARY EDUCATION CERTIFICATE® EXAMINATION INFORMATION TECHNOLOGY Paper 032 ~ General Proficiency ALTERNATIVE TO SBA 1 hour 30 minutes READ THE FOLLOWING INSTRUCTIONS CAREFULLY. 1. This paper consists of FOUR questions. 2 Answer ALL questions. 3. Number EACH answer correctly in the answer booklet. 4. DoNOT write in the margins. 5. If you need to rewrite any answer and there is not enough space to do so on the original page, you must use the extra lined page(s) provided at the back of this booklet. Remember to draw a line through your original answer. | 6. Ifyou use the extra page(s) you MUST write the question number clearly in the box provided at the top of the extra page(s) and, where relevant, include the question part beside the answer. DO NOT TURN THIS PAGE UNTIL YOU ARE TOLD TO DO SO. Copyright © 2013 Caribbean Examinations Council Alll rights reserved. [_ 01229082UANUARYIF 2015 {O00 _| 0122903203 r 7 Answer ALL questions. s ; The National Relief Council has been asked to calculate an estimate of damages from the flood in May. & ES 1 SPREADSHEET s The following worksheet was created to store the value of the damages in the various flood-affected BL areas for households, commercial organizations and industrial firms. a & g NATIONAL RELIEF COUNCIL 3 FLOOD DAMAGE ESTIMATES ($000's) E AREA HOUSEHOLD] COMMERCIAL] _INDUSTRIAL| TOTAL] PRIORITY. “[Block 1 200 5,420 9,050 14670| LOW Block 2 1,500] 3,400) 7,000 11,900] Low g Block 3 3,200 7,890 9,800 20,890| HIGH s | [Block 4 450 2,500 7,500 10450] LOW § Block 5 290) 1,800 4,050) 6,140| Low ES j | Block 6 654 6,700 7,800 15,154] HIGH : | [Block 7 1,150 5,400 9,500 16,050| HIGH z 1 | Block 8 2,450 4300 8,600 15350] HIGH s Block 9 1,800. 3,500 8,700] 14,000} LOW ‘ Block 10 700 4,500 9,900 15,100] HIGH 2 TOTAL, 12,394| 45,410) 81,900] 139,704 ’ (a) What data format has been applied to the numeric data in the worksheet? = (mark) = 2 (b) ‘The text in the first row of the worksheet is centred across Columns A to F. What feature 4 of the spreadsheet software has been used to accomplish this? = : (1 mark) 2 & (©) __ State the number of columns and rows used to create the worksheet. : (2 marks) s GO ON TO THE NEXT PAGE. 2 01229032/JANUARY/F 2015 L CANCE 0 0 a] 0122903204 SHES AREA A Peer DONOT WRITE IN THIS AREA, @ © oO ® 4 If the total damages for an area is $15,000,000 or more, the area is given a priority of HIGH, or else it is given a priority of LOW. Write the FUNCTION to insert the priority for each area. (4 marks) If the data in the worksheet were sorted in DESCENDING order by the total damages, which area (block) would be at the top of the sorted worksheet? (1 mark) If the value in cell B8 is changed, state TWO cells whose values will change as a result. (2 marks) ‘You wish to filter the data in the worksheet to find all areas with household damages of ‘more than $2,000,000 and with HIGH priority status. The results of the filter should only display the AREA, HOUSEHOLD and PRIORITY column headings. (@ Inthe table below, write the column headings and corresponding criteria. ( marks) (ii) How many areas will be displayed in the results of the filter? GO ON TO THE NEXT PAGE 01229032/JANUARY/F 2015 L CNC 0 0 _| 0122903205 r “ 1 (h) The following chart was created from the data in the worksheet. HOUSEHOLD COMMERCIAL INDUSTRIAL. @__ Name the type of chart used. - : (1 mark) z 5 Gi) State the range of data used to construct the chart, g - E 2 (2 marks) : ‘What is the purpose of the chart? 3 : Ee ‘Total 20 marks E & . 3 E : : GO ON TO THE NEXT PAGE. 01229032/JANUARY/F 2015 L A A | 1229032 r “ 7 2. DATABASE MANAGEMENT The National Relief Council maintains a database named ASSISTANCE with two tables to store information on flood assistance allocated for the various areas. The two tables are listed below. TABLE 1: TYPE i LOsS_ID CATEGORY : HH100 Household M200 Commerci 1N300 Industrial : 5 i : TABLE 2: GRANT LOSs_ID AREA AMOUNT g ($000's) = e M200 Block 10 450 = HHi00 Block 3 320 = CM200 Block 6 700 = z IN300 Block 3 490 = HH100 Block 8 245 s = 1N300 Block 6 700 =e IN300 Block 10 900 CM200 Block 8 300 : (a) ‘State the data type of the AMOUNT field in the GRANT table. = vs 2 mario = (b) State the number of records and fields in the GRANT table. @ marks) . : 5 5 GO ON TO THE NEXT PAGE 01229032/JANUARY/F 2015 L (N00 _| 0122903207 6s 7 (©) State, with reasons, if any field of the GRANT table can be used as a primary key. (@ marks) (@ State the name of the field that should be used to join the two tables. mark) (©) The data in the GRANT table has been sorted in ASCENDING order by the AMOUNT field. State the name of the AREA which would be at the top of the sorted table. (mark) (The following query was created from the database. CATEGORY [a "AMOUNT TYPE GRANT a Mw $500 (® State the tables used in this query. (i) What fields will be displayed in the results of the query? Gil) What is the purpose of the query? (iv) How many records will be displayed when the query is executed? (4 marks) GO ON TO THE NEXT PAGE 01229032/JANUARY/F 2015 AE 0 0122903208 Tee ap RID ORE a AD ETS ce -T- 7] (g) The following results were produced. LOSs_ID AREA AMOUNT M200 Block 10 430 M200 Block 6 | 700 a M200 Block 8 300 Complete the query below that would have produced these results. Fee | wl Table: | Sort : Show Oo a Oo 0 z itera = on = (4 marks) 2 : a = = NOT WRITE IN THISARIEA eo GO ON TO THE NEXT PAGE 01229032/JANUARY/F 2015 L {A000 A _] 0122903209 r “ (h) The following report was created from the database. FLOOD ASSISTANCE eawouve 300 Block 8 450 Block 10 700 Block 6 Summary for ‘CATEGORY’ ‘ommercial (3 detail records) Sum 1450 Household 245 Block 8 320 Block 3 Summary for ‘CATEGORY’ = Household (2 detail records) oa 5 Industrial 490 Block 3 700 Block 6 | 900 Block 10 Summary for ‘CATEGORY’ = Industrial (3 detail records) Sum 2090 Grand Total 4105 (@ State the field used to group the records in the report. (i) What other field could be used to group the records in the report? Gi) State the field used to sort the records and the order of sort. (iv) What does 4105 represent in the report? Total 20 marks GO ON TO THE NEXT PAGE 01229032/JANUARY/F 2015 L CANE A 0122903210 Tepe pa ee ee Te BANAT RIE: RITE IN GHISAR Re ‘DO NOT HI 3. - WORD PROCESSING ‘The primary document for a mail merge is indicated below. NATIONAL RELIEF COUNCIL _PROM: Finance Controller TO: AREA» Relief Officer ' FLOOD DAMAGES ESTIMATED TOTAL" «TOTAL» ( marks) (&) What text alignment has been applied to the first line of the memorandum? (mark) (©) What justification has been applied to the body of the memorandum? (mark) GO ON TO THE NEXT PAGE 01229032/JANUARY/F 2015 L. CON | 0122903211 rc @ © © ) ) @ -10- ~] State the use of EACH of the TWO icons below. @ @) [ay (2 marks) A table is inserted in the primary document. State the number of rows and columns used to create the table. (2 marks) ‘What is the name given to the text “! Figures represent thousands of dollars” ? (mark) How many merge fields are in the primary document? (1 mark) If the spreadsheet created in Question 1 on page 2 is used as the data source for a mail ‘merge, how many letters will be printed? (mark) AA letter is sent to the area relief officer for Block 8. What amount for total damages is listed in this letter? (mark) ‘The text “Providing a helping hand” is to be inserted at the bottom of each page of a document. Which word processing feature would be appropriate for this task? (1 mark) GO ON TO THE NEXT PAGE 01229032/JANUARY/F 2015 L 0122903212 SINE _| RO NOT RE eRe ‘DO NOP WRIEE DN TELS ARE r oH q | (&) _ Youare given the organization’s logo on a flash drive. List THREE steps required to insert 3 the logo at the top left side of the document. = = = = = = = = : _ = GB marks) = = (D)— Suppose you have to enter the text “HO” in your document, what format will you apply to the number 2 in the text? (1 mark) 5 (m) State TWO steps required to move a table to another location in a document. : & = = = Q tharks) = Tat 20 marks 5 : Ss = & a = S 5 2 = = a = = S a GO ON TO THE NEXT PAGE 01229032/JANUARY/F 2015 L MT 0 0 =| 0122903213 r “me 7 4, PROBLEM SOLVING AND PROGRAMMING 5 Consider the following program written in Pascal. 8 a Line No. Codes £ 1 Program assistance; = 2 Const. fixed_all = 5000; i 3 child_rate = 2000; s 4 var & 5 tot all, ne: integers fs 6 begin a a tot_all := 0; B 8 Write(‘Enter the number of children in the family :*); 9 Readin(nc); 10 Ifne >3 then u ne =3; S 12 tot all := fixed_all + (ne * child_rate); 7 13 {computes the total allowance for the family} : 4 ‘Writeln(“Your flood assistance is°,tot_all); a 15 end. es - ' @ —— @ __ State what data is input into the program. ES he EA Ne ew Gi Indicate the line number where the program will accept the input. Gii) State the output. (iv) State the line number where the output will be displayed. = (6) Whatis the difference between a variable and a constant? (2 marks) GO ON TO THE NEXT PAGE 01229032/JANUARY/F 2015 L ANTE a J 0122903214 | RONOTIONTEIN THIS AREA DO NOT IRITEIN THIS AREA DO NOL WRITE IN THUS AREA | r ve: 7 (©) State thename of a variable used in the program. Indicate its data type and the line number where it is declared. Gmarks) (@ State the name of a constant used in the program. Indicate the line number where it is declared and the value of the constant. “"@ marks) (©) @_ What type of error would occur if the semi-colon (;) was missing at the end of line 127 Gi) When would this error occur? (2 marks) (© What type of error would prevent the program from giving the correct results? (mark) (@) _ Whatis the purpose of comments in a program? Indicate the line number where a comment is used. (@ marks) (h) State the name of a control structure used in the program and indicate the line numbers of the control structure. (2 marks) GO ON TO THE NEXT PAGE 01229032/JANUARY/F 2015 L a a a | @ oO (k) Q -14- “| State the line number where a variable is initialized. @ mark) What is the purpose of line 11? (1 mark) State the line number of ONE arithmetic operation used in the program. (mark) Complete the following trace table based on the program given. Use 5 as the number of children entered for a family (nc). Step ne tot_all (4 marks) GO ON TO THE NEXT PAGE 01229032/JANUARY/F 2015 L QUA 0 | 0122903216 SHB UHES HU ABR ELIE SRS EE DO NOTIWRITE IN THIS AREA r “: 7 (m) Construct a flowchart for lines 10-12. = e = ee 2 S S| d = : = 5 z = 2 a 4 a a = = . (4 mar = ‘Total 30 marks = = S END OF TEST 2 IF YOU FINISH BEFORE TIME IS CALLED, CHECK YOUR WORK ON THIS TEST. = 01229032/JANUARY/F 2015 (INO L 0122903217 a TT -16- 7] EXTRA SPACE ‘Ifyou use this extra page, you MUST write the question number clearly in the box provided. Question No. PETE Eee eee eee TT Feo TES ae EA ay ee DO NOT WRENS THR 01229032/JANUARY/F 2015 iz {00 000 0 _| 0122903218

You might also like