19/02/24 CT Flashcards

1
Q

What is the binary line

A

128-64-32-16-8-4-2-1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Why do computers use 0s and 1s

A
  • It is the only language they understand.
  • Only 2 states.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the highest number you can make with the binary line

A

0 - 255

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

0 + 0 =

A

0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

0 + 1 =

A

1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

1 + 0 =

A

1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

1 + 1 =

A

0 carry the 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

1 + 1 + 1 =

A

1 carry the 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Hexadecimals table

A

0 = 0
1 = 1
2 = 2
3 = 3
4 = 4
5 = 5
6 = 6
7 = 7
8 = 8
9 = 9
10 = A
11 = B
12 = C
13 = D
14 = E
15 = F

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How do you convert denary to HEX
e.g. 184

A

(Short division) 16 ÷ 184
11.8…
11 = B
8 = 8
Answer = B8

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How do you convert HEX to denary
e.g. DA

A

D x 16 + A
13 x 16 + 10
208 + 10
Answer = 218

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How do you convert HEX to binary
e.g. 5A

A

5A
5 = 0101
A = 10 = 1010
Answer = 01011010

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How do you convert binary to HEX
e.g. 180

A

180 = 10110100
1011 - 0100
11 - 4
Answer = B4

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the 16 times table

A

1 x 16 = 16
2 x 16 = 32
3 x 16 = 48
4 x 16 = 64
5 x 16 = 80
6 x 16 = 96
7 x 16 = 112
8 x 16 = 128
9 x 16 = 144
10 x 16 = 160
11 x 16 = 176
12 x 16 = 192
13 x 16 = 208
14 x 16 = 224
15 x 16 = 240
16 x 16 = 256

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are the 3 logic gates

A
  1. NOT gates
  2. AND gates
  3. OR gates
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

NOT gates

A
  • Only has 1 input
  • Output should be the opposite of an input.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

AND gates

A
  • 2 inputs
  • For you to get an output of 1, both inputs must be 1.
18
Q

OR gates

A
  • 2 inputs
  • For your output to be 1, one of your inputs has to be 1.
19
Q

Flow charts
Circle

A

Start / stop / end

20
Q

Flow charts
Rectangle

A

Instruction / process

21
Q

Flow charts
Parallelogram

A

Input / output

22
Q

Flow charts
Diamond

A

Decisions

23
Q

Flow charts
Arrows

A

Shows the flow of data

24
Q

Flow charts
Rectangle with line inside

A

Storage

25
Q

How many stops / ends are allowed in a flowchart

A

Only 1

26
Q

Str (String)

A

Anything you put in speech marks

27
Q

Boo (Boolean)

A

Yes or No

28
Q

Float

A

Decimals

29
Q

Int (Integer)

A

Whole numbers

30
Q

Char (character)

A

1 Character

31
Q

Syntax Error

A

Error where the code wont run

32
Q

Logic Error

A

Error where the code will run but it won’t give you the correct output

33
Q

What is the use of # in coding

A

Used to write a comment that won’t be included in the actual code. (Just for understanding)

34
Q

Equal to

A

a==b

35
Q

Not equal to

A

a!=b

36
Q

Less than

A

a<b

37
Q

Greater than

A

a>b

38
Q

Loop (in a program)

A

Can execute statements multiple times.
A programming structure that repeats a sequence of instructions until a specific condition is met.

39
Q

(Commands words)
Case sensitive

A

Whether or not a program or system distinguishes between uppercase and lowercase letters in text.

40
Q

(Command words)
Changes colour

A

Changes the colour of the code to be able to see better.

41
Q

Variables

A

A named memory location which temporarily stores data that can change while the program is running.
Stores only 1 character.