You must complete Computer System Software I to unlock this Lesson.

THE BASIC PROGRAMMING LANGUAGE

CONTENT

  1. BASIC Arithmetic Operators
  2. BASIC Arithmetic Expressions
  3. Evaluation of Expressions
  4. Simple BASIC Programs

 

BASIC Arithmetic Operators

They are expressed in terms of a hierarchy of operators in which operations of high priority are performed first.

Examples:

Operator Symbol Operation
^ Exponentiation
* Multiplication
/ Division
+ Addition
Subtraction

BASIC Arithmetic Expressions

These arithmetic Expressions are not formed according to the same rules of Algebra and Mathematics. The following symbols are used to denote arithmetic operations.

Operators Meaning Basic Expression Math Equivalent
+ Addition \(A= A + B\) \(A = A + B\)
Subtraction \(Sum = Sum -10\) \(Sum = Sum -10\)
* Multiplication \(J = J * 4\) \(J = 4J\)
/ Division \(Pi = \frac{22}{7}\) \(Pi = \frac{22}{7}\)
^ Exponentiation \(J = J + 2^2\) \(J = J + 2^2\)

Basic Relational Operators

Operator Relation Tested Expression
= Equality \(X = Y\)
< > Inequality \(X < > Y\)
< Less than \(X < Y\)
> Greater than \(X > Y\)
<= Less than or equal to \(X <= Y\)
>= greater than or equal to \(X >= Y\)

EVALUATION

  1. What do you understand by BASIC Arithmetic Operators?

Lesson tags: Computer Science Lesson Notes, Computer Science Objective Questions, SS1 Computer Science, SS1 Computer Science Evaluation Questions, SS1 Computer Science Evaluation Questions Second Term, SS1 Computer Science Objective Questions, SS1 Computer Science Objective Questions Second Term, SS1 Computer Science Second Term
Back to: COMPUTER SCIENCE/ICT – SS1 > Second Term
© [2022] Spidaworks Digital - All rights reserved.
error: Alert: Content is protected !!