CPU Science Quiz 9/21/15 Flashcards
<p>boolean</p>
<p>true or false statement (uses 1 bit of memory)</p>
<p>integer</p>
<p>(uses 4 bytes/32 bits of memory)
| </p>
<p>character</p>
<p>(uses 2 bytes/16 bits of memory)</p>
<p>String</p>
<p>Minimum 8 bytes for overhead
2 bytes per character
Additional bytes for the character array reference (because a this is really an array of characters)</p>
<p>Gate</p>
<p>a device that performs a basic operation on electrical signals</p>
<p>Gate</p>
<p>Accepts one or more inputs
Produces one output
</p>
<p>•
| </p>
<p>AND</p>
<p>&amp;&amp;</p>
<p>AND</p>
<p>| |</p>
<p>OR
| </p>
<p>+</p>
<p>OR</p>
<p>‾ </p>
<p>NOT</p>
<p>!</p>
<p>NOT</p>
<p>XOR</p>
<p>One and only one input is must be true for the statement to be true</p>
<p>Input is incorrect</p>
<p>NOT</p>
<p>At least one input must be true</p>
<p>OR</p>