Data storage Flashcards

1
Q

Name 5 different data types

A

Numbers, text, audio, images, and video

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a bit pattern

A

A string of bits

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What representation is used to store an integer

A

fixed-point representation (no decimals only float)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is an unsigned integer

A

An integer that can never be negative and only has 0 to positive values. Its range is between 0 and +ve infinity.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the largest constant unsigned integer called

A

maximum unsigned integer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the formula to work out the maximum unsigned integer

A

2^n-1, where n is the number of bits

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How does the storing of unsigned integers work

A
  1. The integer is changed to binary
  2. If the number of bits is less than n, 0s are added to the left of the binary value but if the number of bits is greater than n, the integer can not be stored and the condition overflow will occur.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Will the integer 258 store in a 16-bit memory allocation

A

256= (100000010), therefore yes as there are 7 spaces for 0 and 1s left so we will add 7 0s to the left which will equal (0000000100000010)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what is overflow

A

When the data that is being stored is greater than the amount of space provided so data is lost
e.g. storing 15 in a 4-bit memory location 15=(10100) and it will only store (0100) so the value will change because of overflow and now it equals 4 and not 15.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How doe sign-and-magnitude representation work

A
  1. find the range( 0-2^n -1)
  2. if it’s positive it will end with0 on the left and if it’s negative it will end with a 1.
  3. see how big the bit location is and minus 1
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How do you store an integer in twos complement format

A
  1. Integer is changed to binary
  2. If the integer is positive or zero, it stores as it is however if its negative the computer stores the two’s complement of the integer
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How does retrieving an integer in twos complement format work

A
  1. If the leftmost bit is 1; twos complement is applied; if zero no operation is applied
  2. The computer changes the integer to decimal
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the three parts of floating-point representation

A

[sign][shifter][Fixed-pointer number)
e.g.
+7 425 000 000 000. 000
sign[+]shifter[12]fixed-point part[7.425]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

what the number(1011 000 000.00) in floating-point format

A

1.011 x 2^12

How well did you know this?
1
Not at all
2
3
4
5
Perfectly