EXAM SCRIPT 2026 COMPLETE
QUESTIONS AND ANSWERS GRADED A+
◉Rounding. Answer: An arithmetic operator that converts a float to
a more approximate representation that reduces the number of
digits
◉Subtraction (-). Answer: An arithmetic operator that returns the
difference between two numeric values
◉Truncation. Answer: An arithmetic operator that reduces the
number of digits to represent a float by cutting off a number after a
given amount of decimal places
◉Variable. Answer: A memory location that holds data which can be
updated during program runtime.
◉Constant. Answer: A memory location that holds data which
cannot be updated during program runtime. Constants do not exist
in python but are denoted by a capitalised variable.
, ◉Advantages of Constants. Answer: Increases readability of code,
easier to update code if the value changes (e.g. year change), reduces
likelihood of errors
◉string[x]. Answer: The character at position x (or the x-1th
character)
◉string[x:y]. Answer: The characters starting at position x, and up
to (but not including) position y
◉string[:x]. Answer: The characters up to, but not including position
x
◉string[x:]. Answer: The characters from and including position x
◉string[-x]. Answer: The character that is x positions from the end
◉len(). Answer: The length of the string
◉find("xyx"). Answer: Finds the position of the first character where
the string is first found