part 1, binary data representation and computation Flashcards
explain what a logic circuit is
this is a combination of logic gates that can perform more complex operations and outputs than could be accomplished with a single logic gate
how many representations of 0 does twos compliment have
this has only one representation of 0
with this a 0 represents a positive (+) and a 1 represents a negative (-)
in sign magnitude the first bit represents the sign of the number, but what does the 0 bit represent and what does the 1 bit represent
upper case letters start with 0100
what 4 bits do uppercase letters start with in ASCII
what are the 3 distinct parts of scientific notation
- a sign
- a mantissa (the decimal part beginning with digits 0-9 )
- an exponent (the power of 10)
this is a standard used to represent numbers and letters that are currently in use across the globe it became the standard in 2007
what is UTF-8 and when did it become the standard to be used
what does de morgans law ultimately mean
** ****** *** ultimately means that it is possible to build any logic circuits using a combination of just two logic gates
- And gate and NOT gate
- OR gate and NOT gate
this has only one representation of 0
how many representations of 0 does twos compliment have
this uses 8 bytes to store a floating point number
how many bytes does a double (double precision) use to store a float
the algorithm says that if both signs are the same for the numbers you are adding then add the smaller number to the larger number
your following the sign magnitude algorithm for addition. the numbers you are adding have the same sign. by the algorithm what is the step you should follow

describe how the truth table for the NOT operation would look with an input of A
- a sign
- a mantissa (the decimal part beginning with digits 0-9 )
- an exponent (the power of 10)
what are the 3 distinct parts of scientific notation
this works by outputing a 1 if two or more inputs are both 1
explain how the AND operation works
the original 7-bit ASCII has been preserved by this standard
what has been preserved by UTF-8
this uses a variable amount of bytes up to 6
how many bytes does UTF-8 use
what is a truth table
a truth table will take all possible inputs and then output all the posssibilitys of the operation you are performing on the inputs
how far apart are lower case letters and upper case letters in ASCII
they differ by 32 this is because the 32nd bit is flipped on or off depending on using lower or upper case letter
this is any integer greater than or equal to 0
what is an unsigned integer
let max = 4
if max is 4 then 3 + 2 would cause an overflow
the following pseudo code would warn us of this overflow before we perform the calculation
if (3 >= Max - 2) {
log overflow}
explain the technique of using a programming languages max value constant to help avoid an overflow when using addition
what is sign magnitude
this is a type of encoding that allows for signed integers
he was a friend of george boole and is the founder of the de morgans law
who is augustus de morgan and what is he the founder of
if we have n bits. what is the expression for the amount of unsigned integers that can be represented
the amount of unsigned integers that can be represented is 2^n
what has been preserved by UTF-8
the original 7-bit ASCII has been preserved by this standard
how many bytes does a typical float have
this has 4 bytes
- it can cause overflow
- it is able to be used for subtraction, division and multiplication, by turning each of these calculations into an addition problem
what are two important notes about the twos complement addition algorithm
Subtract 00110000 from the ASCII code
A character representing a digit, n, is stored as an 8-bit ASCII code. It needs to be converted into an 8 bit sign-magnitude representation for the positive numerical value, n. What is the algorithm for doing this?
- a sign
- a mantissa (the decimal part. always begins with 1)
- an exponent (a power of 2)
what are the 3 rules for scientific notation for binary numbers
using n bits in twos compliment. what is the expression for the largest positive integer that can be represented
the largest positive integer that can be represented is

