mod = 1000000007 eps = 10**-9 def main(): import sys input = sys.stdin.readline for _ in range(int(input())): N = int(input()) A = list(map(int, input().split())) if N & 1: print("Alice") else: g = 0 for a in A: g ^= a if g: print("Alice") else: print("Bob") if __name__ == '__main__': main()