T = int(input()) for _ in range(T): N = int(input()) a = list(map(int,input().split())) if N % 2 == 1: print('Alice') continue S = 0 for i in a: S ^= i if S == 0: print('Bob') else: print("Alice")