This section provides a quick preview of questions from the document. It may not display every question or the complete wording of each one. For the full content, including diagrams, tables and other information, view the original PDF above.
Q1โ Section header โ
1.1Button [1.1 Add device Add the Change colour of rgpQ1_1
1.2Button [
1.2Apply
1.2.1Retrieve age from edtQ1_2 and convert to integer
1.2.2If (checkbox not ticked\ then Display suitable message using ShowMessageDialog
1.2.3if (age 16\ YearToApply = CURRENT_ YEAR + (16 iAge\ Display suitable message using ShowMessageDialog in first line of text
1.2.4if (checkbox is checked and age > = 16\ Change the text of btnQ1_2 Note: Also accept lse with correct nested with both
1.3Button [1.3 Fractions] Initialise all three variables Total = 0 Top = 1 Bottom =
1.4.1 Button [1.4 .1 Count letter Extract letter from edtQ1_4_1 and convert sentence and
1.4.2Button [1.4.2 Longest word] Add space at the end of sentence Initialise Large = 0 // any value < 1 Loop while
Q2โ Section header โ
2.1SQL statements
2.1.1Button [2.1.1 List of bookings] SELECT BookingNum, BookingDate FROM tblBookings ORDER BY BookingDate
2.1.2Button
2.1.2Update test venue] UPDATE tblBookings SET TestVenue = "Headquarters" WHERE TestVenue IS NULL
2.1.3Button
2.1.3Bellville bookings] SELECT BookingNum,LDriverName,LDriverSurname FROM tblBookings,tblLDrivers WHERE tblBookings.LDriverID = tblLDrivers.LDriverID AND tblBookings.TestVenue = "Bellville" // or no table
2.1.4Button
2.1.4Licence types] SELECT LEFT(BookingNum,1\ AS [Licen Type ],
2.1.5Button [2.1.5 Remove bookings DELETE FROM tblBookings WHERE TestVenue = "Pretoria" AND BookingDate BETWEEN
Q2โ Section header โ
2.2DATABASE MANIPULATION using Delphi code
2.2.1Button [2.2.1 Bookings per gender Go to first record in tbl Bookings Loop until the end of the tblBookings
2.2.2Button [2.2.2 Display bookings for a learner driver Go to the first record of tblBookings Loop until the end of the tblBookings
2.2.3Button [2.2.3 Add learner driver] tblLDrivers.Insert tblLDrivers['LDriverID'] := '0405060708091' tblLDrivers['LDriverName'] := 'Trish' tblLDrivers['LDriverSurname'] := 'Malope'
Q3โ Section header โ
3.1.1Function compileTripNum: Repeat Generate a random number of
3.1.2Constructor Create: Header with correct parameter of the correct type
3.1.3Function getDistance: Function heading with correct Integer return type
3.1.4Procedure setDistance: Procedure heading with correct parameter fDistance = parameter value
3.1.5Function determineTruckType Function heading with correct string return type Test if distance =0, set result to 'No distance' Test if (fLoad <= 1000\
Q3โ Section header โ
3.2.1Button
3.2.1Create trip Extract values from components Instantiate the object with the provided values objTrip:= TDeliveryTrip.create (sDepartureCity ,sDestinationCity, rLoad\ Correct number of parameters
3.2.2Button [3.2.2 Determine and set distance] Assign and reset file
3.2.3Button [3.2.3 Determine truck type] Call the determineTruckType method Display the truck type in the edit box edtQ3_2_3 Subtotal: 19 TOTAL SECTION C:
Q4โ Section header โ
4.1Button [4.1 Display] Display Heading Loop from 1 to number of elements Display
4.2Button [
4.2xit parking area Extr act regN um from cmbQ4 Extract exit
Q1โ Section header โ
Q2โ Section header โ
Q3โ Section header โ
Q4โ Section header โ
Q1โ Section header โ
1.13 m arks // ===================================================================== procedure TfrmQuestion1.btnQ1_1Click(Sender: TObject\ begin rgpQ1_1. Items.Add('Tablet'\ rgpQ1_1. ItemIndex := 0;
Q1โ Section header โ
Q1โ Section header โ
Q1โ Section header โ
Q1โ Section header โ
4.28 m arks // ===================================================================== procedure TfrmQuestio n1.btnQ1_4_2Click(Sender: TObject\ var sSentence : String ; iLarge, k, iLength : integer ; begin
Q2โ Section header โ
Q2โ Section header โ
Q2โ Section header โ
Q2โ Section header โ
Q2โ Section header โ
Q2โ Section header โ
Q2โ Section header โ
Q2โ Section header โ
Q2โ Section header โ
Q2โ Section header โ
Q2โ Section header โ
Q2โ Section header โ
Q2โ Section header โ
Q2โ Section header โ
Q3โ Section header โ
Q3โ Section header โ
Q3โ Section header โ
Q3โ Section header โ
3.1.32 m arks // ===================================================================== function TDeliveryTrip.getDistance: integer; begin result := fDistance; end; // =====================================================================
Q3โ Section header โ
Q3โ Section header โ
Q3โ Section header โ
Q3โ Section header โ
Q3โ Section header โ
Q3โ Section header โ
Q3โ Section header โ
Q4โ Section header โ
Q4โ Section header โ
Q4โ Section header โ
Q4โ Section header โ