Back to the full dot-point answer
ScotlandComputer ScienceQuick questions
Area 1: Software Design and Development
Quick questions on Computational constructs: selection, iteration, sub-programs and parameter passing - SQA Higher Computing Science
3short 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 q1?Show answer
State which type of loop suits processing every element of an array of fixed size. [1 mark]
What is q2?Show answer
A function must change the caller's array. State the parameter-passing method required. [1 mark]
What is q3?Show answer
Explain why local variables are preferred to global variables. [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.