Module 2 - Unit 1 - Using Data Types and Units Flashcards
What is the notational system in computing?
Notational system is one used to represent different quantities or characters. Notational systems used to represent values and quantities include decimal, binary and hexadecimal.
What is the decimal notation?
Decimal is based on the principle of expressing ten different numbers using a single digit in the range of 0 to 9. It is our day-to-day numbering system.
How would you explain place value?
Place value is the value of what a digit holds in an array of digit (numbers) based on the position that it is in. The rightmost value of the digit is the smallest and increases in value as it goes left. In decimal, the same digit on the left is ten times more to its right.
What is the binary notation?
Binary is a numbering system where each single digit can express only two values, in the range 0 to 1. The place value of each digit is two times more as it goes left.
What is the hexadecimal notation?
The hex notation system enables you to express 16 different numbers using a single digit in the range of 0-9 and A-F. A is 10, B is 11, C is 12, D is 13, E is 14, F is 15. Every 16 digit, the count in the array of digit increases by 1.
How to convert binary to decimal?
Each digit in an array of 1s and 0s has a value 2 times more than the right starting from the rightmost digit ‘1’. To get 1, the base 2 is powered by a 0 such that 2**0 = 1.
For example, in a array of 5 digits,
24, 23, 22, 21, 2**0 = 16, 8, 4, 2, 1
If all is 1 such that 11111, then the value in decimal is 31 by adding all the numbers; otherwise if it is all 0, then the value would be 0. If it is 11000, then the value will be 24.
How to convert hexadecimal to decimal?
Each digit in an array of 1s and 0s has a value 16 times more than the right starting from the rightmost digit ‘1’. To get 1, the base 16 is powered by a 0 such that 16**0 = 1.
For example, in a array of 5 digits,
164, 163, 162, 161, 16**0 = 65536, 4096, 256, 16, 1
If all is 1 such that , then the value in decimal is 69905 by adding all the numbers; otherwise if it is all 0, then the value would be 0. If it is 11000, then the value will be 69632.
How to convert a decimal to a binary?
1) Divide the number by 2
2) Get the integer quotient for the next iteration
3) Convert the remainder digit to a binary digit
4) Repeat until the number becomes zero
Example,
To convert 31 to binary:
42/2: quotient=21, remainder=0, bit=0 21/2: quotient=10, remainder=1, bit=1 10/2: quotient=5, remainder=0, bit=0 5/2: quotient=2, remainder=1, bit=1 2/2: quotient=1, remainder=0, bit=0 1/2: quotient=0, remainder=1, bit=1
Hence the binary number (from the bottom up) is:
(101010)2
How to convert a decimal to a hexadecimal?
1) Divide the number by 16
2) Get the integer quotient for the next iteration
3) Convert the remainder digit to a hex digit
4) Repeat until the quotient becomes zero
Example,
To convert 1234 to hexadecimal:
1234/16: quotient=77, remainder=2, hex=2
77/16: quotient=4, remainder=13, hex=D
4/16: quotient=0, remainder=4, hex=4
Hence the hexadecimal number (from the bottom up) is: (4D2)16
What measuring unit do you use to measure computer data in its smallest form?
Bit, a.k.a binary.
How large is a byte?
8 bits.
What is the size of Kilo, Mega, Giga, Tera and Peta?
Kilo = 1000 or 10^3 Mega = 1,000,000 or 10^6 Giga = 1,000,000,000 or 10^9 Tera = 1,000,000,000,000 or 10^12 Peta = 1,000,000,000,000,000 or 10^15
What is the more accurate notation to describe bytes in binary terms?
Kibi = 1024 or 2^10 Mebi = 1,048,576 or 2^20 Gibi = 1,073,741,824 or 2^30 Tebi = 1,009,511,627,776 or 2^40 Pebi = 1,125,899,906,842,624 or 2^50
What is a throughput rate?
It measures in bits the rate at which data transfers between computers or in the computer. It is always base 10 and can be expressed in bytes.
How is computer speed measured?
It is measured in hertz, describing the number of instruction cycles the processor can perform in a second