this is a number that has a decimal point or A number without a fixed number of digits before and after the decimal point
what is a floating point number
this works by dedicating the first bit to the sign of the number when the first bit flips and negative numbers are being represented the largest negative number is the first number to be represented
how does twos complement work
using n bits in twos complement what is the expression for how many positive signed integers can be represented including 0
the amount of positive signed integers that can be represented including zero is
2^n / 2
using sign magnitude. if we have n bits what is the expression for the largest magnitude that can be represented
the expression for the largest magnitude that can be represented using n bits is
2^n/2 - 1
the expression for the amount of signed integers that can be represented is
2^n
using twos complement what is the expression for how many signed integers can be represented
when we have n bits the expression for the range of unsigned integers that can be represented including 0 is
2^n - 1
if we have n bits. what is the expression for the range of unsigned integers that can be represented when including 0
developed in 1963 this was a common way to represent letters and numbers in binary
what is ASCII and when was it developed
excluding zero the amount of negative signed integers that can be represented excluding 0 is
2^n/2
using n bits in twos complement what is the expression for how many negative signed integers can be represented excluding zero
the negative number with the largest magnitude that can be represented will be
2^n / 2
using n bits in twos complement what is the expression for the negative number with the largest magnitude that can be represented
what is ASCII and when was it developed
developed in 1963 this was a common way to represent letters and numbers in binary
how is a float represented in a computer
it is represented in binary scientific notation
** ****** *** ultimately means that it is possible to build any logic circuits using a combination of just two logic gates
- And gate and NOT gate
- OR gate and NOT gate
what does de morgans law ultimately mean
descibe the 1-bit full adder circuit

your following the sign magnitude algorithm for addition. the calculation you are performing involves a negative number and a positive number you have performed the calculation but now need to decide on the sign for the sum.
how is this achieved
by the algorithm after you have performed the calculation of a positive number and a negative number the sign of the sum can be found by looking back at the original calculation numbers and while still ignoring the signs decide which is greater the sign of that number will be the sign of the sum
the largest positive integer that can be represented is
2^n / 2 - 1
using n bits in twos compliment. what is the expression for the largest positive integer that can be represented
using twos complement what is the expression for how many signed integers can be represented
the expression for the amount of signed integers that can be represented is
2^n
how many inputs does the half adder have
the **** ***** has two inputs being the two bits you wish to add together
- any OR gate can be replaced by a combination of AND and NOT gates
- any AND gate can be replaced by a combination of OR and NOT gates

what two things does de morgans law tell us
an overflow will occur and the next number will display as a -8 that is 1000 in twos compliment
using twos compliment we have the binary number 0111. there are only four bits available. if 1 is added to this number what will happen
this has 3 inputs
- binary number a
- binary number b
- carry from the previous addition
how many inputs does the 1-bit full adder have
describe how the OR truth table would look

descibe how the OR logic gate is drawn

explain the technique of use arithmetic interchangeably to help mitigate overflow or underflow
one technique taken is to perform arithmetic interchangeable. that is, instead of performing many additions and multiplication or subtraction and division these should be used interchangeably with the intermediate value where possible.
what 4 bits do numbers start with in ASCII
numbers start with 0011

describe how the AND logic gate is drawn
this is able to add together binary numbers greater than 1 bit
what is the 1-bit full adder able to acomplish


what two things does de morgans law tell us
- any OR gate can be replaced by a combination of AND and NOT gates
- any AND gate can be replaced by a combination of OR and NOT gates

what 4 bits do lower case letters start with in ASCII
lower case letters start with 0110
describe how the NOT logic gate (inverter) is drawn

