Logical Binary Shifts

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/10

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

11 Terms

1
New cards

Binary Shift

A process that moves all bits in a binary number to the left or right by a specified number of places, filling empty spaces with zeros.

2
New cards

Left Shift Operator

The operator '<<' is used to shift bits to the left.

3
New cards

Right Shift Operator

The operator '>>' is used to shift bits to the right.

4
New cards

Effect of Left Shift

Shifting a binary number left is equivalent to multiplying that number by 2 for each shift.

5
New cards

Effect of Right Shift

Shifting a binary number right is equivalent to dividing that number by 2 for each shift.

6
New cards

Overflow in Shifts

When bits are shifted out during a shift operation, they are ignored.

7
New cards

Infill with Zeros

Gaps created by shifting bits are filled with zeros.

8
New cards

Precision Issue in Division

Dividing odd numbers using right shifts can lead to loss of precision, as fractional parts cannot be represented in binary.

9
New cards

Convert Binary to Decimal

The process of changing a binary number into its decimal (denary) equivalent.

10
New cards

Example of Left Shift

Shifting the binary number 11010110 to the left by 1 gives 10101100.

11
New cards

Example of Right Shift

Shifting the binary number 11010110 to the right by 2 gives 00110101.