Grade 10 PRACTICAL EXAM November Demarcation
Grade 10 PRACTICAL EXAM November Demarcation
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
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