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 Display shape] Check if itemIndex = 0 / item is circle Change shape property of shpQ1_1 to stCircle Else Change shape property of shpQ1_1 to stRectangle
1.2Button [1.2 Display colour] Correct use of the colours selected from the combo boxes Check if the colours selected in either of the combo boxe is red and blue: if ((sColor1 = 'Red'\ AND (sColor2 = '
1.3Button [1.3 Average] Initialise variables (sum and counter\ Test if the text file does not exist (Try/FileExist
1.4Button [1. Display pattern] Extract the number of rows selected from spnQ1_4 Outer loop from 1 to the number of rows Initialise string Nested inner loop from 1 to outer loop Add outer loop counter value
1.5Button [1. Sum of ASCII values Extract word from list box Initialise sum Loop from 1 to length of word Test if character is uppercase alphabet character Add the ASCII value of the character
Q2โ Section header โ
2.1SQL statements
2.1.1Button [2.1.1 USA companies
2.1.2Button [2.1.2 Year r elease Also accept:
2.1.3Button [2.1.3 Genre] Also accept:
2.1.4Button [2.1.4 Average i ncome per year Also accept:
2.1.5Button [2.1.5 Remove game Subtotal:
Q2โ Section header โ
2.2Database Manipulation
2.2.1Button [2.2.1 Update genre Go to the first record in Games Loop through tblGames Test if Tetris is part of the field
2.2.2Button [2.2.2 Show detail] Go to the first record in tblGames Loop through tblGames Test if tblGames[' Game Title'] = sGame Go to the first record in
Q3โ Section header โ
3.1.1Constructor create method: Heading with four parameter values (String, Boolean, Integer, String\ Set String parameter Set to Boolean parameter
3.1.2onlineStatus function: function heading with String return type Check if fOnline = True Result = 'Yes' Else Result = 'No'
3.1.3updateDownloadCount procedure: procedure heading with integer parameter fDownloadCount = fDownloadCount parameter
3.1.4determinePopularity function: function heading with String return type Check if fOnline = True fDownloadCount < 100000 Result := 'Not popular' Else if fDownloadCount < 500000 Result := 'Popular'
3.1.5toString function Result : = 'Name: ' + fName + #13 + 'Internet required: ' + onlineStatus + #13 + 'Number of downloads: ' + IntToStr(fDownloadCount\ + #13 + 'Platform: ' + fPlatform;
Q3โ Section header โ
3.2.1Button [3.2.1 Instantiate object] objGame := TGame.create (sName, bOnline, iNumberOfDownloads, sPlatform\ Display objGame information in redQ3
3.2.2Button [3.2.2 Game compatibility] Check if (bOnline = objGame.getOnline\ AND (sPlatform = objGame.getPlatform\ ShowMessage('Game is compatible with user requirements '\
3.2.3Button [3.2.3 Update downloads] Extract number entered using dialog box and typecast to integer Call the updateDownloadCount method with the extracted number as
3.2.4Button [3.2.4 Popularity] Call the getN ame and the determinePopularity methods Display the name of the game as well as the popularity in redQ3 in the correct format Subtotal Form class:
4.3Button [
4.3Distinct numbers Concepts Create String temporary array with unique numbers Outer loop Inner loop
Q1โ Section header โ
Q2โ Section header โ
Q3โ Section header โ
Q4โ Section header โ
Q1โ Section header โ
Q1โ Section header โ
Q1โ Section header โ
Q1โ Section header โ
Q1โ Section header โ
Q1โ Section header โ
Q1โ Section header โ
Q1โ 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 โ
2.2.1marks //=============================================================================== GameTitle']\ begin tblGames.Edit; tblGames['Genre'] := 'Puzzle'; tblGames.Post; end; tblGames.Next; end; end; //===============================================================================
Q2โ Section header โ
Q3โ Section header โ
Q3โ Section header โ
Q3โ Section header โ
Q3โ Section header โ
Q3โ Section header โ
Q3โ Section header โ
Q3โ Section header โ
Q3โ Section header โ
Q3โ Section header โ
3.1.410 marks // ============================================================================== // ==============================================================================
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 โ