0% found this document useful (0 votes)
13 views2 pages

Grade 10 PRACTICAL EXAM November Demarcation

The document outlines the structure and content of the Grade 10 IT November Practical Exam, which consists of a Delphi program with various components and functionalities. Key topics include basic Delphi components, variables and data types, algorithms, calculations, conditional structures, loops, debugging, and string handling. The exam is designed to assess students' understanding and application of these concepts within a 2.5-hour timeframe for a total of 120 marks.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views2 pages

Grade 10 PRACTICAL EXAM November Demarcation

The document outlines the structure and content of the Grade 10 IT November Practical Exam, which consists of a Delphi program with various components and functionalities. Key topics include basic Delphi components, variables and data types, algorithms, calculations, conditional structures, loops, debugging, and string handling. The exam is designed to assess students' understanding and application of these concepts within a 2.5-hour timeframe for a total of 120 marks.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Demarcation

Gr 10 IT November Practical Exam


Total Marks: 120
Time: 2 ½ hours
The exam will consist of a single Delphi program with different tab sheets per sub question.

Basic components in Delphi


• Edit, label, button, bitmap button, richedit, memo, datetimepicker, panel, combobox,
radiogroup, checkbox, spinedit, image, shape
• Changing the properties of components using code:
o Enabled, visible, caption, text, font size, font name, font style, color, width, height, top,
left, stretch, load picture into image component
• Using methods such as setfocus and clear.
• Setting tab stops in a richedit.
• Dialog boxes: Inputbox and showmessage

Variables and datatypes


• String, Char, Integer, Real, Boolean, TDate
• Local vs global variables
• Type casting: IntToStr, FloatToStrF, StrToInt, StrToFloat, DateToStr, StrToDate
• Constants

Events
• Button
• Form OnActivate
• OnClick of an object.

Algorithms such as
• Determine smallest, largest value of more than two values
• Swapping values
• Counting the number of instances of input
• Determining totals and averages
• Basic calculations such as calculating area, volume, VAT, discount, percentage
• Isolate digits in an integer number
• Determine factors and multiples of another number
• Determine whether a number is even or odd, prime, composite
• Determine the lowest common multiple (LCM) and greatest common divisor (GCD)
• Determine the current age based on a given date of birth or ID number
• Convert a decimal number to a binary number or hexadecimal number, and vice versa

1
Calculations
• Operators ( + , - , * , /) and order of precedence
• Integer Division: MOD and DIV
• Comparison operators and performing logical comparisons (>, <, >=, <=, =, <>)
• Built-in Functions:
o Mathematical:
▪ random, randomrange, round, roundTo, trunc, frac, odd, sqr, sqt, power, ceil,
floor, pi, abs
o Date:
▪ FormatDateTime, Date, Now, Time, Dayof, Monthof, Yearof, CurrentYear,
IsLeapYear, DayOfWeek, LongMonthNames, ShortMonthNames,
LongDayNames, ShortDayNames, YearsBetween, DaysBetween,
DaysInMonth, DaysInaMonth
o String and Char:
▪ chr, ord, length, upcase, uppercase, lowercase, pred, succ, pos
• Increment and decrement integers and chars (inc, dec)
• Validation: Format check, range check, presence check, check digit (using a provided
algorithm)

Conditional structures
• If statements including if…then…else
• Nested If statements
• Using the IN operator in conditions
• More than one condition in an if statement and loop
• Case statements

Loops and debugging


• Correct use of loops: for, repeat and while and know which is the most appropriate to use.
• Nested loops
• Repeatedly ask for input until it is valid

String handling
• Concatenate strings
• Isolating a single character in a string
• The difference between a character datatype and a string datatype. Eg. sName[1]
• Validating character input in a range check
• Using loops to manipulate strings:
o Reverse a string
o Building an output string
o Display a string/characters horizontally, vertically or in a grid
o Isolate digits in a string
▪ Evaluate each digit
▪ Use these digits in calculations
o Isolate characters in a string
▪ Validate characters according to certain criteria. Eg. Vowels, spaces, letters,
symbols
▪ Extract a character or subset of characters from a string
o Remove characters from a string by building a new string
o Replace specific characters in a string.
o Add a character in a specific place in a string
o Counting/Finding characters or words in a string.
▪ Using pos to determine if a word or character appears in a string.
o Isolating words in a sentence

You might also like