Skip to content

Information Technology Grade 12 P2 NSC June 2014 QP (Afr)

Question paperInformation TechnologyGrade 12201421 pages

Grade 12 Information Technology Paper 2 question paper from the NSC June 2014 (Afrikaans), 21 pages. Read online or download the free PDF.

Free to read online, no sign-up needed

Answer online

Loading document…

Loading document…

Questions in this paper

Document textSearch extracted text and jump to a page.
Downloaded from hlayiso.com SENIOR CERTIFICATE EXAMINATION/ SENIORSERTIFIKAAT -EKSAMEN/ COMPUTER STUDIES P2/REKENAARSTUDIE V2 HIGHER GRADE/HOËR GRAAD 2014 MARKS/PUNTE: 200 TIME/TYD: 3 hours/uur This question paper consists of 11 pages./Hierdie vraestel bestaan uit 11 bladsye. 12 Copyright reserved Please turn over Kopiereg voorbehou Blaai om asseblief
Downloaded from hlayiso.com Rekenaarstudie/HG/V2 2 DBE/2014 SSE INSTRUKSIES EN INLIGTING 1. Beantwoord AL die vrae. 2. Die programmeringsvrae mag met potlood beantwoord word. Kopiereg voorbehou Blaai om asseblief
Downloaded from hlayiso.com Computer Studies/HG/P2 2 DBE/2014 SCE INSTRUCTIONS AND INFORMATION 1. Answer ALL die questions. 2. The programming questions may be answered in pencil. Copyright reserved Please turn over
Downloaded from hlayiso.com Rekenaarstudie/HG/V2 3 DBE/2014 SSE VRAAG 1: MEERVOUDIGEKEUSE-VRAE Verskeie opsies word as moontlike antwoorde op die volgende vrae gegee. Kies die antwoord en skryf slegs die letter (A–D) langs die vraagnommer (1.1–1.10) in die ANTWOORDEBOEK. 1.1 Watter EEN van die volgende word met groen rekenarisering geassosieer? A Die druk van alle skoolhandboeke B Die mobiele kantoor C Die gebruik van hervulbare inkkassette D Die gereelde vervanging van rekenaars 1.2 Watter EEN van die volgende hoort NIE logies by die ander NIE? A EDGE B ISDN C GPRS D HSDPA 1.3 'n Digitale ... word gebruik om die identiteit van die afsender van 'n e-pos te verifieer. A handtekening B handdruk C skeiding D sertifikaat 1.4 Die tipe geheue wat outeursregmetodes gebruik om hoë-spoed toegang tot data te kry. A Rambus B Sinkrone DRAM C DDR SDRAM D EDO-geheue 1.5 Watter EEN van die volgende sal die werking van 'n rekenaar waarskynlik die minste beïnvloed? A Vermeerder die getal toepassings wat uitvoer B Installeer 'n DVD-aandrywer C Gebruik 'n kwaliteit grafikakaart D Vermeerder die hoeveelheid ETG ('RAM') 1.6 'n ... word gebruik om 'n LAN aan die Internet te koppel. A Herhaler ('repeater') B Aktiewe spil ('active hub') C Roeteerder ('router') D Skakelaar ('switch') Kopiereg voorbehou Blaai om asseblief
Downloaded from hlayiso.com Computer Studies/HG/P2 3 DBE/2014 SCE QUESTION 1: MULTIPLE-CHOICE QUESTIONS Various options are given as possible answers to the following questions. Choose the answer and write only the letter (A–D) next to the question number (1.1–1.10) in the ANSWER BOOK. 1.1 Which ONE of the following is associated with green computing? A The printing of all school textbooks B The mobile office C Using refillable ink cartridges D The regular replacement of computers 1.2 Which ONE of the following does NOT logically belong with the others? A EDGE B ISDN C GPRS D HSDPA 1.3 A digital … is used to authenticate the identity of the sender of an e-mail message. A signature B handshake C divide D certificate 1.4 The type of memory that uses proprietary methods to access data at very high speeds: A Rambus B Synchronous DRAM C DDR SDRAM D EDO memory 1.5 Which ONE of the following is least likely to affect the performance of a computer? A Increasing the number of applications running B Installing a DVD drive C Using a high-quality graphics card D Increasing the amount of RAM 1.6 A/An ... is used to connect a LAN to the Internet. A repeater B active hub C router D switch Copyright reserved Please turn over
Downloaded from hlayiso.com Rekenaarstudie/HG/V2 4 DBE/2014 SSE 1.7 Die tegnologie wat dikwels gebruik word om data van een mobiele toestel na 'n ander oor te dra: A Gedraaide kabelpaar ('Twisted-pair cable') B Bluetooth C IrDa D Onafgeskermde gedraaide kabelpaar 1.8 Watter EEN is NIE waar oor die kringskakelingtegniek NIE? A Ideaal vir video-oordrag B Bied 'n toegewyde bandwydte C Geen opeenhoping van data nie D Goedkoop transmissiemedia 1.9 SLEGS grafikakaarte kan in hierdie poort ingeprop word: A AGP B USB C LPT D COM 1.10 'n Omgewing waar grammatika in die agtergrond nagegaan word terwyl 'n persoon op 'n woordverwerker tik, staan bekend as … A multiverwerking. B tyddeling. C bondelverwerking. D hiperryging. (10 x 1) [10] VRAAG 2: BOOLESE ALGEBRA 2.1 Teken 'n Karnaugh-diagram om die volgende funksie te vereenvoudig: F(a,b,c,d) = abd' + ab'cd + a'cd + abd (5) 2.2 F(x,y,z) = x'yz + x'yz' + xy'z + xyz 2.2.1 Skryf F(x,y,z) in minterme. (2) 2.2.2 Vereenvoudig F algebraïes. (6) 2.3 Teken 'n logika stroombaan vir die funksie F(a,b,c) = ab + ac. (3) [16] Kopiereg voorbehou Blaai om asseblief
Downloaded from hlayiso.com Computer Studies/HG/P2 4 DBE/2014 SCE 1.7 The technology that is often used to transfer data from one mobile device to another: A Twisted-pair cable B Bluetooth C IrDa D Unshielded twisted-pair cable 1.8 Which ONE is NOT true about the circuit-switching technique? A Ideal for video transfer B Offers a dedicated bandwidth C No congestion of data D inexpensive transmission media 1.9 ONLY graphics cards can be plugged into this port: A AGP B USB C LPT D COM 1.10 An environment where grammar is checked in the background while a person is typing on a word processor is known as ... A multiprocessing. B time sharing. C batch processing. D hyperthreading. (10 x 1) [10] QUESTION 2: BOOLEAN ALGEBRA 2.1 Draw a Karnaugh diagram to simplify the following function: F(a,b,c,d) = abd' + ab'cd + a'cd + abd. (5) 2.2 F(x,y,z) = x'yz + x'yz' + xy'z + xyz 2.2.1 Write F(x, y, z) in minterms. (2) 2.2.2 Simplify F algebraically. (6) 2.3 Draw a logic circuit for the function F(a,b,c) = ab + ac. (3) [16] Copyright reserved Please turn over
Downloaded from hlayiso.com Rekenaarstudie/HG/V2 5 DBE/2014 SSE VRAAG 3: REKENAARARGITEKTUUR 3.1 Wat is die basiese funksie van die moederbord? (1) 3.2 Noem die DRIE busse waaruit die stelselbus ('FSB'/'front-side bus') bestaan. (3) 3.3 3.3.1 Wat is die funksie van ETG ('RAM')? (2) 3.3.2 Wat is DDR RAM? (2) 3.3.3 Waar word kasgeheue aangetref? (2) 3.3.4 Wat is die funksie van kasgeheue? (2) 3.4 Waarom is die spesifikasie van die SVE-sok belangrik? (1) 3.5 3.5.1 Verduidelik hoe 'n pyplyn 'n SVE toelaat om meer as EEN instruksie op 'n slag te verwerk. (2) 3.5.2 Wanneer 'n pyplyn ophou werk, word daar gesê dat dit gestol het. Noem EEN toestand wat tot 'n pyplynstolling kan lei en gee ook 'n moontlike oplossing. (2) 3.6 3.6.1 Wat is die funksie van die stelselklok? (1) 3.6.2 Hoe verander vierdubbele dataversending ('quad pumping') die manier waarop data oorgedra word? (2) 3.7 Noem TWEE eienskappe van 'PCI Express'-tegnologie. (2) 3.8 Verduidelik die verskil tussen 'n bus, 'n poort en 'n kontroleerder. (3) 3.9 Vir elk van die items hieronder, dui aan of die konneksie in SERIE of in PARALLEL is EN noem EEN voordeel van die tegnologie. 3.9.1 'SCSI' (2) 3.9.2 'FireWire' (2) 3.10 Watter komponente word deur die noordbrug gekoppel? (2) 3.11 Noem DRIE tipes apparatuuronderbrekings wat na die SVE gestuur word. (3) 3.12 Verduidelik die term webberging ('web caching'). (2) [36] Kopiereg voorbehou Blaai om asseblief
Downloaded from hlayiso.com Computer Studies/HG/P2 5 DBE/2014 SCE QUESTION 3: COMPUTER ARCHITECTURE 3.1 What is the basic function of the motherboard? (1) 3.2 Name the THREE busses that make up the FSB (front-side bus). (3) 3.3 3.3.1 What is the function of RAM? (2) 3.3.2 What is DDR RAM? (2) 3.3.3 Where is cache memory found? (2) 3.3.4 What is the function of cache memory? (2) 3.4 Why is the specification of the CPU socket important? (1) 3.5 3.5.1 Explain how a pipeline allows a CPU to process more than one instruction at a time. (2) 3.5.2 When a pipeline stops functioning it is said to have stalled. Name ONE circumstance that could lead to a pipeline stall and give a possible solution. (2) 3.6 3.6.1 What is the function of the system clock? (1) 3.6.2 How does quad pumping change the way data is transferred? (2) 3.7 Name TWO features of PCI Express technology. (2) 3.8 Explain the difference between a bus, a port and a controller. (3) 3.9 For each of the items below, indicate whether the connection is SERIAL or PARALLEL, AND state ONE advantage of the technology. 3.9.1 SCSI (2) 3.9.2 FireWire (2) 3.10 Which components are connected by the north bridge? (2) 3.11 Name THREE types of hardware interrupts that are sent to the CPU. (3) 3.12 Explain the term web caching. (2) [36] Copyright reserved Please turn over
Downloaded from hlayiso.com Rekenaarstudie/HG/V2 6 DBE/2014 SSE VRAAG 4: STELSELPROGRAMMATUUR 4.1 Sonder om die akronieme uit te skryf, verduidelik die funksie van die volgende: 4.1.1 BIOS 4.1.2 CMOS (4) 4.2 Definieer 'n bedryfstelsel. (3) 4.3 Wat is die funksie van 'n ingebedde bedryfstelsel? (2) 4.4 Gee EEN term vir elk van die volgende beskrywings. Skryf slegs die antwoord langs die vraagnommer (4.4.1–4.4.4) in die ANTWOORDEBOEK. 4.4.1 Die bedryfstelsel gebruik 'n gedeelte van die hardeskyf as tydelike geheue (1) 4.4.2 Die bedryfstelsel probeer om data tussen die SVE en ETG ('RAM') oor te dra en die rekenaar lyk asof dit hang (1) 4.4.3 'n Tydelike stoorarea in geheue waar items geplaas word terwyl dit wag om na 'n stadiger afvoertoestel oorgedra te word (1) 4.4.4 'n Nutsprogram wat gebruik word om fragmente van 'n lêer op die hardeskyf te herrangskik (1) 4.5 Wat is die funksie van 'n databuffer ('spooler')? (2) 4.6 Gebruik 'n voorbeeld om bondelverwerking te verduidelik. (2) 4.7 Verduidelik kortliks die tegniek van multitaakverwerking deur 'n voorbeeld te gebruik. (2) 4.8 Beskryf kortliks die TWEE tipes kompileerders. (2) 4.9 Noem TWEE verskille tussen 'n Windows Home Basic-bedryfstelsel en 'n Windows Server-bedryfstelsel. (2) 4.10 Noem TWEE take wat 'n antivirusprogram kan uitvoer wanneer 'n virus opgespoor word. (2) 4.11 Wat is 'n programmatuurfout ('software bug')? (2) [27] Kopiereg voorbehou Blaai om asseblief
Downloaded from hlayiso.com Computer Studies/HG/P2 6 DBE/2014 SCE QUESTION 4: SYSTEM SOFTWARE 4.1 Without expanding the acronyms, explain the function of the following: 4.1.1 BIOS 4.1.2 CMOS (4) 4.2 Define an operating system. (3) 4.3 What is the function of an embedded operating system? (2) 4.4 Give ONE term for each of the following descriptions. Write only the answer next to the question number (4.4.1–4.4.4) in the ANSWER BOOK. 4.4.1 The operating system uses a part of the hard drive as temporary memory (1) 4.4.2 The operating system is trying to move data between the CPU and RAM and the computer appears to hang (1) 4.4.3 A temporary storage area in memory where items are placed while waiting to be transferred to a slower output device (1) 4.4.4 A utility used to reorganise fragments of a file on the hard drive (1) 4.5 What is the function of a spooler? (2) 4.6 Using an example, explain batch processing. (2) 4.7 Briefly explain the technique of multitasking by using an example. (2) 4.8 Briefly describe the TWO types of compilers. (2) 4.9 State TWO differences between a Windows Home Basic operating system and a Windows Server operating system. (2) 4.10 State TWO tasks an antivirus program could perform when a virus is detected. (2) 4.11 What is a software bug? (2) [27] Copyright reserved Please turn over
Downloaded from hlayiso.com Rekenaarstudie/HG/V2 7 DBE/2014 SSE VRAAG 5: DATAKOMMUNIKASIE 5.1 Verduidelik die funksie van die apparatuurtoestelle hieronder in 'n netwerkomgewing: 5.1.1 'UTP'-kabels (1) 5.1.2 Netwerkkoppelvlakkaarte (1) 5.1.3 Skakelaar ('Switch') (1) 5.1.4 Brug (1) 5.2 Internet en e-pos gebruik pakkieskakeling om data te stuur. 5.2.1 Wat is 'n kommunikasieprotokol? (2) 5.2.2 Watter protokol is verantwoordelik vir die aflewering van e-pos- boodskappe tussen verskillende bedieners? (1) 5.2.3 Verduidelik hoe pakkieskakeling gebruik sal word om 'n boodskap te stuur. (4) 5.3 Dit is belangrik om te verseker dat data nie beskadig of gesteel word nie. 5.3.1 Noem DRIE maniere waarop die netwerkadministrateur toegang tot data kan beperk. (3) 5.3.2 Watter stelsel is ontwerp om te voorkom dat ongemagtigde gebruikers toegang tot privaat netwerke verkry? (1) 5.3.3 Hoe verseker 'n OKT ('UPS') in geval van 'n kragonderbreking dat data nie beskadig word nie? (2) 5.4 3G- en ADSL-tegnologie bied toegang tot die Internet. Noem TWEE voordele van 3G- bo ADSL-tegnologie. (2) 5.5 Rugsteunkopieë is 'n belangrike deel van die administrateur se werk. 5.5.1 Noem DRIE tipes media wat gebruik kan word om rugsteunkopieë te maak. (3) 5.5.2 Wat is spieëlbeelding ('mirroring')? (2) 5.5.3 Verduidelik hoe 'RAID'-tegnologie verskil van die maak van 'n rugsteunkopie. (3) 5.6 5.6.1 Watter LAN-topologie gebruik tekenaanstuur ('token passing') wanneer data oorgedra word? (1) 5.6.2 Watter media-aksesseermetode laat rekenaars in 'n LAN toe om boodskappe op enige tydstip te stuur wanneer dit nodig is? (1) Kopiereg voorbehou Blaai om asseblief
Downloaded from hlayiso.com Computer Studies/HG/P2 7 DBE/2014 SCE QUESTION 5: DATA COMMUNICATION 5.1 Explain the function of the hardware devices below in a network environment: 5.1.1 UTP cables (1) 5.1.2 Network interface cards (1) 5.1.3 Switch (1) 5.1.4 Bridge (1) 5.2 Internet and e-mails use packet switching to send data. 5.2.1 What is a communication protocol? (2) 5.2.2 Which protocol is responsible for the delivery of e-mail messages between different servers? (1) 5.2.3 Explain how packet-switching will be used to send a message. (4) 5.3 It is important to ensure that data is not damaged or stolen. 5.3.1 State THREE ways in which the network administrator can limit access to data. (3) 5.3.2 What system was designed to prevent unauthorised users from accessing private networks? (1) 5.3.3 How does a UPS ensure that data is not damaged in the case of a power failure? (2) 5.4 The Internet can be accessed with 3G and ADSL technology. State TWO advantages of 3G over ADSL technology. (2) 5.5 Backups form an important part of the administrator's job. 5.5.1 Name THREE types of media that can be used to store backups. (3) 5.5.2 What is mirroring? (2) 5.5.3 Explain how RAID technology differs from making a backup. (3) 5.6 5.6.1 Which LAN topology uses token passing when transferring data? (1) 5.6.2 Which media access method allows computers in a LAN to send messages whenever they need to? (1) Copyright reserved Please turn over
Downloaded from hlayiso.com Rekenaarstudie/HG/V2 8 DBE/2014 SSE 5.7 5.7.1 Gee EEN voorbeeld van waar satellietkommunikasie vandag algemeen gebruik word. (1) 5.7.2 Noem EEN nadeel van die gebruik van satellietkommunikasie. (1) 5.8 Noem EEN voordeel van XML-lêers. (2) [33] VRAAG 6: SOSIALE IMPLIKASIES 6.1 Verduidelik die terme hieronder om die verskil tussen hulle aan te dui: 6.1.1 Malware (2) 6.1.2 Spioenprogrammatuur ('Spyware') (2) 6.2 Wat word benodig om 'n geënkripteerde dokument te dekripteer? (1) 6.3 Noem EEN nadeel van 'BYOD' ('bring your own device to work'). (1) 6.4 Noem TWEE voordele van die stoor van data in die wolk ('cloud'). (2) 6.5 Watter tegnologie laat 'n persoon toe om 'n telefoonoproep oor die Internet te maak? (1) 6.6 Waarom sal 'n persoon 'n DVD-skrywer bo 'n DVD-leser kies? (1) 6.7 Gee EEN voorbeeld van gratis en oopbronprogrammatuur wat vir alledaagse woordverwerking gebruik kan word. (1) 6.8 Noem TWEE nadele van e-leer ('e-learning') vir die mense van Suid-Afrika. (2) 6.9 Noem TWEE voordele van e-boeke. (2) 6.10 Watter term word gebruik om die teistering van 'n persoon op 'n sosialenetwerk-webtuiste te beskryf? (1) [16] Kopiereg voorbehou Blaai om asseblief
Downloaded from hlayiso.com Computer Studies/HG/P2 8 DBE/2014 SCE 5.7 5.7.1 Give ONE example of where satellite communication is commonly used today. (1) 5.7.2 State ONE disadvantage of using satellite communication. (1) 5.8 State ONE advantage of XML files. (2) [33] QUESTION 6: SOCIAL IMPLICATIONS 6.1 Explain the terms below to show the difference between them: 6.1.1 Malware (2) 6.1.2 Spyware (2) 6.2 What is required to decrypt an encrypted document? (1) 6.3 State ONE disadvantage of BYOD (bring your own device to work). (1) 6.4 State TWO advantages of storing data in the cloud. (2) 6.5 Which technology allows a person to make a phone call over the Internet? (1) 6.6 Why would a person choose a DVD writer over a DVD reader? (1) 6.7 Give ONE example of free and open-source software that can be used for day-to-day word processing. (1) 6.8 State TWO disadvantages of e-learning for the people of South Africa. (2) 6.9 State TWO advantages of e-books. (2) 6.10 What term is used to describe harassment of an individual on a social networking site? (1) [16] Copyright reserved Please turn over
Downloaded from hlayiso.com Rekenaarstudie/HG/V2 9 DBE/2014 SSE VRAAG 7: DELPHI/TURBO PASCAL-PROGRAMMERING 7.1 'n Program vereis dat gebruikers hulle geboortedatum in die vorm JJJJ/MM/DD intik. Verduidelik hoe die program kan verseker dat 'n geldige datum deur die gebruiker ingetik is. (2) 7.2 Gegee: ENTERED := 'Computer Studies is a relevant subject'; Skryf die programstelling(s) om die woord 'very' voor die woord 'relevant' in te voeg. (4) 7.3 Gegee die volgende datastrukture: (a) Skikking (b) Rekord (c) Tekslêer Watter datastruktuur sal die geskikste wees om: 7.3.1 'n Lys gebruikername vir toekomstige gebruik te stoor (2) 7.3.2 'n Alfabetiese lys name op 'n sekere stadium in die program te vertoon (2) 7.4 'n Gelukkige trekking word gehou om DRIE wenkaartjies te kies. 'n Skikking, TICKETS, bevat die nommers van die kaartjies wat betaal is. Bestudeer die pseudokode hieronder om jou te help om die vraag wat volg, te beantwoord.  Genereer 'n ewekansige getal  Herhaal van die begin van die skikking met die naam Tickets  Kontroleer of die ewekansige getal in die skikking voorkom  As die getal voorkom, verlaat die skikking  Vertoon die wennommer Skryf programkode vir die prosedure Wen om die aantal kaartjies wat verkoop is, in te lees en dan DRIE ewekansige getalle te genereer tussen 1 en die getal kaartjies verkoop en die DRIE wennommers te vertoon. (8) [18] Kopiereg voorbehou Blaai om asseblief
Downloaded from hlayiso.com Computer Studies/HG/P2 9 DBE/2014 SCE QUESTION 7: DELPHI/TURBO PASCAL PROGRAMMING 7.1 A program requires users to enter their date of birth in the form of YYYY/MM/DD. Explain how the program could ensure that a valid date was entered by the user. (2) 7.2 Given: ENTERED:= 'Computer Studies is a relevant subject'; Write the program statement(s) to insert the word 'very' before the word 'relevant'. (4) 7.3 Given the following data structures: (a) Array (b) Record (c) Text file Which data structure would be the most suitable to: 7.3.1 Store a list of user names for future use (2) 7.3.2 Display an alphabetical list of names at some point in the program (2) 7.4 A lucky draw is held to select THREE winning tickets. An array, TICKETS, holds the numbers of the tickets that were paid for. Study the pseudocode below to help you answer the questions that follow.  Generate a random number  Loop from the beginning of the array called Tickets  Check if the random number appears in the array  If the number appears, exit the array  Display the winning number Write the program code for the procedure Winning to accept the number of tickets sold, and to then generate THREE random numbers between 1 and the number of tickets sold and display the THREE winning numbers. (8) [18] Copyright reserved Please turn over
Downloaded from hlayiso.com Rekenaarstudie/HG/V2 10 DBE/2014 SSE VRAAG 8: DELPHI/TURBO PASCAL-PROGRAMMERING 8.1 Gegee: 'n Skikking, KRIEKET, vir 'n krieketspan om rekord te hou van kolftellings. Name Spel 1 Spel 2 Spel 3 Peter 25 14 75 Bob 52 15 14 Mpho 2 41 15 Freddy 0 21 21 Samuel 2 2 2 Josë 33 0 2 Mfundo 21 2 2 Matthew 2 22 0 George 12 12 0 Mohamed 0 2 0 Allan 0 1 0 8.1.1 Skryf die tipe verklaring neer vir die tweedimensionele skikking KRIEKET, wat hierbo vertoon is. (3) 8.1.2 Skryf die programkodesegmente vir die prosedure AVE om die gemiddelde getal lopies vir elke krieketspeler te bepaal en dit dan in kolom 5 te vertoon. (10) 8.1.3 Skryf die programkodesegmente om die naam van die persoon wat die hoogste aantal lopies in enige spel aangeteken het, te vertoon. (6) 8.2 Die tekslêer DOKUMENT.TXT is geskep. Verduidelik die funksie van elk van die volgende deur na die tekslêer te verwys: 8.2.1 'Reset' (2) 8.2.2 'Rewrite' (2) 8.2.3 'Closefile' of 'close' (2) 8.2.4 Skryf die kode om EEN reël data uit die tekslêer te lees. (2) 8.3 Gebruik 'n geskikte voorbeeld om die verskil tussen 'n verwysingsparameter en 'n waardeparameter te verduidelik. (4) [31] Kopiereg voorbehou Blaai om asseblief
Downloaded from hlayiso.com Computer Studies/HG/P2 10 DBE/2014 SCE QUESTION 8: DELPHI/TURBO PASCAL PROGRAMMING 8.1 Given: An array, CRICKET, for a cricket team to keep track of batting scores Name Game 1 Game 2 Game 3 Peter 25 14 75 Bob 52 15 14 Mpho 2 41 15 Freddy 0 21 21 Samuel 2 2 2 Josë 33 0 2 Mfundo 21 2 2 Matthew 2 22 0 George 12 12 0 Mohamed 0 2 0 Allan 0 1 0 8.1.1 Write down the type of declaration for the two-dimensional array CRICKET as shown above. (3) 8.1.2 Write the program code segments for the procedure AVE to determine the average number of runs for each cricketer and display this in column 5. (10) 8.1.3 Write the program code segments to display the name of the person who scored the most runs in any game. (6) 8.2 The text file DOCUMENT.TXT has been created. Explain the function of each of the following by referring to the text file: 8.2.1 Reset (2) 8.2.2 Rewrite (2) 8.2.3 Closefile or close (2) 8.2.4 Write the code to read ONE line of data from the text file. (2) 8.3 Use a suitable example to explain the difference between a reference parameter and a value parameter. (4) [31] Copyright reserved Please turn over
Downloaded from hlayiso.com Rekenaarstudie/HG/V2 11 DBE/2014 SSE VRAAG 9: DELPHI/TURBO PASCAL-PROGRAMMERING Die datalêer LIBRARY.DAT bevat datarekords van boeke in die skoolbiblioteek. Elke rekord bestaan uit 'n titel, 'n ISBN-nommer en of die boek aan 'n leser uitgeleen is, of nie. 'n Voorbeeld van drie datarekords: Study and Master Mathematics, ,Y Kenya, 1254252520,N Sonnets of Love, 1415121522,Y Die volgende veranderlikes is verklaar: Type MYRECORD = record (A) : (B); (C) : (D); (E) : (F); End; Var Boek : file of MYREKORD; BoekData : MYREKORD; Str10 : string[10]; Die lêer is gekoppel ('assigned') en herstel ('reset'). 9.1 Voltooi die kode vir elk van stelling A tot F. (3) 9.2 Skryf die programstellings om die VIERDE rekord in die datalêer te lees. (3) 9.3 Voltooi die ontbrekende kode vir die funksie UITGEREIK, om 'n rekord vanaf die hoofprogram te ontvang en na te gaan of die boek beskikbaar is. Funksie UITGEREIK(…9.3.1) …9.3.2 Begin 9.3.3 End; (7) [13] TOTAAL: 200 Kopiereg voorbehou
Downloaded from hlayiso.com Computer Studies/HG/P2 11 DBE/2014 SCE QUESTION 9: DELPHI/TURBO PASCAL PROGRAMMING The data file LIBRARY.DAT contains data records of books in the school library. Each record consists of a title, an ISBN number and whether or not the book has been issued to a reader. An example of three data records: Study and Master Mathematics, ,Y Kenya,1254252520,N Sonnets of Love, 1415121522,Y The following variables have been declared: Type MYRECORD = record (A) : (B); (C) : (D); (E) : (F); End; Var Book : file of MYRECORD; BookData : MYRECORD; Str10 : string[10]; The file has been (assigned) and (reset). 9.1 Complete the code for each of statements A to F. (3) 9.2 Write the program statements to read the FOURTH record in the data file. (3) 9.3 Complete the missing code for the function ISSUED to receive a record from the main program and to check whether the book is available. Function ISSUED(…9.3.1) …9.3.2 Begin 9.3.3 End; (7) [13] TOTAL: 200 Copyright reserved

Study this subject

More from Grade 12 Information Technology

View all