Which one among the following is NOT a non-procedural computer

Which one among the following is NOT a non-procedural computer language?

LISP
Python
Prolog
ML
This question was previously asked in
UPSC CAPF – 2024
Non-procedural computer languages are declarative languages that focus on describing *what* computation should be performed, rather than specifying *how* to perform it step-by-step. LISP, Prolog, and ML are typically classified as functional or logic programming languages, which are often considered non-procedural or declarative paradigms. Python, while being a multi-paradigm language, is primarily known and used as an imperative/procedural language, where instructions are executed sequentially. Therefore, Python is NOT a non-procedural computer language in the same vein as LISP, Prolog, or ML.
– Procedural languages specify a sequence of operations to change the program’s state.
– Non-procedural (or declarative) languages describe the desired result or logic without explicitly detailing the execution steps.
– LISP, Prolog, and ML represent functional or logic programming paradigms often contrasted with procedural programming.
– Python is predominantly an imperative/procedural language, although it supports aspects of object-oriented and functional programming.
LISP (List Processing) is one of the oldest functional programming languages. Prolog (Programming in Logic) is a prominent logic programming language. ML (Meta Language) is a general-purpose functional programming language. Python’s core execution model is based on executing statements sequentially, defining procedures (functions), which aligns with the procedural paradigm.
Exit mobile version