ALU Operation Examples

Test yourself on Arithmetic Logic Unit (ALU) with exam style questions, marked instantly.

Flashcards that come back just before you would forget them.

A revision plan that remembers what you know and shows what to do next.

See which topics you have nailed and which need another look.

Quiz yourself on Arithmetic Logic Unit (ALU)Get your flashcardsBuild my revision planTrack my progress

ALU Operation Examples

ALU in Action Arithmetic Input 1: 8 (from ACC) Input 2: 5 (value) Operation: ADD ALU Output: 13 Result → ACC 8 + 5 = 13 Logic Input 1: TRUE Input 2: FALSE Operation: AND ALU Output: FALSE Result → ACC Both must be TRUE Comparison Input 1: 7 Input 2: 5 Operation: > ALU Output: TRUE Result → ACC 7 is greater than 5 Real-World Programming Examples Arithmetic in code: total = price + tax ALU adds the two values, stores result in total Logic in code: if (isLoggedIn AND hasAccess) ALU performs AND operation on both conditions Comparison in code: while (count < 10) ALU compares count to 10, returns TRUE/FALSE Combined: if ((age >= 18) AND (hasTicket)) ALU: comparison THEN logic operation

Make this stick

Signing in gives access to all PrepWise features.

PrepWise is a trading name of A3M Quality Solutions Limited, registered in England and Wales, company number 14959172. Registered office: 202 Stroud Road, Gloucester, GL1 5LA. ICO registration ZC267069.