what are the two steps of the twos complement addition algorithm
- add the binary numbers
- discard the leftmost bit if the answer exceeds the number of available bits
who is augustus de morgan and what is he the founder of
he was a friend of george boole and is the founder of the de morgans law
how many outputs does the 1-bit full adder have
this has two outputs
- the sum
- the carry
using n bits in twos complement what is the expression for how many negative signed integers can be represented excluding zero
excluding zero the amount of negative signed integers that can be represented excluding 0 is
2^n/2
using n bits in twos complement what is the expression for the negative number with the largest magnitude that can be represented
the negative number with the largest magnitude that can be represented will be
2^n / 2
how does sign magnitude work
this works by dedicating the first bit to the sign of the number. all bits there after are the magnitude of the number.
this is made up of two half adders
describe what the 1-bit full adders logic circuit is made up off
this occurs when the number in the mantissa is to small to represent in binary. this happens because there are not enough bits available for the exponent
when does an underflow occur
what does ASCII stand for
American standard code for information interchange
positive values start with a 0. the same as sign magnitude
what bit do positive values start with in twos compliment
when does an underflow occur
this occurs when the number in the mantissa is to small to represent in binary. this happens because there are not enough bits available for the exponent
the **** ***** is able to add together 2 single bits
what is the half adder able to perform
in sign magnitude the first bit represents the sign of the number, but what does the 0 bit represent and what does the 1 bit represent
with this a 0 represents a positive (+) and a 1 represents a negative (-)
this occurs when the integer required exceeds the number of bits available
when does overflow occur
A character representing a digit, n, is stored as an 8-bit ASCII code. It needs to be converted into an 8 bit sign-magnitude representation for the negative numerical value, -n. What is the algorithm for doing this?
Subtract 00110000 from the ASCII code and add 1000 0000
the 1 in the mantissa before the decimal point is not stored by the computer. this is because it is always a 1 and so is usually hardwired into the processors floating point unit
when a computer stores a float or a double which part is never stored
describe how the AND logic gate is drawn

the expression for the largest magnitude that can be represented using n bits is
2^n/2 - 1
using sign magnitude. if we have n bits what is the expression for the largest magnitude that can be represented
- add the binary numbers
- discard the leftmost bit if the answer exceeds the number of available bits
what are the two steps of the twos complement addition algorithm
2^3=8
so the answer is 8 unsigned integers can be represented by 3 bits
if we have 3 bits how many unsigned integers can be represented
unicode transformation format-8
what does UTF-8 stand for
your following the sign magnitude algorithm for addition. the numbers you are adding have the same sign. by the algorithm what is the step you should follow
the algorithm says that if both signs are the same for the numbers you are adding then add the smaller number to the larger number
how does twos complement work
this works by dedicating the first bit to the sign of the number when the first bit flips and negative numbers are being represented the largest negative number is the first number to be represented
describe what logic operations are and name there inventor
these perform operations on on a given iput or inputs. the inventor of these was george boole
explain how the AND operation works
this works by outputing a 1 if two or more inputs are both 1
by the algorithm to add a negative number and a positive number you must ignore the signs and subtract the smaller number from the larger number
your following the sign magnitude algorithm for addition. the calculation you are performing involves a negative number and a positive number by the algorithm what is the next step to add these numbers
if we have n bits. what is the expression for the range of unsigned integers that can be represented when including 0
when we have n bits the expression for the range of unsigned integers that can be represented including 0 is
2^n - 1
this is a popular type of encoding that allows for signed integers
what is twos complement
how many inputs does the 1-bit full adder have
this has 3 inputs
- binary number a
- binary number b
- carry from the previous addition
what is a floating point number
this is a number that has a decimal point or A number without a fixed number of digits before and after the decimal point
the computer would say the equality is false even though it is true. this is because of the precision problem computers suffer from
if you asked a computer for the equality of
0.1 + 0.1 + 0.1 = 0.3. what would its answer be and why

describe the half adder circuit
these perform operations on on a given iput or inputs. the inventor of these was george boole
describe what logic operations are and name there inventor
describe how the OR operation works
this works by outputting 1 (true) if either or both the inputs is a 1 (true)

descibe how the OR logic gate is drawn
how many bytes does UTF-8 use
this uses a variable amount of bytes up to 6
- the first bit is assigned to the sign. 0 for positive 1 for negative
- the next 8 bits are the exponent
- the mantissa is the last 23 bits
a computer typically stores a float using 4 bytes but how does it use this memory
what is twos complement
this is a popular type of encoding that allows for signed integers
describe what the 1-bit full adders logic circuit is made up off
this is made up of two half adders
this works by outputting 1 (true) if either or both the inputs is a 1 (true)
describe how the OR operation works
by the algorithm if both signs are negative for the numbers you are adding then there sum will also be negative.
this same rule applies for positive numbers.
if both signs are positive for the numbers you are adding then there sum will also be positive.
your following the sign magnitude algorithm for addition. you have two calculations one is adding two negative numbers together the other is adding two positive numbers together. by the algorithm for each calculation how would you handle the sign for the sum of each calculation
the amount of unsigned integers that can be represented is 2^n
if we have n bits. what is the expression for the amount of unsigned integers that can be represented
if we have 3 bits how many unsigned integers can be represented
2^3=8
so the answer is 8 unsigned integers can be represented by 3 bits

