SEARCH
You are in browse mode. You must login to use MEMORY

   Log in to start

level: Compression

Questions and Answers List

level questions: Compression

QuestionAnswer
MP3What is a compressed audio format?
Recording the pixel colour and then the number of consecutive pixels of that colour instead of just recording each individual oneWhat is Run Length Encoding?
By recording a word's ID/location within a dictionary instead of the actual word itself, that way only the very small ID needs to be stored which saves spaceHow does dictionary based compression work?
non-encrypted - plaintext encrypted - ciphertextIn encryption, what are the names for encrypted and non-encrypted text?
Vernam cipherWhat is the name of the only encryption method said to be unbreakable?
- equal to or longer in characters than the plaintext - truly random - used only onceWhat are the 3 requirements for a one-time pad/key?
00001111 00110011 01010101When creating a truth table, what is the sequence of binary inputs for each column?
Adds the contents of the memory address to the accumulatorWhat does the ADD code do? (LMC)
Subtract the contents of the memory address from the accumulatorWhat does the SUB code do? (LMC)
Store the value in the accumulator in the memory address givenWhat does the STA code do? (LMC)
Load the accumulator in the memory address givenWhat does LDA do? (LMC)
Branch - use the address given as the address of the next instructionWhat does BRA do? (don't say hold up tiddies)
Branch to the address given if the accumulator is zeroWhat does BRZ do? (LMC)
Branch to the address given if the accumulator is zero or positiveWhat does BRP do? (LMC)
Input into the accumulatorWgat dies INP do? (LMC)
Output contents of accumulatorWhat does OUT do? (LMC)
Stops the execution of the program (halt)What does HLT do?
Used to indicate a ocation that contains dataWhat does DAT do? (LMC)
Atomicity, Consistency, Isolation, DurabilityWhat does ACID stand for?
- A single logical operation on data - booking a movie ticketIn the context of databases, what is a transaction and give one example?
- A transaction is either processed in it's entirety or not at all - Even in the case of a hard disk crash or power cut, the transaction won't be processed incompletelyWhat is Atomicity?
Ensures that no transaction can violate any of the defined validation rules for maintaining the intergrity of the databaseWhat does Consistency ensure? (ACID)
In a system where more than one transaction is being processed simultaneously, they won't affect each otherWhat is Isolation? (ACID)
Ensures that once a transaction has been commited, it will remain so, even in a power cutWhat is durability? (ACID)
Record LockingWhat is a technique used to avoid updates being lost in a database from multiple users editing at the same time?
Preventing all other access to a document while one user has it openWhat is record locking?
Deadlock - when both users are locked outWhat is a potential issue with record locking?
8 bitsHow many bits in a byte?
A single character of textWhat can be stored in one byte?
kilobyte is 1000 bytes, kibibyte is 1024 bytesWhat is a kilobyte and what is a kibibyte?
065What is the ASCII code for A?
097What is the ASCII code for a?
the one where most significant bit is a sign bitWhich one is sign and magnitude?
Sacrifices accuracy for rangeWhat's the problem with fixed point binary?
Moving the binary point of a floating point number to provide the maximum level of precisionWhat is the point of normalisation? (binary)
When a number is too small to be represented in the allocated number of bitsIn binary, what is underflow?
When the result of a calculation is too large to be held in the number of bits allocatedIn binary, what is overflow?
Increases range but reduces the precisionIn floating point, what effect does moving the decimal point right have on the number's range and precision?
0.5, 0.25, 0.125, 0.0625What are the first 4 decimals after the point in floating point binary?
0 is positive, 1 is negativeIn floating point binary, which sign bit is + and which is - (0 and 1)
After the sign bit (eg. 01101001 = 0.1101001)Where is the implied decimal point in a floating point notation?
RightIn floating point, which way do you move the decimal point for a positive exponent?
Do two's complement on the mantissa and then continue normally (REMEMBER TO ADD THE '-' SIGN TO THE ANSWER!!)In floating point, what do you do if the mantissa is negative?
To maximise precisionIn the context of binary, what is the purpose of normalisation?
- Move the decimal so that the digit after it is significant (not 0) - Change the exponent as well to compensateIn floating point, how do you normalise?
Right (the one on the smaller end)In binary, which side (right or left) is the least significant bit on?
Left (the larger end)In binary, which side is the most significant bit on? (right or left)
All the bits move right or leftWhat is a logical shift?
The sign bit stays the same in an arithmetic shiftWhat's the difference with an arithmetic shift compared to a logical shift?
Divides by 2What effect does shifting a binary number one to the RIGHT have on it's value?
Multiplies by 2What effect does shifting a binary number one to the LEFT have on it's value?
Set selected bits to 1 without affecting the other bitsWhat is the use of an OR mask?
an AND maskWhich mask can be used to set particular bits to 0?