CT3 Flashcards
1
Q
What are the numbers that make up the binary line?
A
128, 64, 32, 16, 8, 4, 2, 1
2
Q
What numbers are binary?
A
1 and 0
3
Q
What does 0 mean?
A
on
4
Q
What does 1 mean?
A
off
5
Q
Why are there only two numbers in binary?
A
only language the computer understands
6
Q
0+0
A
0
7
Q
0+1
A
1
8
Q
1+0
A
1
9
Q
1+1
A
0 carry 1
10
Q
1+1+1
A
1 carry 1
11
Q
`16 x 1
A
16
12
Q
16 x 2
A
32
13
Q
16 x 3
A
48
14
Q
16 x 4
A
64
15
Q
16 x 5
A
80
16
Q
16 x 6
A
96
17
Q
16 x 7
A
112
18
Q
16 x 8
A
128
19
Q
16 x 9
A
144
20
Q
16 x 10
A
160
21
Q
16 x 11
A
176
22
Q
16 x 12
A
192
23
Q
What is the Hexadecimal line
A
0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F
24
Q
How to convert HEX to dinery?
A
-Times the first number by 16
-Add the other number to the answer
25
How to convert dinery to HEX?
-Divide the number by 16
-Convert it into HEX by using the HEX line
26
What is a NOT gate?
-One input
-output is the opposite of the input
27
What is the truth table for a NOT gate?
P-Q
0-1
1-0
28
What does a NOT gate look like?
One input going to a triangle with a circle t the top, then has one output.
29
What is an AND gate?
| How many inputs and outputs?
-Two inputs
-One output
30
What is the truth table for an AND gate?
A-B - Q
0-0 - 0
1-0 -0
0-1 - 0
1-1- 1
31
What does an AND gate look like?
-Two inputs
-rectangle with a rounded edge
-one output
32
What is an OR gate?
| How many inputs and outputs?
-Two inputs
-One output
33
What is the truth table for an OR gate?
A-B - Q
0-0 - 0
1-1 - 1
0-1 - 1
1-0 - 1
34
What does an OR gate look like?
-Two inputs
-Into an arrow shape
-One output
35
What is a computer system made of?
Input, output and storage devices
36
What are the common components of a computer system?
RAM, ROM, CPU, Motherboard, hard drive, BIOS
37
What are the main functions of the operating system?
File management
User management
User interface
Memory management
Device management
38
What does the operating system provide?
security- username and passwords and firewalls
39
What are variables?
Stores data and memories.
40
How many pieces of data can a variable hold??
1
41
What happens to the variable is you run your code??
It changes
42
What are the 5 different data types??
Char (Character)
String
Integer
Float
Boolean
43
What is a string in code?
anything in speech marks or a mixture of letters and numbers.
44
What is an integer??
whole numbers
45
What is a float??
decimal
46
What is a boolean?
Yes/No or True/False
47
How do you write comments in code?
Start with a #
48
What are the four command words?
print()
input
if:
else:
49
What are the two errors that can come up in code?
logic
syntax
50
What will happen to the code if there is a logic error?
code run but output will not be correct
51
What is a syntax error?
not run code
52
Arrow with a line inside?
Storage