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

23
Q

Flow charts
Arrows

A

Shows the flow of data

24
Q

Flow charts
Rectangle with line inside

25
How many stops / ends are allowed in a flowchart
Only 1
26
Str (String)
Anything you put in speech marks
27
Boo (Boolean)
Yes or No
28
Float
Decimals
29
Int (Integer)
Whole numbers
30
Char (character)
1 Character
31
Syntax Error
Error where the code wont run
32
Logic Error
Error where the code will run but it won't give you the correct output
33
What is the use of # in coding
Used to write a comment that won't be included in the actual code. (Just for understanding)
34
Equal to
a==b
35
Not equal to
a!=b
36
Less than
a
37
Greater than
a>b
38
Loop (in a program)
Can execute statements multiple times. A programming structure that repeats a sequence of instructions until a specific condition is met.
39
(Commands words) Case sensitive
Whether or not a program or system distinguishes between uppercase and lowercase letters in text.
40
(Command words) Changes colour
Changes the colour of the code to be able to see better.
41
Variables
A named memory location which temporarily stores data that can change while the program is running. Stores only 1 character.