Save
Busy. Please wait.
Log in with Clever
or

show password
Forgot Password?

Don't have an account?  Sign up 
Sign up using Clever
or

Username is available taken
show password


Make sure to remember your password. If you forget it there is no way for StudyStack to send you a reset link. You would need to create a new account.
Your email address is only used to allow you to reset your password. See our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.
focusNode
Didn't know it?
click below
 
Knew it?
click below
Don't Know
Remaining cards (0)
Know
0:00
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how

data types

1.4 - data types

TermDefinition
data types how data is stored in memory
primitive data types (almost universal) data types that can work as fundamental building blocks for that language
integer any whole positive or negative number
real/float any number
character a single character from its character set
string a collection of characters
Boolean (normally true or false), on/off statements normally used for logic statements
casting converting one data type to another
composite data types "complex" data types which may be made from a sum of primitive data types
the real world is analogues and continuous
the digital world uses binary states
binary representation arbitrary, yet "1" normally means the equivalent to "on" and "0" is normally equivalent to "off"
binary as a base base 2, a base who's digits represent increasing powers of 2
denary base 10 (decimal), uses powers of 10 as digits
hexidecimal base 16 (uses A-F for the "extra numbers" for 10-15 decimal), uses powers of 16 as digits
the digital world represented by binary states
binary states representation arbitrary, but generally “1” means the equivalent to “on” and “0” means the equivalent to “off”
binary as a base base-2
how to read base-2 each digit represents an increasing power of 2, starting from 0
binary to hexadecimal convert each nibble into hexadecimal individually, then combine them in order
denary to hexadecimal often easier to convert denary to binary, then into hexadecimal
conversions into denary multiply each digit by the base to the power of the position (starting from 0), then sum everything together
representing negative numbers sign/magnitude, 2's compliment
sign/magnitude using the last bit as a +/- system (1 for negative) and having the positive part of the number be the same without the system
sign/magnitude downside addition of binary digits becomes more complicated as the use of numbers to mean a state as well as well as a number makes them hard to use computationally (and it has a fewer range then two’s compliment)
two's compliment Using the last bit as the negative version of itself and adding up terms to get a negative number can be done by writing the positive version of the number, copying it until the set bit and then inverting the number
two's compliment range [-2^(n-1)] to [2^(n-1)-1] for n bits
sign/magnitude range [-2^(n-1)-1] to [2^(n-1)-1] for n bits
binary addition rules 1+1 = 0 carry 1 and 1+1+1 = 1 carry 1, 1+0 = 1 and 0+0 = 0
binary subtraction uses the same system as addition, but the negative number is written using two’s compliment
Created by: That cool NAMe
Popular Computers sets

 

 



Voices

Use these flashcards to help memorize information. Look at the large card and try to recall what is on the other side. Then click the card to flip it. If you knew the answer, click the green Know box. Otherwise, click the red Don't know box.

When you've placed seven or more cards in the Don't know box, click "retry" to try those cards again.

If you've accidentally put the card in the wrong box, just click on the card to take it out of the box.

You can also use your keyboard to move the cards as follows:

If you are logged in to your account, this website will remember which cards you know and don't know so that they are in the same box the next time you log in.

When you need a break, try one of the other activities listed below the flashcards like Matching, Snowman, or Hungry Bug. Although it may feel like you're playing a game, your brain is still making more connections with the information to help you out.

To see how well you know the information, try the Quiz or Test activity.

Pass complete!
"Know" box contains:
Time elapsed:
Retries:
restart all cards