describe how the truth table for the AND operation would look
what are the 3 rules for scientific notation for binary numbers
- a sign
- a mantissa (the decimal part. always begins with 1)
- an exponent (a power of 2)
what are two important notes about the twos complement addition algorithm
- it can cause overflow
- it is able to be used for subtraction, division and multiplication, by turning each of these calculations into an addition problem
it is represented in binary scientific notation
how is a float represented in a computer

describe how the NOT logic gate (inverter) is drawn

describe how the OR truth table would look
this has 4 bytes
how many bytes does a typical float have
American standard code for information interchange
what does ASCII stand for
describe the half adder circuit

a computer typically stores a double using 8 bytes but how does it use this memory
- the first bit is assigned to the sign. 0 for positive 1 for negative
- the next 11 bits are the exponent
- the mantissa is the last 52 bits
the amount of positive signed integers that can be represented including zero is
2^n / 2
using n bits in twos complement what is the expression for how many positive signed integers can be represented including 0
how many outputs does the half adder have
the **** ***** has two outputs
- the sum
- the carry

describe the half adder symbol
how many bytes does a double (double precision) use to store a float
this uses 8 bytes to store a floating point number
- the NOT operation
- the AND operation
- the OR operation
name 3 common logic operations
lower case letters start with 0110
what 4 bits do lower case letters start with in ASCII
what bit do positive values start with in twos compliment
positive values start with a 0. the same as sign magnitude
using twos compliment we have the binary number 0111. there are only four bits available. if 1 is added to this number what will happen
an overflow will occur and the next number will display as a -8 that is 1000 in twos compliment
- use arithmetic interchangeable (+, -, +) instead of (+, +, +) or (/, x, /) instead of (/, /, /)
- make use of the programming languages max and min constant values
what are two techniques taken that can help mitigate overflow or underflow
describe how the truth table for the AND operation would look

your following the sign magnitude algorithm for addition. you have two calculations one is adding two negative numbers together the other is adding two positive numbers together. by the algorithm for each calculation how would you handle the sign for the sum of each calculation
by the algorithm if both signs are negative for the numbers you are adding then there sum will also be negative.
this same rule applies for positive numbers.
if both signs are positive for the numbers you are adding then there sum will also be positive.
your following the sign magnitude algorithm for addition. the calculation you are performing involves a negative number and a positive number by the algorithm what is the next step to add these numbers
by the algorithm to add a negative number and a positive number you must ignore the signs and subtract the smaller number from the larger number
describe how the truth table for the NOT operation would look with an input of A

if you asked a computer for the equality of
0.1 + 0.1 + 0.1 = 0.3. what would its answer be and why
the computer would say the equality is false even though it is true. this is because of the precision problem computers suffer from
it handles this by giving the closest value it can, given the number of bits it has
how do computers handle a sum such as 1/3 which is an infinite repeating decimal
using n bits what will the binary representation be for the negative number with the largest magnitude
using n bits the binary representation for the negative number with the largest magnitude will be
1 followed by all n 0s
explain the technique of using a programming languages max value constant to help avoid an overflow when using addition
let max = 4
if max is 4 then 3 + 2 would cause an overflow
the following pseudo code would warn us of this overflow before we perform the calculation
if (3 >= Max - 2) {
log overflow}
how does the NOT operation work
this works by flipping the bit
a computer typically stores a float using 4 bytes but how does it use this memory
- the first bit is assigned to the sign. 0 for positive 1 for negative
- the next 8 bits are the exponent
- the mantissa is the last 23 bits
name 3 common logic operations
- the NOT operation
- the AND operation
- the OR operation
this is a type of encoding that allows for signed integers
what is sign magnitude
how is the number 0 represented in sign magnitude
this represents 0 twice. firstly as +0 then again as -0
this is a combination of logic gates that can perform more complex operations and outputs than could be accomplished with a single logic gate
explain what a logic circuit is
Subtract 00110000 from the ASCII code and add 1000 0000
A character representing a digit, n, is stored as an 8-bit ASCII code. It needs to be converted into an 8 bit sign-magnitude representation for the negative numerical value, -n. What is the algorithm for doing this?
numbers start with 0011
what 4 bits do numbers start with in ASCII
A character representing a digit, n, is stored as an 8-bit ASCII code. It needs to be converted into an 8 bit sign-magnitude representation for the positive numerical value, n. What is the algorithm for doing this?
Subtract 00110000 from the ASCII code
a truth table will take all possible inputs and then output all the posssibilitys of the operation you are performing on the inputs
what is a truth table
descibe the 1-bit full adder symbol

