0 results for
ICT
Computing
Responsive image

Imperative Languages

Overview
Flight Path
Learning Objectives
0 results forGuest
IDSkill_name
 3.2.2.1 I can understand that the three combining principles (sequence, iteration/repetition and selection/choice) are basic to all high level imperative programming languages.

🏁 Learning Objective Imperative Languages


Imperative languages

Imperative languages are a style of language that are built from commands which state how the program must operate. A command is an instruction that the computer must follow.

Three Principles of Imperative Languages

The three key elements of imperative programming languages are:

  1. Sequence - The order in which commands are executed
  2. Selection - The ability to branch the code depending upon a condition.
  3. Iteration The ability to repeat the code based upon a condition.

The key features of imperative programming languages are:

  • Variables - A label with an assigned values thats is created to store the value of a data type in memory. A variable can change its value while the program is running.
  • Constants - Constants are identical to variables, except that the value cannot be changed while the program is running
  • Assignment Placing a value into a variable.
  • Mathematical operations The ability to compute calculations using operators such as + - = etc.
  • Comparison operations Operators Used to compare values and create true or false results such as > < == etc.
  • Subroutines A piece of code that is defined by its own name and that can be reused by reference to that name. It can return a value and be passed values.
  • Flowchart examples for the three key elements:
    Sequence,Selection and Iteration (repetition)


    Update your objectives

    control

    Assessment



    control

    0 results forGuest
    Recent Comments

    Teacher Date: 2024-04-25


    Guest