Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 376099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T14:33:59+00:00 2026-05-12T14:33:59+00:00

I am studying two main paradigms of programming, declarative and imperative paradigm. I am

  • 0

I am studying two main paradigms of programming, declarative and imperative paradigm. I am having a hard time following the ambiguous statements made on my textbook and wikipedia, such as:

declarative:
– focuses on “what” the computer is to do.
– is free of “side effects”
– without control flow

imperative:
– focuses on “how” the computer should do it.
– how to do it in terms of sequence of actions

how would you differentiate the two programming paradigms? If you could expand on the statements made above, it will be very helpful.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T14:33:59+00:00Added an answer on May 12, 2026 at 2:33 pm

    SQL is the classic declarative language: you say “look at this table, and give me all rows that meet these criteria” (and in real-life you use joins, select lists, whatever, but it’s the same basic statement). As you noted above, this statement tells the computer what you want, not how to do it.

    Internally, the database system is implemented in a language like C, and your SQL query will be translated into the following imperative steps:

    while (another row to process)
        read row from disk
        for (every test)
            if (test fails)
                continue to next row
        add row to result-set
    

    One of the key things to note here is the explicit control flow: while, for, and if. These won’t appear in declarative languages.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm studying javascript for the first time and I've some doubt: I have two
While studying for a Functional Programming exam, I came across the following questions from
While studying for a Functional Programming exam, I came across the following question from
i am studying about views in sql and somewhat confused and having the following
I have been studying unicode and its Python implementation now for two days, and
Just studying the C style of Jon Bentley's Programming Pearls and was wondering if
The past week or two I've been studying Maven, and I like it, but
From my studying of python, I've found two uses for %. It can be
I'm studying Regular Expressions by reading Aho's book. I don't understand two of the
I've been studying stl for the past two weeks and been dealing with alot

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.