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 Language
  • Steps to Load Basic
  • Format of Basic Statement
  • Presentation of Data In Basic
  • Commands in Basic Language

Basic is a very simple and popular high-level programming language for microcomputers. The word Basic means “Beginners All-Purpose Symbolic Instruction Code“. This language was developed by John G. Kemeny and Thomas E. Kurtz at Dartmouth College in the mid-1960s.

There are many versions of the Basic language:

  1. Ms-Basic
  2. GW-Basic
  3. QBasic – Quick Basic
  4. Just BASIC (JBasic)
  5. BASIC Plus
  6. BASIC A
  7. Turbo BASIC

The disk operating system contains the basic interpreter. The basic interpreter must be loaded into the memory of the computer before any program can be translated.

Steps to Load Basic:

  1. Boot and load DOS into the computer.
  2. Type GW-Basic.
  3. Press Enter.

Format of Basic Statement:

  • Each Basic statement must be on a line.
  • Each line must be given a number called line number. This orders the sequence of executing a BASIC program. They are usually positive whole numbers of multiples of 5 or 10 to allow for new instructions to be inserted in between lines when necessary without affecting the sequence of the program.

Presentation of Data In Basic:

Basic program differentiates between numeric and non-numeric data (numeric contains only numeric characters while non-numeric contains alphabets).

The combination of alphabets and numeric characters is called alphanumeric data. For Example “5c2b8a”

Numeric data can be stored in memory locations which can be represented with either A – Z or an alphabet with a single digit. These memory locations where data are stored are called variables.

Commands in Basic Language:

  • CLS – clear the screen
  • REM –  used for comments
  • INPUT – allows information to be typed using the keyboard
  • LIST –  examines the program and points out errors
  • EDIT – used by typing the line numbers when there is a need for change
  • LET –  Let statement causes arithmetic signs on the right of the equality sign to be stored and the result on the left of the equality sign to be generated.
  • PRINT – it means to display on the Visual Display Unit (VDU)