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


























