

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Feedback for assignment 3 of the cs508 - modern programming languages course, focusing on prolog. It includes information on the importance of prolog, basic syntax, and backtracking concept. Common mistakes made by students and alternate solutions are also discussed.
Typology: Exercises
1 / 2
This page cannot be seen from the preview
Don't miss anything!


Assignment No.{3}
Course Name (Course Code)
Marks: 20
Due Date: DD/MM/YYY 06/06/
Assignment Solution Step by Step:
In part a) of this scenario based assignment students were required to discuss the importance of PROLOG programming language especially as the language of choice for developers in any expert system.by answering this part students were able to get familiar with declarative nature of PROLOG and how efficiency in terms of output is achieved by developers while working in this programming paradigms.
In part b) of this assignment students were required to write PROLOG equivalent .by attempting this part students can get familiar with basic syntax of this language.
In part c) of this assignment some queries were given to students in PROLOG by using facts and set of rules provided. by answering these queries students can get familiar with the backtracking concept in PROLOG by using set of facts and rules.
Common Mistakes & Explanation:
Mistake 1: One of the common mistakes that students made was in part b of the assignment some students left this part un attempted and those who attempted made mistake in providing correct syntax of PROLOG language. Mistake 2: Second most common mistake made by students was in part c especially in few queries students were unable to correctly answer those set of queries by the provided set of rules and facts.
Alternate solutions:
For part b):Few alternate solutions are as under:
…………………………………….. weather:- is(cloudy, rainy) DustStorm:- isexpected(today) John(umbrella):- Mike(umbrella) ?-forecast(rain) ?-earth(round)
Concluding Comments
The overall result for assignment No 3 was above average and it fulfilled the purpose of giving some hands on practice with PROLOG working environment. Almost 80% students were correct in their understanding about the concept covered in assignment questions. Few students were unable to attempt it correctly. However efforts of all students are appreciated .Students are also encouraged to ask queries on mdb’s for lecture related concepts. This will not only facilitate them in understanding concepts of this course but will also show their keen interest towards this subject.
docsity.com