Automata Fix & Pseudo Code Trainer
Interactive Pseudo Code Solver
Score0 pts
Accuracy0 Solved
Accenture PatternMedium
Question 1 of 4Bitwise AND & XOR Accumulation
pseudocode_executor.algoExecutable Spec
Integer a = 8, b = 5, c = 2 c = (a ^ b) + (a & b) a = c >> 1 b = a << 2 Print a + b + c
Step-by-Step Memory & Variable Trace
Step 1:
a=8b=5c=2
Initialize variables: a=8, b=5, c=2
Step 2:
a^b=13a&b=0c=13
Compute c = (8 ^ 5) + (8 & 5) = 13 + 0 = 13
Step 3:
a=6
Compute a = 13 >> 1 (bitwise right shift by 1) = 6
Step 4:
b=24
Compute b = 6 << 2 (bitwise left shift by 2) = 24
Step 5:
result=43
Result = a + b + c = 6 + 24 + 13 = 43