Enrol to start learning
Reading is open to everyone. Enrolling is free, and it is what unlocks the audio lessons, practice tests and progress tracking.
4.4.2. Types
This section
Practice test
11 questions on this section. Wrong answers show you what to read again.
Sign up to take itWhole chapter
Revision test
Mixed questions from across the chapter. Your answers get marked.
Sign up to take itQuick
Flashcard drill
3 cards from this lesson. Good the night before a test.
Try these first
- 1.
Define Declarative Programming in your own words.
Hint
Consider how declarative programming contrasts with imperative programming.
- 2.
What is SQL and how does it relate to declarative programming?
Hint
Think about how you structure an SQL query.
- 3.
What does Declarative Programming focus on?
- The procedures to follow
- The outcomes to achieve
- The programming syntax
Hint
Remember the distinction between 'what' and 'how'.
- 4.
True or False: Logic Programming can be used for AI.
- True
- False
Hint
Think about the use of rules in AI.
- 5.
Draft a mock SQL query to retrieve all courses where the enrolled student grade is above 85.
Hint
Focus on the data you want rather than how it is structured.
- 6.
Create a sample logic program using Prolog that defines familial relationships.
Hint
Consider how you declare facts and set up rules.
Exercises
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting
4 more questions available
Enrol freeQuiz
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting
1 more question available
Enrol freeChallenge Problems
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting