Access free live classes and tests on the app
Download
+
Unacademy
  • Goals
    • AFCAT
    • AP EAMCET
    • Bank Exam
    • BPSC
    • CA Foundation
    • CAPF
    • CAT
    • CBSE Class 11
    • CBSE Class 12
    • CDS
    • CLAT
    • CSIR UGC
    • GATE
    • IIT JAM
    • JEE
    • Karnataka CET
    • Karnataka PSC
    • Kerala PSC
    • MHT CET
    • MPPSC
    • NDA
    • NEET PG
    • NEET UG
    • NTA UGC
    • Railway Exam
    • SSC
    • TS EAMCET
    • UPSC
    • WBPSC
    • CFA
Login Join for Free
avtar
  • ProfileProfile
  • Settings Settings
  • Refer your friendsRefer your friends
  • Sign outSign out
  • Terms & conditions
  • •
  • Privacy policy
  • About
  • •
  • Careers
  • •
  • Blog

© 2023 Sorting Hat Technologies Pvt Ltd

  • Exams
    • SBI Exams
      • SBI PO
      • SBI Clerk
      • SBI SO
    • IBPS Exams
      • IBPS PO
      • IBPS Clerk
      • IBPS RRB
      • IBPS SO
    • LIC Exams
      • LIC Assistant
      • LIC AAO
      • LIC ADO
    • RBI Exams
      • RBI Grade B
      • RBI Assistant
  • Notifications
    • Upcoming Bank Exam
    • Syllabus
      • IBPS Syllabus
        • IBPS PO Syllabus
        • IBPS Clerk Syllabus
        • IBPS RRB Syllabus
        • IBPS SO Syllabus
      • SBI Syllabus
        • SBI PO Syllabus
        • SBI Clerk Syllabus
      • LIC Syllabus
        • LIC Assistant Syllabus
        • LIC AAO Syllabus
        • LIC ADO Syllabus
      • RBI Syllabus
        • RBI Assistant Syllabus
  • Study Material
    • Magazine Download
    • Bank Exams Notes
  • Tests & Practice
    • Scholarship Test
    • Test Series
    • Learning Festival
  • Rankers Guide
    • Paper Analysis
Bank Exam » Bank Exam Study Materials » Computer Knowledge » PROLOG
insurance_banking_exams

PROLOG

Complete summary of PROLOG. Features of PROLOG. Brief info on PROLOG data types, structure and primary components. Short note on file extension.

Table of Content
  •  

PROLOG is a logical programming language. The PROLOG programming language is the most extensively used in the logic programming paradigm. PROLOG is a declarative language, which implies that rather than computing how to find a solution, a programme is made up of data based on facts and rules (logical connection). A logical relationship is a description of the relationships that exist for a certain application.

Features of PROLOG:

  • PROLOG is a declarative programming language.
  • It employs predicate calculus terminology.
  • PROLOG is a natural handler of lists and recursions.
  • This language has a built-in inference engine as well as automated backtracking.
  • PROLOG has built-in parallelism.
  • Unification: The main concept is to see if the phrases can be combined to reflect the same structure.
  • For problems requiring inference, PROLOG allows for very efficient coding.

PROLOG Data Types:

Between a pair of single quotes, a character is encapsulated.

  1. Integer: An integer between -32768 and 32767 that is a full number.
  1. Real: A peculiar character that is either positive or negative, followed by numbers.
  1. String: A collection of characters encased in a pair of double-quotes. Strings can have up to 255 characters in them.
  1. Symbol: A combination of letters (A to Z or a to z), numerals (0 to 9) and the underscore(_) character.
  1. Variables: A variable is a symbol that can have multiple values assigned to it at different stages of the program’s execution.
  1. Reserved terms: PROLOG features a few reserved words that should not be substituted for user-defined names.
  2. Arithmetic Operators: The basic arithmetic operators in PROLOG are +, -, *, and /.
  1. Relational Operators: PROLOG utilises the relational operators,=, =>, >=, >=. A relational operator in PROLOG can be either goal or subgoal. The relational operator (=) resembles an assignment operator in appearance.

Structure of PROLOG:

domains

/*…domain statements…*/

predicates

/*…predicate statements…*/

goal

/*…subgoall, subgoal, etc… */

clauses

/* …clauses (rules and facts)…*/

The three primary components of a PROLOG programme are:

Clauses:

This section contains all of the program’s information and regulations. The same-named facts and rules must be grouped together. A procedure is a set of sentences that define a predicate. The user is requested to write in a goal following a goal during execution. PROLOG begins searching for a solution for the input goal at the top of the clauses section, going through each fact and rule one by one in search of a probable match.

Predicates:

One or more clauses make up a predicate. Clauses belonging to the same predicate must be in order. A predicate can be declared as – in general.

predicate_name (arg1, arg2, arg3,…, argn)

There is no need for parenthesis if there are no arguments. Only the predicate name is required; it starts with a lowercase letter and is followed by a string of letters, numbers, and the underscore(_) character. The length of a predicate name is limited to 250 characters.

Domains:

Even while PROLOG uses the same domains as in-built domains, a user can choose problem-related meaningful names for domains. User-defined domain names are commonly used, but the PROLOG system does not recognise them. As a result, the user provides information about these user-defined domains in the domains section.

The applications of PROLOG are as follows:

  • Specification Language
  • Robot Planning
  • Natural language understanding
  • Machine Learning
  • Problem Solving
  • Intelligent Database retrieval
  • Expert System
  • Automated Reasoning

Disadvantages:

  • In general, LISP offers superior I/O capabilities than PROLOG.
  • Graphics are not supported by PROLOG in general. Turbo PROLOG, which was just released, is an exception.
  • The sequence in which rules are entered has a significant impact on PROLOG’s efficiency. The order of LISP functions has a negligible impact on the efficiency of the language.
  • PROLOG and LISP can be combined. Certain AI applications are better suited to LISP, whereas others are better suited to PROLOG. The best configuration may be a hybrid system that combines and combines the two languages. This combination may be done in two different ways.

File extension:

On systems whose extensions have global significance, such as MS-Windows, tradition calls for .pl, but conflicts with Perl compel the usage of another extension. On such systems,.pro is a popular option. The alternative extension is kept in the HKEY CURRENT USER/Software/SWI/PROLOG/fileExtension or HKEY LOCAL MACHINE/Software/SWI/PROLOG/fileExtension registry keys on MS-Windows. Without explicitly defining the extension, all versions of SWI-PROLOG load files with the extension .pl as well as the registered alternative extension.

Extension .pl, .pro, .P:

  • A .PL file includes Perl source code, which is a programming language that is compiled and executed with the help of a Perl interpreter. Variables, actions, functions, and comments are all included in the Perl programme code.
  • Adobe Proto, a now-defunct Adobe Touch programme, generates a .PRO file, which is a website or mobile application mockup. It includes one or more UI layouts for a webpage or mobile app, each of which may have interactive features. CSS, WebKit, and jQuery are all supported by .PRO files.
  • Picture files made by Pascal are stored in .P files.The extension is used by MATLAB to store binary-runtime files within the programme.

Conclusion:

A logic programming language is PROLOG. It is crucial in the field of artificial intelligence. PROLOG, unlike many other programming languages, is primarily intended as a declarative language. PROLOG expresses logic as a set of relations (called as Facts and Rules). The reasoning being applied is at the heart of PROLOGue. Running a query across these relations is used for formulation or computation.

faq

Frequently asked questions

Get answers to the most common queries related to the BANK Examination Preparation.

What does PROLOG stand for?

Ans. Programming in logic.

State the features of PROLOG language.

Ans. It consists of intelligent, expert and Natural Language systems.

 

Why is PROLOG known as Procedural Language?

Ans. Procedures are referred to as predicates in Prolog. The following are the two reasons why it is referred...Read full

Ans. Programming in logic.

Ans. It consists of intelligent, expert and Natural Language systems.

 

Ans. Procedures are referred to as predicates in Prolog. The following are the two reasons why it is referred to be procedural language :

  • Assign-once variables are available in Prolog.
  • Prolog is a non-deterministic language.

 

