Back to the full dot-point answer
WalesComputer ScienceQuick questions
Unit 3 Programming and System Development
Quick questions on Programming paradigms: procedural, object-oriented and declarative - WJEC A-Level Computer Science
5short 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 procedural programming?Show answer
Procedural code is straightforward and efficient for many tasks, but as programs grow, keeping data and the code that uses it separate can make large systems hard to maintain, which is one motivation for object orientation.
What is object-oriented programming?Show answer
OOP models real-world entities directly (a Car object has attributes and behaviours), promotes reuse through inheritance, and protects data integrity through encapsulation, which is why it dominates large software systems.
What is declarative programming?Show answer
Declarative programming describes what result is wanted rather than the step-by-step how. Logic programming states facts and rules and lets the system infer answers; functional programming builds programs from functions without changing state. SQL is a familiar declarative language: you state the data you want, not how to fetch it.
What is q1?Show answer
State the difference between a class and an object. [2 marks]
What is q2?Show answer
Name the OOP concept that lets a subclass acquire the attributes and methods of a superclass. [1 mark]
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.