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

  • Home
  • SEARCH
  • 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

Since I started studying object-oriented programming, I frequently read articles/blogs saying functions are better,
I am a student studying software development, and I feel programming, in general, is
I am studying the content of Programming Ruby- The Pragmatic Programmer's Guide but the
I am studying how two-phase commit works across a distributed transaction. It is my
The past week or two I've been studying Maven, and I like it, but
I have been studying unicode and its Python implementation now for two days, and
I would like to start studying the .wav specimen by comparing two files. like
I am studying to use MVVM pattern for my Silverlight application. Following code is
Studying C#, my books are showing me classes for readin files. I've found 2
I've been studying the Google authentication API (AuthSub)... My question is, how do I

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.