COMPUTER FUNDAMENTALS

COMPUTER SOFTWARE

PROGRAMMING LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Regular expressions and SQL belong to which paradigm?
A
Declarative
B
Imperative
C
Machice
D
Object Oriented
Explanation: 

Detailed explanation-1: -Many languages fall under the banner of declarative programming, but some of the most widely used include HTML, SQL, CSS and XML. Other examples include a mix of functional and logic programming languages, such as Prolog, Haskell, Miranda, XQuery and Lisp.

Detailed explanation-2: -The logic programming paradigm takes a declarative approach to problem-solving. It’s based on formal logic. The logic programming paradigm isn’t made up of instructions-rather it’s made up of facts and clauses.

Detailed explanation-3: -Some Common Paradigms You should know these: Imperative : Programming with an explicit sequence of commands that update state. Declarative : Programming by specifying the result you want, not how to get it. Structured : Programming with clean, goto-free, nested control structures.

Detailed explanation-4: -Imperative programming paradigm It executes commands in a step-by-step manner, just like a series of verbal commands. Following the “how-to-solve” approach, it makes direct changes to the state of the program; hence it is also called the stateful programming model.

There is 1 question to complete.