Cs Flashcards
(35 cards)
Using 8 bits of binary: What is the smallest (denary) number you can store?
0
Using 8 bits of binary: What is the largest (denary) number you can store?
255
Using 8 bits of binary: How many individual values can we have?
256
How do we convert binary to denary?
First write down the values of each digit above.
Then figure out which ones are on/ have that value
In this 10110010 is 128+32+16+2 so you add them making it 178
How do we convert Hex to binary?
You first split a hex code such as 7A into 7 and A and split the 8 bits of the 8 bit binary into 2 4 bits.
Then you figure it out so 7 is 0111 and A is 10 so it will be 1010
Then you put them together making 01111010
How do we convert denary to hex?
For a number such as 167. Convert it to binary by figuring seeing if it divides into each number so it divides into 128 so it is
10000000, 39 does not divide into 64. 32 does so it is,10100000, 7 doesn’t get divided by 16 and doesn’t get divided by 8 but does by 4 then 3 then 2 then 1 so it is,10100111
Then split them into 2 4bits and figure out the value in hex with A=10 B=11 C=12 D=13 E=14 F=15
A7
What is meant by the term “character set”
A way that the computer uses a preset way of converting data into something it can understand
ASCII vs UNICODE
ASCII and UNICODE are 2 different ways of interpreting data into characters however we mostly use unicode todays because it has more characters such as emojis
Abstraction
Specifically thinking of a certain task whilst ignoring other items to focus on the task
Decomposition
Decomposition is breaking down tasks into even simpler tasks
Sequence
The specific order of logical steps to conduct a specific task
Selection
Using information given to pick a path in the code and ignoring another part of the code
Iteration
When you repeat a task again and again until a certain factor is true/false and/or a certain amount of times it has happened
When drawing a flowchart how do you always start and end the algorithm?
The terminator
What connects the objects in a flowchart?
Arrows
Other than a decision, how many arrows come out of objects?
1
What are the titles of the two arrows that come out of a decision?
Yes/no or true/false though try to use yes/no
variable
A named storage location that can hold bits of data
What data type would be a students name
String
What data type would be the value of pi to 5 dp.
Float
What data type would be the input of a light switch
Boolean
What data type would be the number of pens owned?
Integer
Primary storage
Storage that is used for information that needs to be used quickly so can be retrieved quickly by the CPU
Secondary Storage
Storage that is used for long term storing and is not volatile like primary storage