Programming Skills
Programming Skills
INSERT 2 hours
*6646749220-I*
INFORMATION
● This insert contains all the resources referred to in the questions.
● You may annotate this insert and use the blank spaces for planning. Do not write your answers on the
insert.
DC (EF) 311804
© UCLES 2022 [Turn over
PMT
Functions
Note: An error will be generated if a function call is not properly formed or if the parameters are of an
incorrect type or an incorrect value.
Numeric Functions
Date Functions
Operators
Note: An error will be generated if an operator is used with a value or values of an incorrect type.
Comparison Operators
= Used to compare two items of the same type. Returns TRUE if the condition is true,
otherwise returns FALSE
>
Notes:
<
• may be used to compare types REAL and INTEGER
• may be used to compare types CHAR and STRING
>=
• case sensitive when used to compare types CHAR or STRING
• cannot be used to compare two records.
<= Examples:
• "Program" = "program" evaluates to FALSE
<> • count = 4 evaluates to TRUE when variable count contains the value 4
Permission to reproduce items where third-party owned material protected by copyright is included has been sought and cleared where possible. Every
reasonable effort has been made by the publisher (UCLES) to trace copyright holders, but if any items requiring clearance have unwittingly been included, the
publisher will be pleased to make amends at the earliest possible opportunity.
To avoid the issue of disclosure of answer-related information to candidates, all copyright acknowledgements are reproduced online in the Cambridge
Assessment International Education Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download
at www.cambridgeinternational.org after the live examination series.
Cambridge Assessment International Education is part of Cambridge Assessment. Cambridge Assessment is the brand name of the University of Cambridge
Local Examinations Syndicate (UCLES), which is a department of the University of Cambridge.