Skip to content

Information Technology Grade 12 P2 NSC June 2013 QP

Question paperInformation TechnologyGrade 12201329 pages

Grade 12 Information Technology Paper 2 question paper from the NSC June 2013, 29 pages. Read online or get the free PDF download, memo linked when available.

Free to read online, no sign-up needed

Answer online

Loading document…

Loading document…

NSC June 2013

Questions in this paper

Document textSearch extracted text and jump to a page.
Downloaded from hlayiso.com basic education Department: Basic Education REPUBLIC OF SOUTH AFRICA SENIOR CERTIFICATE EXAMINATION SENIORSERTIFIKAAT-EKSAMEN COMPUTER STUDIES / REKENAARSTUDIE PAPER 2/ VRAESTEL 2 HIGHER GRADE / HOER GRAAD 2013 MARKS / PUNTE: 200 COMPUTER STUDIES/REKENAARSTUDIE HG : P2/V2 TIME / TYD: 3 hours / uur 7241 72412 | This question paper consists of 15 pages. / Hierdie vraestel bestaan uit 15 bladsye. X@5 ul Copyright reserved / Kopiereg voorbehou IOAN A Please turn over / Blaai om asseblief
Downloaded from hlayiso.com Rekenaarstudie/HG/V2 2 DBE/2013 SSE INSTRUKSIES EN INLIGTING 1. Beantwoord AL die vrae. 2. Die programmeringsvrae mag met potlood beantwoord word. Koper vont MANA ALU sot
Downloaded from hlayiso.com Computer Studies/HG/P2 2 DBE/2013 SCE INSTRUCTIONS AND INFORMATION 1. Answer ALL the questions. fe The programming questions may be answered in pencil. STA FUNNY A tiniihiiel
Downloaded from hlayiso.com Rekenaarstudie/HG/V2 3 DBE/2013 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 neer. 1.1 Watter tipe sein degenereer NIE oor lang afstande NIE? A Serie B_ Analoog C Parallel D_Digitaal 1.2 Watter EEN van die volgende verwys NIE na LAG (‘ROM’) nie? A Stadiger as LSG (‘RAM’) B_ Kan herprogrammeer word C_ Tydelike geheue D_ Meer kan in gleuwe op die moederbord ingeprop word 1.3 Hierdie topologie is die maklikste om te verander sonder om die netwerk te onderbreek: A Ster B Bus C_ Ring D Gemeng 1.4 Watter EEN van die volgende is 'n netwerkprotokol? A 'RAID' B 'PSTN' Cc ‘PX’ D 'ADSL' ue Dit verbind 'n fisiese stertopologie met 'n ringtopologie: A Versterker (‘repeater’) B_ Aktiewe spil (‘active hub') C_ Roeteerder (‘router’) D_ Skakelaar (‘switch’) 1.6 Die tipe kabel wat totale weerstand teen enige elektromagnetiese of tadiofrekwensiesteuring bied: Gedraaide draadpaar (‘twisted pair’) Koaksiale kabel (‘coaxial’) Optiese vesel (‘fibre optic’) Onafgeskermde gedraaide draadpaar (‘unshielded twisted pair’) vuonaDYr Kote voted LUA NN) 232m ase
Downloaded from hlayiso.com Computer Studies/HG/P2 3 DBE/2013 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 1.2 1.3 1.4 77 1.6 Which type of signal does NOT degrade over long distances? A. Serial B_ Analogue C Parallel D_ Digital Which ONE of the following does NOT refer to ROM? A Slower than RAM B_ Can be re-programmed C Temporary memory D_ More can be plugged into slots on motherboard This topology is the easiest to modify without disrupting the network: A. Star B Bus C_ Ring D_ Hybrid Which ONE of the following is a network protocol? A RAID B PSTN Cc IPX D ADSL This connects a physical star topology with a ring topology: A_ Repeater B_ Active hub C Router D_ Switch The type of cable that offers total resistance to any electromagnetic or radio frequency interference: Twisted pair Coaxial Fibre optic Unshielded twisted pair iwkeks» Cont esoved NAN 0 0 00 Pose tum over
Downloaded from hlayiso.com Rekenaarstudie/HG/V2 4 DBE/2013 SSE 7 Hierdie toestelle kan pakkies oor veelvuldige netwerke stuur deur dieselfde protokol te gebruik om die beste bestemming te bepaal: A Passiewe spil (‘passive hub’) B_ Roeteerders (‘routers’) C Deurgangspoorte ('gateways') D_ Brde (‘bridges’) 77 Die poort wat gewoonlik gebruik word om 'n eksterne modem aan 'n rekenaar te koppel: A PS/2 B USB C LPT D COM 1.9 'n Werksomgewing waar gebruikers banksake aanlyn doen: A __Intydse verwerking B_ Tyddeling C_ Bondelverwerking D_ Multiverwerking 1.10 Stuur data op die styg en val van een kloktik: Rambus Sinchrone DRAM DDR SDRAM EDO-geheue (10 x 1) [10] when Kirn votooy LATVIAN] 222 2s
Downloaded from hlayiso.com Computer Studies/HG/P2 4 DBE/2013 SCE 1.7 These devices can switch packets across multiple networks using the same protocol to determine the best destination: A Passive hub B_ Routers C Gateways D_ Bridges 1.8 The port that is usually used to connect an external modem to the computer: A PS/2 B USB C LPT D COM 1.9 A working environment where users do banking online: A_ Real-time processing B_ Time sharing C_ Batch processing D_ Multiprocessing 1.10 Sends data on the rise and fall of one clock tick: Rambus Synchronous DRAM DDR SDRAM EDO memory (10 x 1) [10] whem ie 2 Conroe A EH Peesetum over
Downloaded from hlayiso.com Rekenaarstudie/HG/V2 5 DBE/2013 SSE VRAAG 2: BOOLE-ALGEBRA 2.1 Gegee: Cc Cc Cc Cc 00 01 1 10 A 1 d 4 B' 00 00 A 1 B 01 01 A 1 B 1 14 A 1 1 1 B' 10 10 D' D D D' 00 01 4 10 Teken die Karnaugh-diagram in jou ANTWOORDBOEK oor en vereenvoudig na die minimum getal terme en letters. (5) 2.2 Die waarheidstabel is gegee: X}/Y |Z F 0;0/0 0 0 0 d 1 0o;1)]0 0 o/;1/]1 1 1|;01;0 0 1|01] 1 0 4 1 | 0 1 d 1/1 1 2.2.1 Skryf F(X, Y, Z) in minterme. (2) _ Vereenvoudig F algebraies. (6) 2.3 Teken 'n logikakring vir die som van 'n halfopteller. (3) [16] Se FAUNA OO AOU A Bia! om assebles GAUTENG
Downloaded from hlayiso.com Computer Studies/HG/P2 5 DBE/2013 SCE QUESTION 2: BOOLEAN ALGEBRA 2.1 Given: C' C' Cc Cc 00 01 1 10 A' 1 1 1 B 00 00 A' 1 B 01 01 A 1 B 11 11 A 1 1 4 B' 10 10 D' D D D' 00 01 1 10 Draw the Karnaugh diagram in your ANSWER BOOK and simplify to the minimum number of terms and literals. (5) 2.2 The truth table is given: X|Y]Z F 0/;}01]0 0 o/;0oj 1 1 oO 8 0 Oo; 11 1 1 07; 0 0 1 0; 1 0 1 1 | 0 1 1 41} 1 1 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 sum of a half-adder. (3) [16] Conon sored ANA A 0 Pee tum ove
Downloaded from hlayiso.com Rekenaarstudie/HG/V2 6 DBE/2013 SSE VRAAG 3: REKENAARARGITEKTUUR 3.1 3.2 3.3 3.4 3.5 3.6 3.7 3.8 3.9 Kopiereg voorbehou Geheue het 'n invloed op die werkverrigting van 'n rekenaar. 3.1.1 3.2.1 3.2.2 3.2.3 Definieer kasgeheue. Waar word kasgeheue gevind? In vergelyking met RAM, gebruik ons slegs 'n klein hoeveelheid kasgeheue. Waarom is dit so? Buiten die databus, noem die TWEE ander busse waaruit die stelselbus bestaan. Hoe word die spoed en werkverrigting van 'n rekenaar beinvioed as die databus groter gemaak word? Wat is die funksie van 'n register? Verduidelik die verskil tussen die volgende deur 'n kort beskrywing van elkeen te gee: 3.3.1 3.3.2 Klokvermenigvuldiging Oorklok (‘overclocking’) Gee TWEE redes waarom die grootte van die transistors in die SVE (‘CPU') die spoed van die verwerker beinvioed. Vandag se rekenaars gebruik USB-poorte. 3.5.1 3.5.2 Waarvoor staan USB? Gee TWEE voordele van USB-poorte op 'n rekenaar. Wat is die doel van die AGP-gleuf op 'n rekenaar? Watter TWEE faktore bepaal die spoed van 'n hardeskyf? Wat is die verskil tussen 'n 32 bis-rekenaar en 'n 64 bis-rekenaar? 3.9.1 3.9.2 Definieer pyplynverwerking. Noem EEN probleem wat by pyplynverwerking kan voorkom en verduidelik hoe die rekenaar hierdie probleem hanteer. TT Bieal om asseblet (2) (1) (2) (2) (2) (2) (1) (2) (2) (3) (2)
Downloaded from hlayiso.com Computer Studies/HG/P2 6 DBE/2013 SCE QUESTION 3: COMPUTER ARCHITECTURE 3.1 3.1.1 3.1.2 3.1.3 3.2 3.2.1 3.2.2 3.2.3 3.3 each: 3.3.1 3.3.2 3.4 3.5 3.5.1 3.5.2 3.6 3.7 3.8 3.9 3.9.1 3.9.2 Copyright reserved Memory affects the performance of a computer. Define cache memory. Where is cache memory found? Compared to RAM, we use only a small amount of cache memory. Why is this so? Besides the data bus, name the other TWO buses that make up the system bus. How is the speed and performance of a computer affected by increasing the size of the data bus? What is the function of a register? Explain the difference between the following by giving a brief description of Clock multiplication Overclocking Give TWO reasons why the size of the transistors inside the CPU affects the speed of the processor. Today's computers use USB ports. What does USB stand for? Give TWO advantages of having USB ports on a computer. What is the purpose of the AGP slot on a computer? Which TWO factors determine the speed of a hard drive? What is the difference between a 32-bit computer and a 64-bit computer? Define pipelining. State ONE problem that could occur with pipelining and explain how the computer deals with this problem. FAIA NAN Pease lun over GAUTENG (2) (2) (1) (2) (2) (1) (2) (2) (2) (1) (2) (1) (2) (2) (3) (2)
Downloaded from hlayiso.com Rekenaarstudie/HG/V2 Ul DBE/2013 SSE 3.10 Gee vir elk van die terme hieronder (a) 'n beskrywing van die term en (b) EEN voordeel van die tegnologie: 3.10.1. Hiperinryging (‘hyperthreading') 3.10.2 Multi-inryging (‘multithreading’) 3.10.3 Firewire 3.10.4 'PCI Express’ (8) [37] nia FATA ON AO Bieat om assole
Downloaded from hlayiso.com Computer Studies/HG/P2 if DBE/2013 SCE 3.10 For each of the terms below, give (a) a description of the term and (b) ONE advantage of the technology: 3.10.1. Hyperthreading 3.10.2 Multithreading 3.10.3 Firewire 3.10.4 PCI Express (8) [37] Coprosned TTC en
Rekenaarstudie/HG/V2 8 DBE/2013 Downloaded from hlayiso.com SSE VRAAG 4: STELSELPROGRAMMATUUR 41 4.2 4.3 44 4.5 4.6 4.7 48 kote oreo ANNU N28 ste GAUTENG 4.11 Noem die TWEE komponente van 'n bedryfstelsel. 4.1.2 Noem die DRIE doelwitte van 'n bedryfstelsel. 4.2.1 Wat is 'n ingebedde bedryfstelsel? 4.2.2 Gee 'n voorbeeld van 'n ingebedde bedryfstelsel. Sommige bedryfstelsels gebruik virtuele geheue om te voorkom dat 'n hele program in die geheue gelaai word voordat dit uitgevoer word. 4.3.1 Waar word virtuele geheue gevind? 4.3.2 Verduidelik hoe 'n rekenaar virtuele geheue gebruik deur te verwys na paginering (‘paging') en sparteling (‘thrashing’). Hoe gebruik die bedryfstelsel die volgende vir kommunikasie wanneer dokumente gedruk word? 4.4.1 Buffer 4.4.2 Databuffer (‘spooler’) 4.5.1 Wat is die verskil tussen 'n kompileerder en 'n interpreteerder? 4.5.2 Gee 'n voorbeeld van EEN programmeringstaal wat 'n kompileerder gebruik. Verduidelik kortliks, deur na 'n voorbeeld te verwys, wat die tegniek van multitaakverwerking behels. Noem TWEE van die meer komplekse funksies van bedienerprogrammatuur wat nie deel van gewone bedryfstelsels is nie. Stoorbeheer is 'n belangrike taak van die bedryfstelsel. 4.8.1 Die léerstelsel hou tred met die attribute van 'n léer. Gee TWEE voorbeelde van attribute wat gestoor kan word. 4.8.2 Verduidelik waarom skyfdefragmentering gedoen moet word. (1) (3) (2) (2) (2) (1) (2) (2) (2) (2) [27]
Downloaded from hlayiso.com Computer Studies/HG/P2 8 DBE/2013 SCE QUESTION 4: SYSTEM SOFTWARE 4.1 4.2 4.3 4.4 4.5 4.6 4.7 48 4.1.1 Name the TWO components of an operating system. 4.1.2 State the THREE goals of an operating system. 4.2.1 What is an embedded operating system? 4.2.2 Give an example of an embedded operating system. Some operating systems use virtual memory to avoid loading a complete program into memory before executing it. 4.3.1 Where is virtual memory found? 4.3.2 Explain how a computer uses virtual memory by referring to paging and thrashing. How does the operating system use the following for communication when printing documents? 4.41 Buffer 44.2 Spooler 4.5.1 What is the difference between a compiler and an interpreter? 4.5.2 Give an example of ONE programming language that uses a compiler. Briefly explain, by referring to an example, what the technique of multitasking entails. Name TWO of the more complex functions of server software that are not part of normal operating software. Storage management is an important task of the operating system. 4.8.1 The file system keeps track of the attributes of a file. Give TWO examples of attributes that could be stored. 4.8.2 Explain why disk defragmentation should be carried out. Cortese TU ee (2) (3) (2) (1) (1) (3) (2) (2) (2) (1) (2) (2) (2) (2) [27]
Downloaded from hlayiso.com Rekenaarstudie/HG/V2 9 DBE/2013 SSE VRAAG 5: DATAKOMMUNIKASIE 5.1 Brei die volgende terme uit: 5.1.1 ‘FDDI' (1) 52 NIC (1) 5.2 Die Internet en e-pos gebruik pakkieskakeling om data te stuur. 5.2.1 Watter protokol word gebruik om aan die Internet te koppel? (1) 5.2.2 Verduidelik hoe pakkieskakeling werk. (5) 5.3 Netwerksekuritelt is belangrik om te verseker dat data nie beskadig of gesteel word nie. 5.3.1 Hoe kan die netwerkadministrateur toegang tot data beperk? Noem DRIE maniere. (3) 5.3.2 Hoe word data-integriteit deur 'n netskans (‘firewall’) gewaarborg? (2) 5.4 Internetkonnektiwiteit gebruik 3G- of ADSL-tegnologie. Gee EEN voordeel van ADSL bo 3G-tegnologie. (2) ae 'n Netwerk vir die Geskiedenisklaskamers sal 'n bediener gebruik en een drukker voor in 'n klaskamer benodig. Alle gebruikers moet toegang tot die drukker en tot die Internet hé. Verduidelik die doel van die volgende hardeware in die netwerk: 5.5.1 100Mbps Ethernet-netwerkkoppelkaarte (1) 5.5.2 UTP-kabels (1) 5.5.3 Skakelaar (‘switch’) (2) 5.6 Leerders het slimfone met Bluetooth-tegnologie en moet dokumente na die drukker aflaai. 5.6.1 Wat is die voordeel van Bluetooth-tegnologie vir toestelle in verskillende plekke? (1) 5.6.2 Buiten om léers en foto's na 'n ander toestel te stuur, gee EEN ander voorbeeld van 'n praktiese gebruik van Bluetooth-tegnologie. (1) hi 5.7.1 Wat is die gewildste LAN-argitektuur wat deesdae gebruik word? (1) 5.7.2 Verduidelik hoe data van rekenaar tot rekenaar gestuur word in hierdie tipe LAN deur die CSMA/CD-metode te gebruik. (4) Kor voter LU UH set
Downloaded from hlayiso.com Computer Studies/HG/P2 9 DBE/2013 SCE QUESTION 5: DATA COMMUNICATION 5.1 5.2 5.3 5.4 5.5 5.6 5.7 Expand the following terms: 54] FDDI 5.1.2 NIC The Internet and e-mail use packet switching to send data. 5.2.1 What protocol is used to connect to the Internet? 5.2.2 Explain how packet switching works. Network security is important to ensure that data is not damaged or stolen. 5.3.1 How can the network administrator limit access to data? Give THREE ways. 5.3.2 How does a firewall ensure data integrity? Internet connectivity uses 3G or ADSL technology. Give ONE advantage of ADSL over 3G technology. A network for the History classrooms will run on a server and will need one printer at the front of a classroom. All users will need access to the printer and to the Internet. Explain the purpose of the following hardware in the network: 5.5.1 100Mbps Ethernet network cards | UTP cabling 5.5.3 Switch Learners have smartphones with Bluetooth technology and need to download documents to the printer. 5.6.1 What is the advantage of Bluetooth technology for devices in different venues? 5.6.2 Other than transferring files and photos to another device, give ONE other example of a practical use of Bluetooth technology. 5.7.1 What is the most popular LAN architecture used today? 5.7.2 Explain how data is passed from computer to computer in this type of LAN using the CSMA/CD method. Cony rose NAN A 0 0 Pesotum or (1) (1) (1) (5) (3) (2) (2) (1) (1) (2) (1) (1) (4)
Downloaded from hlayiso.com Rekenaarstudie/HG/V2 10 DBE/2013 SSE 5.8 5.8.1 Noem EEN nadeel van die gebruik van satellietkommunikasie. (1) 5.8.2 Buiten selfoontegnologie, gee EEN voorbeeld van waar satellietkommunikasie vandag algemeen gebruik word. (1) 5.9 GPRS verleen toegang tot die Internet. Noem DRIE voordele van die gebruik van hierdie tegnologie. (3) 5.10 Wat is die doel van 'RAID'-tegnologie en hoe werk dit? (3) [34] Koprey ore LANL NTA) 28 ose
Downloaded from hlayiso.com Computer Studies/HG/P2 10 DBE/2013 SCE 5.8 5.8.1 State ONE disadvantage of using satellite communication. (1) 5.8.2 Besides cellphone technology, give ONE example of where satellite communication is commonly used today. (1) 5.9 GPRS allows one Internet access. State THREE advantages of using this technology. (3) 5.10 | What is the purpose of RAID technology and how does it work? (3) [34] Conran rosne NAN 0 A Pose um ove
Downloaded from hlayiso.com Rekenaarstudie/HG/V2 17 DBE/2013 SSE VRAAG 6: SOSIALE IMPLIKASIES 6.1 6.2 6.3 6.4 6.5 6.6 6.7 6.8 6.9 Verskeie metodes word gebruik om die sekuriteit van inligting op die Internet te waarborg. Verduidelik hoe die volgende metodes vir iemand toegang tot inligting op die Internet gee: 6.1.1 Sleutelstawing ('keylogging’) 6.1.2 Strikroof (‘phishing’) 6.1.3 ‘BYOD' (‘bring your own device to work’) Verduidelik hoe asimmetriese enkripsie werk. Die Wet op Elektroniese Kommunikasie, 2002, (Wet 25 van 2002) maak voorsiening vir die regte van individue. Wat is die doel van die ELO (‘EULA’)? VoIP is tegnologie wat deesdae algemeen gebruik word. 6.4.1 Waarvoor staan VoIP? 6.4.2 Gee EEN voordeel van VoIP. Wat is die implikasies van sagtewareroof vir die ontwikkelaars van rekenaarprogramme? Gee EEN voorbeeld van gratis en oopbronprogrammatuur wat vir alledaagse woordverwerking gebruik kan word. Gestremde mense word deur baie maatskappye in diens geneem. Noem EEN toestel wat 'n fisies gestremde persoon kan help om 'n rekenaar effektief te gebruik. Slimkaarte (‘smart cards') word algemeen in Suid-Afrika gebruik. 6.8.1 Wat is 'n slimkaart? 6.8.2 Gee EEN voorbeeld en verduidelik kortliks die voordeel van die gebruik van slimkaarte. Ons werk in 'n toenemend mobiele wéreld. 6.9.1 Wat is 'n mobiele kantoor? 6.9.2 Noem EEN nadeel van 'n mobiele kantoor. cee amie CUI AAEN UAE Bieal om assebiie (1) (1) (1) (2) (1) (1) (1) (2) (1) (1) (1) (2) (1) (1) [17]
Downloaded from hlayiso.com Computer Studies/HG/P2 11 DBE/2013 SCE QUESTION 6: SOCIAL IMPLICATIONS 6.1 6.2 6.3 6.4 6.5 6.6 6.7 6.8 6.9 Several methods are used to ensure security of information on the Internet. Explain how the following methods allow someone access to information on the Internet: 6.1.1 Keylogging 6.1.2 Phishing 6.1.3 BYOD (bring your own device to work) Explain how asymmetrical encryption works. The Electronic Communications Act, 2002 (Act 25 of 2002) makes provision for the rights of individuals. What is the purpose of the EULA? VoIP is technology that is widely used today. 6.4.1 What does VoIP stand for? 6.4.2 Give ONE advantage of VoIP. What are the implications of software piracy for the developers of computer software? Give ONE example of free and open-source software that can be used for day-to-day word-processing. Disabled people are employed in many companies. State ONE device that could assist a physically disabled person to use a computer effectively. Smart cards are widely used in South Africa. 6.8.1 What is a smart card? 6.8.2 Give ONE example and briefly explain the advantage of using smart cards. We work in an increasing mobile world. 6.9.1 What is a mobile office? 6.9.2 State ONE disadvantage of a mobile office. Ca Mts CHOTA OAR UA Pease lum over (1) (1) (1) (2) (1) (1) (1) (2) (1) (1) (1) (2) (1) (1) [17]
Downloaded from hlayiso.com Rekenaarstudie/HG/V2 12 DBE/2013 SSE VRAAG 7: DELPHI-/TURBO PASCAL-PROGRAMMERING 7 'n Program vereis dat die gebruiker die graad van 'n hoérskoolleerder intik. Gebruik hierdie situasie om die verskil tussen geldige en korrekte data te verduidelik. (2) 7.2 Gegee: SENTENCE:= 'I am writing this exam'; Skryf die programstelling(s) om die woord ‘writing’ uit die string SENTENCE te verwyder. (4) 7.3 Watter van die volgende herhalingstrukture sal die geskikste wees vir die aksies hieronder? (a) While ... do begin ... end; (b) For ... do begin ... end; (c) Repeat ... until ...; 7.3.1 Lees deur items in 'n teksléer. (2) 7.3.2 Genereer 'n lys van 20 ewekansige nommers groter as 100. (2) 7.4 Ses ewekansige nommers moet geselekteer word vir 'n bonusprys by die skool se atletiekdag. Slegs die nommers wat op die toegangskaartjies verskyn sal geldige prysnommers wees. Al die toegangskaartjies se nommers is in 'n skikking genaamd PRYSE ingelees. Daar is 'n onbekende getal inskrywings (‘count’). Skryf die programkode vir die prosedure select om SES ewekansige nommers tussen 1 en die getal inskrywings te genereer en stoor die wennommer in 'n ander skikking genaamd WENNERS. Vertoon die inhoud van die skikking WENNERS. (8) [18] TT FAIA AO OE Blea! om assebler
Downloaded from hlayiso.com Computer Studies/HG/P2 12 DBE/2013 SCE QUESTION 7: DELPHI/TURBO PASCAL PROGRAMMING 7.1 A program requires the user to enter the grade of a high school learner. Use this situation to explain the difference between valid and correct data. (2) 7.2 Given: SENTENCE:= 'I am writing this exam'; Write the program statement(s) to remove the word ‘writing’ from the string SENTENCE. (4) 7.3 Which of the following loop structures would be most suitable for the actions below? (a) | While ... do begin ... end; (b) For... do begin ... end; (c) Repeat... until ...; le Read through items in a text file. (2) 7.3.2 Generate a list of 20 random numbers greater than 100. (2) 7.4 Six random numbers need to be selected for a spot prize at the school sports day. Only those numbers that appear on entry tickets will be valid prize numbers. All the entry ticket numbers have been read into an array named PRIZES. There is an unknown number of entries (count). Write the program code for the procedure select to generate SIX random numbers between 1 and the number of entries and store that winning number in another array named WINNERS. Display the contents of the array WINNERS. (8) [18] Coyhosaned CAN NAN) 35
Downloaded from hlayiso.com Rekenaarstudie/HG/V2 13 DBE/2013 SSE VRAAG 8: DELPHI-/TURBO PASCAL-PROGRAMMERING 8.1 Gegee: 'n 2-dimensionele skikking genaamd LETTERS. A B c D E R F D Ww Ww WwW = R 7 7 G H J K L P R T Y X xX Zz xX {eo} F G H A Ww Q E R I U T $s D EF G J B Y H 8.1.1 Noem die tipe verklaring vir die tweedimensionele —skikking LETTERS, wat 6 rye en 8 kolomme sal bevat om karakters te stoor. (3) 8.1.2 Skryf die programkode-segmente om die getal H's in die skikking LETTERS te bepaal. (7) 8.2 'n Teksléer, EMAIL.TXT, is geskep met die volgende inligting: "Ek benodig opleiding in hoe om met kodes te werk. Kontak my asseblief dringend om my te help.” Die volgende prosedure CODEIT word gegee. Die doel is om alle klinkers uit die teks te verwyder, die getal klinkers wat verwyder is, te tel en om die teks reél vir reél om te draai. Vertoon die gekodeerde boodskap en die getal klinkers. 8.2.1 8.2.2 8.2.3 8.2.4 8.2.5 Kopiereg voorbehou Beantwoord die vrae wat volg om die prosedurekode te voltooi. Procedure CODEIT(var sentence:string;var nom: integer) ; Verduidelik waarom 'sentence' 'n verwysingsparameter is. (2) Var t£ : text; Verklaar enige ander veranderlikes wat nodig is. (2) Begin Verbind die interne léer met die eksterne léer. (2) Reset (tf); Laat die gebruiker toe om deur die teksléer te werk. (1) Begin Lees een reél uit die léer. (2) CANIN AOEL OU A A Bieat om asseblet GAUTENG
Downloaded from hlayiso.com Computer Studies/HG/P2 13 DBE/2013 SCE QUESTION 8: DELPHI/TURBO PASCAL PROGRAMMING 8.1 Given: A 2-dimensional array called LETTERS. OD |x |x |S |> TIOIN|X/S|0 O/—|1|A\4 |v C/O \j4a/<)7 Zla\|xrl\<|@\|o o/s|x|c |S |w @ |m |< |r jm jo q|/0|0/a|m Y 8.1.1 8.1.2 State the type declaration for the two-dimensional array LETTERS, that will have 6 rows and 8 columns to store characters. Write the program code segments to determine the number of Hs in the array LETTERS. 8.2 A text file, EMAIL.TXT has been created with the following information: "| really need some training in how to work with codes. Please contact me urgently to help me in my endeavour." The following procedure CODEIT is given. The purpose is to remove all vowels from the text, to count the number of vowels removed and to reverse the text line by line. Display the coded message and number of vowels. Answer the questions that follow to complete the procedure code. 8.2.1 8.2.2 8.2.3 8.2.4 8.2.5 Copyright reserved Procedure CODEIT(var sentence:string;var num: integer) ; Explain why 'sentence' is a reference parameter. Ver Gh text. Declare any other variables that are needed. Begin Link the internal file to the external file. Reset (tf); Allow the user to work through the text file. Begin Read one line from the file. (NN AON C0 A Pease turn over G4UTENG (7) (2) (2) (1) (2)
Downloaded from hlayiso.com Rekenaarstudie/HG/V2 14 DBE/2013 SSE 8.2.6 Verwyder enige klinkers, draai die teks om en tel die getal klinkers. end; (9) 8.2.7 Maak die léer toe. (1) 8.2.8 Stuur die inligting terug na die hoofprogram. End; (2) [31] Koper voted MUNN NNN se
Downloaded from hlayiso.com Computer Studies/HG/P2 14 DBE/2013 SCE 8.2.6 Remove any vowels, reverse the text and count the number of vowels. (9) end; 8.2.7 Close the file. (1) 8.2.8 Send the information back to the main program. End; (2) [31] Coprnosned NN UANN)35
Downloaded from hlayiso.com Rekenaarstudie/HG/V2 15 DBE/2013 SSE VRAAG 9: DELPHI-/TURBO PASCAL-PROGRAMMERING Die dataléer OLYMPICS.DAT bestaan uit die naam en punte van elke deelnemende land. Voorbeeld van data : South Africa 29 Kenya 35 Sudan 1 Die volgende veranderlikes is verklaar: Type REC = record Country : string[25]; Points: integer; End; Var PyvanLand : file of REC; LandData : REC; Str10 : string[10]; {die léer is toegewys en herset} 9.1 Skryf die programstellings om die 10° rekord in die dataléer te lees. (3) 9.2 Voltooi die funksie hieronder wat 'n rekord uit die hoofprogram ontvang en nagaan of enige punte aan die rekord toegeken is of nie. Skryf die volledige funksie uit. function Nagaan(.........) : boolean; begin «.. .programkode end; (7) [10] TOTAAL: 200 Korg voteou AA 0
Downloaded from hlayiso.com Computer Studies/HG/P2 15 DBE/2013 SCE QUESTION 9: DELPHI/TURBO PASCAL PROGRAMMING The data file OLYMPICS.DAT consists of the name and points of each participating country. Example of information: South Africa 29 Kenya 35 Sudan 1 The following variables have been declared: Type REC = record Country : string[25]; Points: integer; End; var PofCountry : file of REC; CountryData : REC; Str10 : string[10]; {the file has been assigned and reset} 9.1 Write the program statements to read the 10" record in the data file. (3) 9.2 Complete the function below that receives a record from the main program and checks whether any points have been assigned to the record. Write out the complete function. function Checking () 3): boolcan, begin w..program code end; (7) [10] TOTAL: 200 Copyont reseed Ln

Study this subject

More from Grade 12 Information Technology

View all