Number Systems

0.0(0)
studied byStudied by 1 person
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/38

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 1:31 AM on 9/29/24
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

39 Terms

1
New cards

Numbers by themselves are just:

Numbers

2
New cards

What only matters to computers

Binary

3
New cards

8 bit byte

28=256

4
New cards

Signed integer

  • can present both positive and negative integers

  • 0 means positive

  • 1 means negative

  • default type in programming

5
New cards

Range for n-bit integer

-(2n-1) to (2n-1 -1)

6
New cards

Unsigned Integer

  • only represent positive numbers (includes zero)

7
New cards

Range for unsigned Integers

0 to (2n-1)

8
New cards

What happens when you have too many for the data type

It doesn’t matter, data type must hold more than enough

9
New cards

What is overflow in C

Undefined

10
New cards

Signed vs Unsigned

compares the binary values

11
New cards
12
New cards

Which programming languages do not have unsigned integeres

C# and Java

13
New cards

Bits and bit width

  • 8 bit = 28 = 256 (unsigned)

  • 16 bit = 216 = 65,536 (width 32,767 to −32,768)

  • 32-bit long = 232

  • 64-bit long long = 264

14
New cards

C language implementation varies by

complier and platform

15
New cards

In binary system, what value is between 0 and 1

Every fractional value aka a float and double

16
New cards

Bit

  • Binary Digit

  • unambiguous unit used to encode a message for transmission

17
New cards

Byte

  • 8 bits

  • the smallest unit of data

18
New cards

0 - 1 for storage of a value

in a bit

19
New cards

Float

  • single precision floating point

  • precision: 24 bits left & right of decimal

  • precision limit: 224'

  • accuracy: 6 decimals

20
New cards

Double

  • double precision floating-point

  • precision: 53 bits left & right of decimal

  • precision limit: 9 quadrillion

  • accuracy: 15 decimals

21
New cards

Number system

  • the information stored and processed inside a computer system is represented in machine language which is only 0s and 1s

  • writing system for expressing numbers

  • mathematical notation for representing numbers of a given set

  • also referred to as “a numeral system” or “system of numeration”

22
New cards

What does computer translates all input into

letters, words, special characters to numbers.

23
New cards

humans use “decimal number, computer understands?

“binary” number system that has only 2 (0 and 1) digits

24
New cards

To represent binary numbers concisely we use

Hexadecimal number system, uses 10 digits (0-9) and 6 symbols (A-F)

25
New cards

Value of a digit in a number is determined by

  • the digit itself

  • the position of the digit

  • the base of the number system

26
New cards

Decimal Number System

  • human preferred

  • it has base 10 as it uses 10 digits (0-9)

  • each successive position represents a specific power of base 10

27
New cards

Binary number system

  • the one that a computer or a machine understand

  • only uses two digits; 0 and 1; base is 2

  • just like decimal, value of digits increase from right to left, each successive position represents a specific power of base ( 2 in this case)

28
New cards

All data transfer, storage, and processing done by a

microcomputer is performed digitally using binary codes

29
New cards

Binary system translates every character entered in the computer as a set of

1s and 0s

30
New cards

A single binary digit is called a

bit

31
New cards

A collection of 8 bits is called a

byte

32
New cards

one bite can represent any of

256 characters ; 28 = 256

33
New cards

memory size is referred to in

units of bytes

34
New cards

How to convert from Decimal to Binary and vice versa

Decimal to Binary: Divide by 2, record remainders, read bottom to top.

Binary to Decimal: Assign powers of 2, multiply, and add.

35
New cards

How many digits does hexadecimal use

16 digits: 0 to 9 and A to F; letters A - F represents digits start from 10.

36
New cards

HTML color representations uses

Hex codes of RGB

37
New cards

00 and FF intensity

00 is lowest ; FF is highest

38
New cards

what is the hex code for white and black

FFFFFF: white ; 00000: black

39
New cards

In binary logic and computing 0 and 1 are considered:

0 is False

1 is True