Imperative Programming Definition & Meaning
Imperative programming describes a program that gives a computer specific instructions for performing actions. Imperative programming differs from declarative programming, which focuses on the logic of what the program does. Declarative programming typically reacts according to the progress of the program, whatever that may be, whereas imperative programming details very specific steps that the program must take.
Features of imperative programming
Assignment statements: these statements assign values to certain variables within the program. A common method of indicating an assignment is the equation x=value, in which a particular value is assigned to the initial variable. Most programming languages allow a variable to assign a different value if needed—for example, if x=5 at one point in the program but is later replaced with the value 3.
Branching statements: one of the most common branching statements is IF, which tells the program to do something different based on a command or condition given.
Looping statements: these statements are functions within the program that are set to repeat, either continuously or for a programmed amount of time. Looping statements must have an initialization, a test, and an update before completing the first iteration of the loop.
Stay up to date on the latest developments in Internet terminology with a free newsletter from Webopedia. Join to subscribe now.
From A3 to ZZZ we list 1,559 text message and online chat abbreviations to help you translate and understand today's texting lingo. Includes Top... Read More »Huge List of Computer Certifications
Have you heard about a computer certification program but can't figure out if it's right for you? Use this handy list to help you decide. Read More »
Computer architecture provides an introduction to system design basics for most computer science students. Read More »Network Fundamentals Study Guide
Networking fundamentals teaches the building blocks of modern network design. Learn different types of networks, concepts, architecture and... Read More »The Five Generations of Computers
Learn about each of the five generations of computers and major technology developments that have led to the computing devices that we use... Read More »