Local Variables (2 marks)
Explain why it is considered good practice to use local variables in subroutines.
Local Variables (2 marks) Read More »
Explain why it is considered good practice to use local variables in subroutines.
Local Variables (2 marks) Read More »
Describe how parameters are used to pass data to a subroutine with an example.
Parameters in Subroutines (3 marks) Read More »
Discuss two advantages of using subroutines in programming.
Advantages of Using Subroutines (2 marks) Read More »
Explain what is meant by a subroutine in the context of structured programming.
Understanding Subroutines (1 mark) Read More »
Explain why random number generation is useful in programming a simple game such as ‘guess the number’.
Random Number Generation (2 marks) Read More »
Explain how concatenation of strings works, and give an example using the variables firstName and lastName to create a fullName.
String Methods: Concatenation (3 mark) Read More »
Given a string variable ‘filePath’ containing the text “C:/User/Docs/Report.docx”, write a statement that uses string handling operations to extract the file extension from ‘filePath’.
String Methods: Substring (2 mark) Read More »
Identify the operation that would be used to find the number of characters in a string variable ‘username’.
String Methods: Length (1 mark) Read More »
Explain why it is important for a program to validate user input from the keyboard.
Validating Inputs (2 marks) Read More »
Identify what is meant by the term “input” in the context of computer systems.
What is an Input? (1 mark) Read More »
Notifications