Defensive Design & Testing (OCR GCSE Computer Science): Quizzes
📚Quizzes
Practise the questions
10 questions from this quiz
ShowHide
Practise the questions
10 questions from this quiz
What does maintainability refer to in programming?
What does maintainability refer to in programming?
Designing programs that are easy to read, understand, and modify
How do sub programs like functions help with maintainability?
How do sub programs like functions help with maintainability?
They reduce repetition in code
What is a key advantage of using sub programs?
What is a key advantage of using sub programs?
Changes made in one place only
Which variable name is better for maintainability?
Which variable name is better for maintainability?
totalScore
Why are meaningful variable names important?
Why are meaningful variable names important?
They help others understand the code
What is the main purpose of indentation?
What is the main purpose of indentation?
To visually group code blocks
How does indentation help with control structures?
How does indentation help with control structures?
Shows which statements belong to them
Do comments affect how a program runs?
Do comments affect how a program runs?
No, they don't affect execution
What should useful comments explain?
What should useful comments explain?
Why something is done
How do comments help during program updates?
How do comments help during program updates?
They prevent mistakes by explaining code