Crack Bank Exam with Unacademy

Get subscription and access unlimited live and recorded courses from India’s best educators

  • Structured syllabus
  • Daily live classes
  • Ask doubts
  • Tests & practice
Learn more

Notifications

Get all the important information related to the Bank Exam including the process of application, important calendar dates, eligibility criteria, exam centers etc.

Bank Exam Application Process
IBPS Clerk Notifications
IBPS Clerk Result – Check Prelims Exam Result Link
IBPS PO Notifications
IBPS PO Result
IBPS PO Syllabus 2023 for Prelims and Mains Exam
SBI Clerk Notifications
SBI Clerk Result – SBI Clerk Mains Result 2023 Out
SBI PO Admit Card 2022 – Link(Soon), Steps to Download
SBI PO Notifications 2022 – Check Eligibility, Exam Date, Syllabus, Exam Pattern
SBI PO Result
SBI PO Syllabus 2023, Prelims and Mains Syllabus in Detail
See all

Related articles

Learn more topics related to Computer Knowledge
Windows Operating System

This article discusses the Windows operating system and gives a detailed view on several versions of them. In this article you will get to know about major features and also a historical background of the Windows operating system.

What Is A Wireless Connection?

These days, hardly there's anyone who doesn't use the internet connection these days in their daily life. The Internet has become an essential part of our life because everything has gone online. From food to friends or education to entertainment, everything is present on the Internet.

WAN

This article helps us in understanding the basic meaning of the Internet's biggest WAN or Wide Area Network and the principle behind it, its applications in computer networks, its advantages, and disadvantages,

VPN

Virtual Private Network(VPN) helps guard your privacy by establishing an encrypted connection. It hides your IP address, after which no one can see or trace your activity.

See all
Access more than

12,591+ courses for Bank Exams 

Get subscription

Trending Topics

  • IBPS Clerk Exam Analysis 2022
  • Bank Exam Notifications
  • IBPS-PO Eligibility Criteria
  • IBPS PO Exam Pattern
  • IBPS PO Application Process
  • SBI Clerk Exam Pattern
freeliveclasses_bankexams

Related links

  • Bank Exam Study Materials
  • SBI Clerk Result
  • IBPS PO Syllabus
  • IBPS Clerk Result
  • IBPS PO Salary
  • IBPS Clerk Syllabus
  • IBPS Calendar 2023
  • RBI Grade B Officer
  • RRB PO Exam Pattern
  • RRB Exam Syllabus
  • RRB NTPC Exam Pattern
  • General Awareness for Bank Exams
  • RRB Clerk Exam Date 2023
testseries_bankexams
Download Free English Magazine
Company Logo

Unacademy is India’s largest online learning platform. Download our apps to start learning


Starting your preparation?

Call us and we will answer all your questions about learning on Unacademy

Call +91 8585858585

Company
About usShikshodayaCareers
we're hiring
BlogsPrivacy PolicyTerms and Conditions
Help & support
User GuidelinesSite MapRefund PolicyTakedown PolicyGrievance Redressal
Products
Learner appLearner appEducator appEducator appParent appParent app
Popular goals
IIT JEEUPSCSSCCSIR UGC NETNEET UG
Trending exams
GATECATCANTA UGC NETBank Exams
Study material
UPSC Study MaterialNEET UG Study MaterialCA Foundation Study MaterialJEE Study MaterialSSC Study Material

© 2025 Sorting Hat Technologies Pvt Ltd

Unacademy
  • Goals
    • AFCAT
    • AP EAMCET
    • Bank Exam
    • BPSC
    • CA Foundation
    • CAPF
    • CAT
    • CBSE Class 11
    • CBSE Class 12
    • CDS
    • CLAT
    • CSIR UGC
    • GATE
    • IIT JAM
    • JEE
    • Karnataka CET
    • Karnataka PSC
    • Kerala PSC
    • MHT CET
    • MPPSC
    • NDA
    • NEET PG
    • NEET UG
    • NTA UGC
    • Railway Exam
    • SSC
    • TS EAMCET
    • UPSC
    • WBPSC
    • CFA

Share via

COPY