T = int(input()) for _ in range(T): N = int(input()) A = list(map(int,input().split())) print('Alice'if N%2==1 or A.count(1)%2==1 else 'Bob')