ExamBank Scot · Higher Computing Science question bank · All Higher Computing Science questions
2 marks · Programming paradigms
Facts are a feature of a declarative language. An example is shown below: sibling(fred, senga). Name and describe one other feature of a declarative language.
Rules (1 mark) 1 mark for any one bullet from • Use variables which can be applied to existing fact/rules. • Reduces the need for repetition of facts/ additional lines of code. • Adds information/meaning based on other facts/rules. • Establishes relationships between facts/rules. • Can implement recursion. OR Queries (1 mark) • allow facts/rules to be interrogated (1 mark) OR Pattern matching (1 mark) • allows facts/rules to be matched. (1 mark)
Previous question: Higher Computing Science 2018 Question 2 (CfE)
Next question: Higher Computing Science 2018 Question 4 (CfE)