Back to Course

JSS2: COMPUTER STUDIES - 2ND TERM

0% Complete
0/0 Steps
  1. Introduction To Basic Language I | Week 1
    7 Topics
    |
    1 Quiz
  2. Introduction To Basic Language II | Week 2
    2 Topics
    |
    1 Quiz
  3. Computer Ethics I | Week 3
    6 Topics
    |
    1 Quiz
  4. Computer Ethics II | Week 4
    2 Topics
    |
    1 Quiz
  5. Safety Measures In Computer Environment | Week 5
    3 Topics
    |
    1 Quiz
  6. Computer Graphics Packages I | Week 6
    3 Topics
    |
    1 Quiz
  7. Computer Graphic Packages II | Week 7
    6 Topics
    |
    1 Quiz
  • excellence
  • Follow

Lesson Progress
0% Complete

Topic Content:

  • Basic Programming Language Rules

The following are some of the rules that apply to the standard version of BASIC:

1. Every statement must appear on a separate line.

2. A statement cannot be continued on the next line, it must not exceed one line in length.

3. Each instruction in BASIC program is written as a separate statement.

4. Each statement must begin with a statement number or line number (essentially a positive integer). No two statements have the same line number. The lines are sometimes coded in multiples of 10, 20, 30 40, etc to allow for insertions incase of omissions.

5. Each statement must be followed by a BASIC Keyword which indicates the type of instruction that is to be carried out.

6. Successive statements must have increasing statement numbers.

7. Statements are to be executed in line number sequence unless a Go-To statement is encountered.

8. On most computers, programs must end with an END statement.

9. To branch to a different place in a program, we use the GO TO statement.

avatar