Skip to main content

Back to the full dot-point answer

Northern IrelandSoftware Systems DevelopmentQuick questions

AS 1 Introduction to Object Oriented Development

Quick questions on Methods, parameters, return values, scope and string handling - CCEA A-Level Software Systems Development

6short Q&A pairs drawn directly from our worked dot-point answer. For full context and worked exam questions, read the parent dot-point page.

What is variable scope?
Show answer
Two methods may each have a local variable called count without interfering, because each count exists only in its own method. A global count, by contrast, can be changed anywhere, which makes tracking its value harder.
What is string handling?
Show answer
Strings are sequences of characters, and CCEA expects fluency with common operations:
What are off-by-one in substring indices?
Show answer
String positions usually start at 0, and a substring's length or end index can be exclusive. Check the convention so you do not drop or duplicate a character.
What is q1?
Show answer
Distinguish between a parameter and an argument. [2 marks]
What is q2?
Show answer
State what is meant by the scope of a variable, and give the scope of a variable declared inside a method. [2 marks]
What is q3?
Show answer
Given word = "computer", state the result of length(word) and substring(word, 0, 3). [2 marks]

Have a question we have not covered?

This dot-point answer is short enough that we have not extracted many short questions yet. Read the full dot-point answer or ask Mo, our study assistant, in the chat for follow ups.

All Software Systems DevelopmentQ&A pages