Skip to content

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

Question paperInformation TechnologyGrade 12201227 pages

Grade 12 Information Technology Paper 2 question paper from the NSC June 2012 (Afrikaans), 27 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 basic education Department: Basic Education REPUBLIC OF SOUTH AFRICA SENIOR CERTIFICATE EXAMINATION/ SENIORSERTIFIKAAT-EKSAMEN COMPUTER STUDIES P2/REKENAARSTUDIE V2 HIGHER GRADE/HOER GRAAD 2012 MARKS/PUNTE: 200 TIME/TYD: 3 hours/uur COMPUTER STUDIES/REKENAARSTUDIE HG : P2/v2 7241 72412 This question paper consists of 14 pages./ Hierdie vraestel bestaan uit 14 bladsye. X@5 wt GAUTENG Copyright reserved/Kopiereg voorbehou Please turn over/Blaai om asseblief
Downloaded from hlayiso.com Rekenaarstudie/HG/V2 2 DBE/2012 SSE INSTRUKSIES EN INLIGTING to Beantwoord AL die vrae. 2. Die programmeringsvrae mag met potlood geskryf word. revere vootomes YIN UN UNTTNL IN| === 22/0 25
Downloaded from hlayiso.com Computer Studies/HG/P2 2 DBE/2012 SCE INSTRUCTIONS AND INFORMATION 1. Answer ALL the questions. 2. The program questions may be written in pencil. Copyrant reserved UIT ANAC A AA ETA ianaiinaedl
Downloaded from hlayiso.com Rekenaarstudie/HG/V2 3 DBE/2012 SSE VRAAG 1: BOOLESE ALGEBRA 1.1 Gegee: 'n Karnaugh-diagram wat funksie F verteenwoordig. pq\tw 1 1 1 1 1 1 7 Skryf die gegewe funksie in S-notasie. (2) 1.1.2 Teken die Karnaugh- diagram oor en toon al die bewerkings om F(p,q,t,w) in hulle eenvoudigste vorm te skryf. (6) 7 Vereenvoudig die Boolese funksie: F(x,y,Z) = xyz +x'yz+y'z (4) ve Vereenvoudig die uitdrukking p'q'+ p tot EEN term. (3) 1.4 Teken 'n logika-stroombaan vir die funksie F(a,b,c) = ab'ct+ac’. (3) [18] deal leila FOO UO A008 0 A Bizalom assenles GAUTENG
Downloaded from hlayiso.com Computer Studies/HG/P2 3 DBE/2012 SCE QUESTION 1: BOOLEAN ALGEBRA 1.1 Given: A Karnaugh map representing function F. pq\tw 1 il 1 1 1 4 1.1.1 Write the given function in S-notation. (2) 7) Redraw the Karnaugh map and show all the working to write down F(p,q,t,w) in its simplest form. (6) 7 Simplify the Boolean function: F(%y,Z) = xyz +x'yzt+y'z (4) 1.3 Simplify the expression p'q'+ p to ONE term. (3) 1.4 Draw a logical circuit for the function F(a,b,c) = ab'ct+ac'. (3) [18] ceed INA Geta
Downloaded from hlayiso.com Rekenaarstudie/HG/V2 4 DBE/2012 SSE VRAAG 2: REKENAARARGITEKTUUR Die advertensie hieronder is vir 'n rekenaar. Intel Pentium Dual Core-verwerker B950 1.1 GHz 2 GG (‘GB’) -geheue 500 GG (‘GB’) -hardeskyf 15.6"-skerm DVD-skrywer Windows 7 Home Basic 12 maande waarborg 2.1 Skryf die naam neer van 'n vervaardiger van verwerkers, buiten die een wat in die advertensie gegee word. 2.2 Wat is 'n ‘dual core'-verwerker? 7 Skryf die korrekte opsie vir elk van die volgende neer: FireWire is 'n 2.3.1 (parallelle/serie-) busprotokol wat gewoonlik in 'n 2.3.2 (digitale kamera/USB-muis) gebruik word. 2.4 Kasgeheue is 'n standaardkenmerk van moderne rekenaars. 2.4.1 Waar sal jy die kasgeheue vind? 2.4.2 Verduidelik waarom kasgeheue so belangrik is. 2.5 Verduidelik wat elk van die volgende terme beteken: _ Oorklok (‘Overclocking’) 2.5.2 Klokvermenigvuldiging (‘Clock multiplication’) 2.6 Flitsgeheue (‘Flash memory’) kom in baie verskillende groottes voor. 2.6.1 Watter spesiale kenmerk het flitsgeheue (‘flash memory')? 2.6.2 Noem EEN belangrike verskil tussen flitsgeheue (‘flash memory’) en gewone 'RAM'. 2.7 Waarom is 'DDR RAM' vinniger as 'SDRAM'? 2.8 Gee 'n voorbeeld van waar elk van statiese, bestendige en dinamiese 'RAM' gebruik word. Kopiereg voorbehou GAUTENG Blaai om asseblief (1) (2) (2) (1) (3) (2) (2) (1) (1) (1) (3)
Downloaded from hlayiso.com Computer Studies/HG/P2 4 DBE/2012 SCE QUESTION 2: COMPUTER ARCHITECTURE The advertisement below is for a computer. Intel Pentium Dual Core processor B950 1.1GHz 2 GB memory 500 GB hard disk drive 15.6" screen DVD writer Windows 7 Home Basic 12 month warranty 2.1 Write down the name of a manufacturer of processors, other than the one given in the advertisement. 2.2 What is a dual core processor? 2.3 Write the correct option for each of the following: FireWire is a 2.3.1 (parallel/serial) bus protocol which is commonly used in a 2.3.2 (digital camera/USB mouse). 2.4 Cache memory is a standard feature of modern computers. 2.4.1 Where will you find the cache memory? 2.4.2 Explain why cache memory is so important. 2.5 Explain what each of the following terms mean: 2.5.1 Overclocking 2.5.2 Clock multiplication 2.6 Flash memory comes in many different sizes. 2.6.1 What special characteristic does flash memory have? 2.6.2 State ONE important difference between flash memory and normal RAM. _ Why is DDR RAM faster than SDRAM? 2.8 Give an example where each of static, non-volatile and dynamic RAM is used. Copyright reserved FADIA ON AGA A A sadainied (1) (2) (2) (1) (3) (2) (2) (1) (1) (1) (3)
Downloaded from hlayiso.com Rekenaarstudie/HG/V2 5 DBE/2012 2.9 2.10 2.11 2.12 2.13 2.14 SSE Die rekenaar het drie interne busse. 2.9.1 Wat is 'n bus? 2.9.2 Deur die hoeveelheid bisse te vermeerder, sal twee van die busse die werkverrigting van die rekenaar verbeter. Noem dié TWEE busse. 2.10.1 Wat is 'n hardeware-onderbreking? 2.10.2 Gee EEN voorbeeld waar 'n hardeware-onderbreking gebruik word. Pyplynverwerking is 'n kenmerk van moderne rekenaars. 2.11.1 Definieer pyplynverwerking. a. Sekere probleme kan met pyplynverwerking voorkom. Noem EEN probleem en gee 'n oplossing vir hierdie probleem. Die RLE (‘ALU’) is 'n komponent van die SVE (‘CPU’). 2.12.1 Wat is die doel van die RLE (‘ALU')? 2.12.2 Noem nog EEN komponent van die SVE (‘CPU’) en beskryf die funksie daarvan. 2.12.3 Noem die VIER stappe van die masjiensiklus. Voordat jy 'n drukker kan gebruik, moet jy drywerprogrammatuur installeer. Verduidelik waarom drywerprogrammatuur nodig is. Wat is die funksie van 'n ‘AGP'-gleuf in 'n rekenaar? Koper voobonou UH LA Biom assblr (1) (2) (1) (3) (2) (1) (2) (4) (2) (2) [40]
Downloaded from hlayiso.com Computer Studies/HG/P2 5 DBE/2012 SCE 2.9 The computer has three internal buses. 2.9.1 What is a bus? (1) 7 By increasing the number of bits, two of the buses will increase the performance of the computer. Name these TWO buses. (2) 2.10 2.10.1 What is a hardware interrupt? (1) 2.10.2 Give ONE example of where a hardware interrupt is used. (1) 2.11 Pipelining is a feature of modern computers. 2.11.1 Define pipelining. (3) 2.11.2 Some problems can occur with pipelining. State ONE problem and give a solution to this problem. (2) 2.12 The ALU is part of the CPU. 2.12.1 What is the purpose of the ALU? (1) 2.12.2 Name ONE other component of the CPU and describe its function. (2) 2.12.3 Name the FOUR steps of the machine cycle. (4) 2.13 Before you can use a printer, you need to install drivers. Explain why a driver is needed. (2) 2.14 What is the function of an AGP slot in a computer? (2) [40] lane FOI ATAU A A Pease tn over
Downloaded from hlayiso.com Rekenaarstudie/HG/V2 6 DBE/2012 SSE VRAAG 3: STELSELPROGRAMMATUUR 3.1 Noem TWEE soorte inligting wat in die KMOH (‘CMOS’) gestoor word. (2) 3.2 Wat is die funksie van die BIUS ('BIOS')? (2) 3.3 Daar is baie USB-toestelle wat inprop-en-speel (‘plug and play’) -toestelle is. 3.3.1 Waarvoor staan USB? (1) 3.3.2 Verduidelik inprop-en-speel (‘plug-and-play’). (2) |) Behalwe inprop-en-speel (‘plug-and-play’), noem TWEE ander voordele van die gebruik van USB. (2) 3.4 3.4.1 Waarna verwys die term oopbronprogrammatuur? (2) 3.4.2 Gee 'n voorbeeld van oopbronprogrammatuur wat as 'n bedryfstelsel gebruik kan word. (1) 3.5 Noem DRIE doelwitte van 'n bedryfstelsel. (3) 3.6 Die kern van die bedryfstelsel is verantwoordelik vir stoorbestuur. Verduidelik wat dit beteken. (2) cy Die volgende boodskap het op die skerm verskyn: 'Low on virtual memory’. 3.7.1 Waar word virtuele geheue gevind? (1) _ Verduidelik hoe virtuele geheue die verwerkingspoed van die rekenaar verbeter. (2) 3.8 Verduidelik wat met elk van die volgende terme bedoel word: 3.8.1 Multitaakverwerking (2) 3.8.2 Hiperryging ('Hyperthreading') (2) 3.8.3 Sparteling (‘Thrashing’) (2) 3.8.4 Fout-Staak-kompileerder (2) 3.9 Buiten die gebruik van antivirusprogrammatuur, noem TWEE huishoudingstake wat gereeld uitgevoer moet word. (2) Kopiereg voorbeniou CURT UU ATE A A Baal om assenies GAUTENG
Downloaded from hlayiso.com Computer Studies/HG/P2 6 DBE/2012 SCE QUESTION 3: SYSTEM SOFTWARE 3.1 Name TWO types of information stored in the CMOS. (2) 3.2 What is the function of the BIOS? (2) 3.3 There are many USB devices that are plug-and-play devices. 3.3.1 What does USB stand for? (1) 3.3.2 Explain plug-and-play. (2) 3.3.3 Other than ‘plug-and-play, state TWO other advantages of using USB. (2) 3.4 3.4.1 What does the term open-source software refer to? (2) 3.4.2 Give an example of open-source software that could be used as an operating system. (1) 3.5 State THREE goals of an operating system. (3) 3.6 The kernel of the operating system is responsible for storage management. Explain what this means. (2) 3.7 The following message appeared on the screen: 'Low on virtual memory’. 3.7.1 Where is virtual memory found? (1) 3.7.2 Explain how virtual memory improves the processing speed of the computer. (2) 3.8 Explain what is meant by each of the following terms: 3.8.1 Multitasking (2) 3.8.2 Hyperthreading (2) 3.8.3 Thrashing (2) 3.8.4 Error-terminating compiler (2) 3.9 Other than using antivirus software, name TWO housekeeping tasks that should be carried out regularly. (2) Conrintesoned I YA A Pesotum over
Downloaded from hlayiso.com Rekenaarstudie/HG/V2 i DBE/2012 SSE 3.10 3.10.1 Wat is 'n uitvoerbare virus en hoe word dit versprei? (3) 3.10.2 Wat word bedoel as 'n virus gekwarantyn word? (1) 3.11 3.11.1 Wat is 'n ingebedde bedryfstelsel? (1) ee Gee EEN voorbeeld van 'n ingebedde bedryfstelsel. (1) [36] VRAAG 4: DATAKOMMUNIKASIE 4.1 'n Skool wil 'n nuwe rekenaarsentrum installeer. Gee aan die skoolhoof TWEE redes waarom die rekenaars aan 'n netwerk gekoppel moet wees. (2) 42 Gee die korrekte rekenaarterm vir elke stelling: 4.2.1 Transmissie wat op vasgestelde intervalle en teen vasgestelde koerse plaasvind (1) 4.2.2 'n Gewone telefoonlyn wat in 'n toegewyde kanaal verander is vir baie vinniger toegang (1) oe Gelyktydige kommunikasie in beide rigtings (1) 4.3 Die skoolhoof wil weet hoe die rekenaars aan mekaar gekoppel moet word. 4.3.1 Gee TWEE redes waarom 'n ster-topologie 'n goeie opsie vir 'n skool se rekenaarsentrum is. (2) 4.3.2 Noem EEN nadeel van die gebruik van 'n tekenring (‘token-ring’) -netwerk. (1) 4.4 Kabels is deel van 'n netwerk. Die skool het twee opsies: 'UTP’- of veseloptiese kabel. Noem EEN kenmerk van elke tipe kabel hierbo en doen 'n aanbeveling aan die skool oor watter tipe kabel om te gebruik. (3) 45 Noem die funksie van elk van die volgende netwerktoestelle: 4.5.1 Deurgangspoort (‘Gateway’) (1) 4.5.2 Roeteerder (1) 4.6 Noem TWEE draadlose media wat geskik is om geboue wat ver van mekaar af staan, met mekaar te koppel sodat datakommunikasie kan plaasvind. Gee 'n beskrywing van elk van bogenoemde media. (4) opiereg voorbehiou FOUR AE A A mended
Downloaded from hlayiso.com Computer Studies/HG/P2 7 DBE/2012 SCE 3.10 3.10.1 What is an executable virus and how does it spread? (3) 3.10.2 What does it mean when a virus is quarantined? (1) 3.11 of What is an embedded operating system? (1) 3.11.2 Give ONE example of an embedded operating system. (1) [36] QUESTION 4: DATA COMMUNICATION 4.1 A school is installing a new computer laboratory. Give the principal TWO reasons why the computers should be networked. (2) 4.2 Give the correct computer term for each statement: 4.2.1 Transmission that occurs at fixed intervals and fixed rates (1) 4.2.2 An ordinary telephone line that has been converted into a dedicated channel for super-fast access (1) 4.2.3 Simultaneous communication in both directions (1) 4.3 The principal would like to know how the computers should be networked. 4.3.1 Give TWO reasons why a star topology would be a good option for a school computer laboratory. (2) 7 State ONE disadvantage of using a token-ring network. (1) 44 Cabling is a part of networking. The school has two options: UTP cable or fibre-optic cable. State ONE characteristic of each type of cable above and make a recommendation to the school on which type of cable to use. (3) 45 State the function of each of the following network devices: 4.5.1 Gateway (1) 4.5.2 Router (1) 4.6 Name TWO wireless media that would be suitable to link buildings that are far apart so that data communication can take place. Give a description of each of the media above. (4) eile CANIM A A Pease tun over
Downloaded from hlayiso.com Rekenaarstudie/HG/V2 8 DBE/2012 SSE 4.7 Die rekenaarbedryf maak gebruik van VoIP-tegnologie. 48 4.9 4.10 4.11 4.12 4.13 4.7.1 Waarvoor staan Vo/P? 4.7.2 Noem die voordeel van VoIP. Waarna verwys bandwydte? 4.9.1 Beskryf kortliks wat /ynskakeling beteken. 4.9.2 Gee 'n voorbeeld van waar lynskakeling gebruik word. Verduidelik kortliks hoe selskakeling werk. Netwerke maak gebruik van protokolle. 4.11.1 Wat is 'n protokol? 4.11.2 FTP is een van die protokolle van die TBP (‘TCP')/IP-groep. Wat is die funksie van die FTP-protokol? 4.11.3 Verduidelik waarna dataoordrag met pariteitskontrolering verwys. Ons ondervind dikwels kragonderbrekings. Noem TWEE strategieé om data op die rekenaars teen sulke kragonderbrekings te beskerm. Gee TWEE redes hoekom dit voordelig is om 'n netwerkadministrateur aan te stel. Koptereg voorbehiou CHUTE UE A A Bear om assebiier (1) (1) (1) (2) (1) (3) (2) (2) (2) (2) (2) [36]
Downloaded from hlayiso.com Computer Studies/HG/P2 8 SCE 4.7 The computer industry makes use of VoIP technology. 4.8 4.9 4.10 4.11 4.12 4.13 4.7.1 What does Vo/P stand for? 4.7.2 State the advantage of VoIP. What does bandwidth refer to? 4.9.1 Briefly describe what line switching means. 4.9.2 Give an example of where line switching is used. Briefly explain how cell switching works. Networks make use of protocols. 4.11.1 What is a protocol? DBE/2012 4.11.2 FTP is one of the protocols of the TCP/IP suite. What is the function of the FTP protocol? 4.11.3 Explain what data transfer with parity checking refers to. We often have power outages. State TWO strategies to protect data on the computers against such power outages. Give TWO reasons why it is advantageous to appoint a network administrator. Conn esoned UNA Please turn over (1) (1) (1) (2) (1) (3) (2) (2) (2) (2) (2) [36]
Downloaded from hlayiso.com Rekenaarstudie/HG/V2 9 DBE/2012 SSE VRAAG 5: SOSIALE IMPLIKASIES | Vergelyk elkeen van die volgende stelle begrippe aan die hand van 'n voorbeeld: 5.1.1 Phishing en identiteitsdiefstal (2) 5.1.2 BSL (‘SSL’) en digitale handtekeninge (2) a7 Daar is begin om sonkragrekenaars aan die mark bekend te stel. Gee EEN voordeel en EEN nadeel van die gebruik van sonkragrekenaars. (2) 5.3 Sosiale netwerk is uiters gewild onder die jeug. 5.3.1 Wat is 'n sosiale netwerk? (2) 5.3.2 Gee EEN voorbeeld van 'n sosialenetwerk-tuiste. (1) 5.4 Verduidelik TWEE maniere waarop biometrika die rekenaarbedryf gehelp het met betrekking tot sekuriteit. (4) 5.5 Wat is 'n voorspraak (‘advocacy’) -webtuiste? (1) 5.6 Beskryf TWEE maniere waarop groenrekenaarstelselgebruik e-rommel sal verminder. (2) 5.7 Waarna verwys rekenaar-etiek? (1) 5.8 5.8.1 Wat is 'n slimkaart (‘smart card’)? (1) 5.8.2 Noem EEN voordeel van die gebruik van 'n slimkaart. Oa fees ertevow NUT) ser
Downloaded from hlayiso.com Computer Studies/HG/P2 9 DBE/2012 SCE QUESTION 5: SOCIAL IMPLICATIONS 5.1 Compare each of the following sets of terms by using an example: 5.1.1 Phishing and identity theft (2) 5.1.2 SSL and digital signatures (2) 5.2 Solar-powered computers are starting to be introduced to the market. State ONE advantage and ONE disadvantage of using solar-powered computers. (2) 5.3 Social networking is very popular among the youth. 5.3.1 What is a social network? (2) _ Give ONE example of a social networking site. (1) 5.4 Explain TWO ways in which biometrics have aided the computer industry with regard to security. (4) ae What is an advocacy website? (1) 5.6 Describe TWO ways in which green computing will reduce e-waste. (2) 5.7 What does computer ethics refer to? (1) 5.8 5.8.1 What is a smart card? (1) 5.8.2 State ONE advantage of using a smart card. (1) [19] Conrintesoved ANA 0 A Pease tum over
Downloaded from hlayiso.com Rekenaarstudie/HG/V2 10 DBE/2012 SSE VRAAG 6: DELPHI/TURBO PASCAL Gegee: 'n 2D-skikking genaamd Matrix wat die volgende elemente bevat: 10 16 6 11 15 7 3 13 8 12 14 1 Wat sal die waarde van die veranderlike 'som' wees nadat elkeen van die volgende stellings uitgevoer is? 6.1 Som:= 0; For ry : = 1 to 3 do For kol:= ry+l1 to 4 do Som := som + matrix[ry,kol]; (2) 6.2 Som:= 0; kol:= 1; For ry : = 1 to 4 do Som := som + matrix[ry,kol]; Inc (kol) ; (2) [4] Kopiereg voorbehou FEO AAA A Beat om assenier GAUTENG
Downloaded from hlayiso.com Computer Studies/HG/P2 10 DBE/2012 SCE QUESTION 6: DELPHI/TURBO PASCAL Given: A 2-D array named Matrix containing the following elements: 4 10 16 6 5 11 15 7 3 13 8 12 14 1 What will the value of the variable 'sum' be after each of the following statements have been executed? 6.1 Sum:= 0; For row : = 1 to 3 do For col:= row+tl1 to 4 do Sum := sum + matrix[row,col]; (2) 6.2 Sum:= 0; col:= 1; For row : = 1 to 4 do Sum := sum + matrix[row,col]; Ine (col) ; (2) [4] Cont esoved NAN A Pease tum oer
Downloaded from hlayiso.com Rekenaarstudie/HG/V2 11 DBE/2012 SSE VRAAG 7: DELPHI/TURBO PASCAL 'n Dataléer genaamd MYBOEKE.DAT is soos volg geskep: Type myboek = record sTitel : string[20]; iJaar : integer; sOuteur: string[25]; sGenre : string[8]; bEerstePublikasie : boolean; rPrys:real; end; var myleer : file of myboek; mydata : myboek; antwoord: string; 7 Skryf stellings vir elk van die volgende neer: Title Laat die gebruiker toe om data vanaf die dataléer te lees. (1) 7.1.2 Vind rekordnommer 23. (2) 7.1.3 Verwyder alle rekords vanaf 'n sekere punt. (2) 7.14 Vertoon iJaar as teks. (1) | Skryf 'n IF-stelling wat slegs die boektitels wat met 'n spesifieke letter begin, en wat deur die gebruiker ingevoer is, sal vertoon. Die IF-stelling moet vir elke boek wat uit die bostaande léer ingelees is, geévalueer word. (4) Koperegveotoou ANTM NUTINI === 222 ase
Downloaded from hlayiso.com Computer Studies/HG/P2 11 DBE/2012 SCE QUESTION 7: DELPHI/TURBO PASCAL A data file called MYBOOKS.DAT has been created as follows: Type mybook = record Sltelen. Sering (20, iYear : integer; sAuthor: string[25]; sGenre : string[8]; bFirstPublication : boolean; rPrice:real; end; var myfile : file of mybook; mydata : mybook; answer: string; 7 Write statements for each of the following: 7.1.1 Allow the user to read data from the data file. (1) 7.1.2 Find record number 23. (2) _ Delete all records from a particular point. (2) 714 Display iYear as text. (1) Ue Write an IF statement that will only list book titles that start with a certain letter that was input by the user. The IF statement must be evaluated for every book that is read from the above-mentioned file. (4) Conrihresned ANA 0 0 Pease tum ovr
Downloaded from hlayiso.com Rekenaarstudie/HG/V2 12 DBE/2012 SSE _ 'n Skikking soos volg is ook verklaar: 7.4 Type myboekskik = array[1..30] of myboek; Var mskikk: myboekskik 1 procedure verwyderdup(var mskikk:myboekskik) ; 2 begin 3 sortskikk(mskikk) ; 7.3.1 Die skikking sal gesorteer word voordat duplikate verwyder word. Voltooi die prosedure om duplikaat-boektitels van die skikking te verwyder. (7) 7.3.2 Wat is die doel van 'Var' in lyn 1? (2) 7.3.3 Verduidelik die verskil tussen 'n verwysingsparameter en 'n waardeparameter. (2) Die volgende sorteerprosedure is gegee: 1 Procedure sortskik(baie:byte) ; 2 Var binne,buite:byte; S Temp :myboek; 4 Begin 5 For buite := baie-1 downto 1 do 6 Begin 7 For binne := 1 to buite do 8 If mskikk[binne] > mskikk[binne+1] 9 Then 10 Begin 11 Temp:=mskikk[binne] ; 12 mskikk[binne] :=mskikk[binne+1]; 13 mskikk[binne+1] :=temp; 14 end; it) end; 16 end; Verduidelik hoe die prosedure werk. Jou verduideliking moet sinvol wees vir 'n graad 10-leerder wat Rekenaarstudie neem, maar nie veel van skikkings weet nie. Jy mag diagramme en lynnommers gebruik om met jou verduideliking te help. (6) [27] feowesvoooou NNN LLIN) 928 se
Downloaded from hlayiso.com Computer Studies/HG/P2 12 DBE/2012 le 74 SCE Also declared is an array as follows: Type mybookarray = array[1..30] of mybook; Var marray: mybookarray 1 procedure removedup(var marray:mybookarray) ; 2 begin 3 sortarray(marray) ; 4 end; 7.3.1 The array will be sorted before duplicates are removed. Complete the procedure to remove the duplicate book titles from the array. (7) 7.3.2 What is the purpose of 'Var' in line 1? (2) ee Explain the difference between a reference parameter and a value parameter. (2) The following sort procedure was given: 1 Procedure sortarray(many:byte) ; 2 Var inner,outer:byte; 3 Temp:mybook; 4 Begin 3) For outer := many-1 downto 1 do 6 Begin dl Bou Inner sl to OutcE do 8 If marray[inner] > marray[inner+1] 9 Then 10 Begin 11 Temp:=marray[inner]; 12 marray[inner] :=marray[inner+1]; 13 marray[inner+1]:=temp; 14 end; its) end; 16 end; Describe how the procedure works. Your explanation should make sense to a Grade 10 learner who does Computer Studies but might not know much about arrays. You may use diagrams and the line numbers to help with your 6) explanation. [27] Coprintesoved NAN A Pease tum vr
Downloaded from hlayiso.com Rekenaarstudie/HG/V2 13 DBE/2012 SSE VRAAG 8: DELPHI/TURBO PASCAL 8.1 Gegee: Var antwoord : Boolean; antwoordl,antwoord2, berek : integer; Begin Eenwaarde := 24; Tweewaarde := 7 ; berek:=eenwaarde mod tweewaarde; antwoord:= (eenwaarde>tweewaard) and ( not(berek > 0) )F End; Bereken die waarde van 'Antwoord'. (2) 8.2 'n Teksléer met inligting van motors, hoeveel kilometer gery is en die hoeveelheid liter petrol wat gebruik is, word MyCar.txt genoem. 'n Voorbeeld van die inligting in die teksléer is: Ford#556#40.6 Hyundai#560#31 .2 Gebruik die programsegment hieronder en geskikte name van veranderlikes om jou te help met die antwoorde op die vrae wat volg. Program karre; Begin Gloc il Verbind die teksléer met MyCar.txt Reset (textf); (3) 8.2.2 WVertoon in opskri te Velometcr per Iiter = While not eof(textf) do Begin (1) 8.2.3 Lees een reél vanaf die teksléer (2) 8.2.4 Vind die '#' in die lyn en plaas die posisie daarvan in 'n veranderlike met die naam posisie (2) G)5455) Gebruik posisie om die kar se naam in 'n veranderlike met die naam mykar te plaas (3) eae UII ATTA EU A Bea! om assepier
Computer Studies/HG/P2 13 DBE/2012 Downloaded from hlayiso.com SCE QUESTION 8: DELPHI/TURBO PASCAL 8.1 8.2 Conran esoned NAN Pease tum over Given: Var answer : Boolean; answerl,answer2, calc : integer; Begin Onevalue := 24; Twovalue := 7 ; Calc:=onevalue mod twovalue; answer:= (onevalue>twovalue) and ( not(calc > 0)); End; Determine the value of 'Answer'. A text file containing details of cars, the kilometres travelled and the number of litres of fuel used is called MyCar.txt. An example of information in the text file is: Ford#556#40.6 Hyundai#560#31.2 Use the program segment below and suitable variable names to help you answer the questions that follow. Program cars; Begin lo 7Acde Connect the text file to MyCar.txt Reset (textf); 2 a Display a heading 'Kilometres per litre'... While not eof(textf) do Begin 8.2.3 Read one line from the text file 62274 Find the '#' in the line and place its position in a variable called place BE 25 Use place to put the car name into a variable called mycar (2) (3) (1) (2) (2) (3)
Rekenaarstudie/HG/V2 End; End. Kopiereg voorbehou Downloaded from hlayiso.com 14 DBE/2012 SSE Gebruik posisie om die kilometers in 'n veranderlike met die naam km te plaas Plaas die liters in 'n veranderlike met die naam leer, Bereken die getal kilometer per liter en plaas die antwoord in 'n veranderlike met die naam resultaat Vertoon die kar se naam, en die waarde van resultaat TOTAAL: GAUTENG (3) (1) (1) (2) [20] 200
Downloaded from hlayiso.com Computer Studies/HG/P2 14 DBE/2012 SCE 8.2.6 Use place to put the kilometres into a variable End; End. Copyright reserved called km Put the litres into a variable called litre Calculate the number of kilometres per litre and put the answer into a variable called result Display the car name, and the value of result TOTAL: GAUTENG (3) (1) (1) (2) [20] 200

Study this subject

More from Grade 12 Information Technology

View all