what 4 bits do uppercase letters start with in ASCII
upper case letters start with 0100
describe the half adder symbol

what is the 1-bit full adder able to acomplish
this is able to add together binary numbers greater than 1 bit


what are two techniques taken that can help mitigate overflow or underflow
- use arithmetic interchangeable (+, -, +) instead of (+, +, +) or (/, x, /) instead of (/, /, /)
- make use of the programming languages max and min constant values
when a computer stores a float or a double which part is never stored
the 1 in the mantissa before the decimal point is not stored by the computer. this is because it is always a 1 and so is usually hardwired into the processors floating point unit
what is UTF-8 and when did it become the standard to be used
this is a standard used to represent numbers and letters that are currently in use across the globe it became the standard in 2007
what bit do negative values start with in twos complement
negative values start with a 1. the same as sign magnitude
the **** ***** has two inputs being the two bits you wish to add together
how many inputs does the half adder have
when does overflow occur
this occurs when the integer required exceeds the number of bits available
how do computers handle a sum such as 1/3 which is an infinite repeating decimal
it handles this by giving the closest value it can, given the number of bits it has
one technique taken is to perform arithmetic interchangeable. that is, instead of performing many additions and multiplication or subtraction and division these should be used interchangeably with the intermediate value where possible.
explain the technique of use arithmetic interchangeably to help mitigate overflow or underflow
what does UTF-8 stand for
unicode transformation format-8
this works by dedicating the first bit to the sign of the number. all bits there after are the magnitude of the number.
how does sign magnitude work

descibe the 1-bit full adder symbol
this works by flipping the bit
how does the NOT operation work
- the first bit is assigned to the sign. 0 for positive 1 for negative
- the next 11 bits are the exponent
- the mantissa is the last 52 bits
a computer typically stores a double using 8 bytes but how does it use this memory
what is the half adder able to perform
the **** ***** is able to add together 2 single bits
this represents 0 twice. firstly as +0 then again as -0
how is the number 0 represented in sign magnitude
this has two outputs
- the sum
- the carry
how many outputs does the 1-bit full adder have
negative values start with a 1. the same as sign magnitude
what bit do negative values start with in twos complement
using n bits the binary representation for the negative number with the largest magnitude will be
1 followed by all n 0s
using n bits what will the binary representation be for the negative number with the largest magnitude
by the algorithm after you have performed the calculation of a positive number and a negative number the sign of the sum can be found by looking back at the original calculation numbers and while still ignoring the signs decide which is greater the sign of that number will be the sign of the sum
your following the sign magnitude algorithm for addition. the calculation you are performing involves a negative number and a positive number you have performed the calculation but now need to decide on the sign for the sum.
how is this achieved
the **** ***** has two outputs
- the sum
- the carry
how many outputs does the half adder have
they differ by 32 this is because the 32nd bit is flipped on or off depending on using lower or upper case letter
how far apart are lower case letters and upper case letters in ASCII
what is an unsigned integer
this is any integer greater than or equal to 0

descibe the 1-bit full adder circuit
in binary ASCII what do each of these begin with
- number
- lowercase letters
- uppercase letters
