Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
What is the main difference between declarative and procedural programming?
Think about the focus of each paradigm.
Name one example of logic programming.
Consider a language known for its use with facts and rules.
What does declarative programming emphasize?
Remember the primary difference from procedural programming.
True or False: SQL is an example of imperative programming.
Focus on the nature of SQL's statements.
Create a SQL query to find all students younger than 18 years old from a table named Students.
Use the SELECT statement to fetch names, filtering with WHERE clause.
Design a simple logic problem in Prolog where you define a parent-child relationship and create a rule to find all children of a given parent.
Use ':-' to define rules and facts about relationships.
5 more questions in this section. Enroll free to practise them all.
Enroll free