Operators: Programming fundamentals: Computer Science: GCSE (9:1)

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/16

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

17 Terms

1
New cards

Operation

A process using a symbol that performs a calculation or logical test on its operands, it can be arithmetic, comparison or boolean

2
New cards

Operand

The values that an operation applies to, e.g. in age > 18, both age and 18 are operands

3
New cards

+

Addition. This arithmetic operator sums operands, e.g. x + 4

4
New cards

-

Subtraction, or taking away one operand from another is done by this arithmetic operation, e.g. health - 5

5
New cards

*

Multiplication, the arithmetic operation that gives the product, or one operand times another, e.g. km * 2

6
New cards

/

Arithmetic operator that divides one operand by another e.g. total / 7

7
New cards

DIV

Also called integer division or floor division, the quotient arithmetic operator divides operands giving only the whole number result. E.g. 9 DIV 4 = 2. Python uses // for this.

8
New cards

MOD

The Modulus operator which gives the remainder after division, e.g. 9 MOD 4 = 1. Python uses % for this.

9
New cards

>

The comparison operator greater than

10
New cards

>=

The comparison operator greater than or equal to

11
New cards

<

The comparison operator less than

12
New cards

<=

The comparison operator less than or equal to

13
New cards

!=

The comparison operator not equal to

14
New cards

==

The comparison operator equal to

15
New cards

AND

Boolean operator that returns a true value only if both operands are true

16
New cards

OR

Boolean operator that returns a true value if either operand is true

17
New cards

NOT

Boolean operator that negates its operand, meaning True becomes False and vice versa