Integer Division (3 marks)
Given two integer variables, ‘dividend’ being 25 and ‘divisor’ being 4, write the pseudocode to calculate and output both the result of the integer division and the remainder.
Integer Division (3 marks) Read More »
Given two integer variables, ‘dividend’ being 25 and ‘divisor’ being 4, write the pseudocode to calculate and output both the result of the integer division and the remainder.
Integer Division (3 marks) Read More »
Write a pseudocode statement that assigns the product of two variables, length and width, to a new variable called ‘area’.
Arithmetic Operations (1 mark) Read More »
Explain why meaningful identifier names are important when programming. Provide two reasons in your answer.
Identifiers in Programming (2 marks) Read More »
Define a subroutine called CalculateVolume that takes two parameters, height and radius, and calculates the volume of a cylinder. The formula for volume is πr²h.
Subroutine (2 Marks) Read More »
Write a code segment using definite iteration that prints the numbers 1 to 10 in descending order, but only prints the number if it is even.
Iteration and Selection (3 Marks) Read More »
Explain the purpose of an assignment statement in a computer program.
Variable Assignment (1 Mark) Read More »
A program needs to calculate the area of a rectangle. Write the statements required to declare a variable to store the width and a constant to hold the maximum allowed area, which is 2500.
Variable and Constant Declaration (2 Marks) Read More »
Explain the difference between ‘integer’ and ‘real’ data types with an example of when you would use each in a program.
‘Integer’ and ‘Real’ Data Types. (4 marks) Read More »
Describe three different scenarios where a Boolean data type would be used in a computer program.
Boolean Data Type. (3 marks) Read More »
Which data type would be most suitable for storing a person’s full name and why?
The Most Suitable Data Type for Storing a Person’s Full Name and Why. (2 marks) Read More »
Notifications