Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

CS508 Assignment 3: Understanding PROLOG - Feedback and Common Mistakes, Exercises of Programming Languages

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

2011/2012

Uploaded on 08/01/2012

ambuja
ambuja 🇮🇳

4.4

(4)

107 documents

1 / 2

Toggle sidebar

Related documents


Partial preview of the text

Download CS508 Assignment 3: Understanding PROLOG - Feedback and Common Mistakes and more Exercises Programming Languages in PDF only on Docsity! Post Assignment Feedback Assignment No.{3} Course Name (Course Code) CS508 - Modern Programming Languages Marks: 20 Due Date: DD/MM/YYY 06/06/2012 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. docsity.com
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved