Data Objects Flashcards
What are logic Data Objects?
Data objects or terms are either: numbers atoms variables compound terms lists.
What is a number in logic programming?
A number may be either an integer or a floating point quantity.
What is a atom in logic programming?
An atom is a constant that does not have a numerical value. It begins with a lowercase letter, or is quoted.
What is a variable in logic programming?
A variable stands for a term that is to be determined. It begins with an uppercase letter or ‘_’
What is a compound term in logic programming?
A compound term consists of a functor followed by a sequence argument terms in brackets.
What is a list in logic programming?
A list is a structured data type made up of a sequence of terms enclosed in square brackets and separated by commas.
What typing is prolog?
Prolog is an untyped language, it has tests such as atom/1 and number/1.
What are the dangers of an untyped language?
Programs are not checked at compile time
Programs can go wrong at run time.