Preview

01 - A Level Entry Level Aptitude

 1. Analyse the shapes and sequences. What should replace the question mark?
AIL_computingaptitude_advanced_question1.png

  C

  D

  E

  F

 2. What is the next number in the series? 48 63 80 99 120 ?

  128

  143

  133

  124

 3. What number should replace the question mark in the third circle?
AIL_computingaptitude_advanced_question3.png

  3

  4

  1

  2

 4. The following code will print: 1,1,2,3,5,8,13,21,34 ….what do you need to change for it to print 55 after the 34
a = 1
b = 1
for c in range(1,10):
    print (a)
    n = a + b
    a = b
    b = n
print ("")

  a=2

  n = a + 5

  for c in range(1,11)

  b = 55

 5. What should replace the question mark in this example?
AIL_computingaptitude_advanced_question5.png

  o

  m

  l

  p

 6. Given the following code, what are the first three numbers that will be printed to the screen?
a = 1
b = 1
for c in range(1,10):
    n = a + b
    a = b
    print(n)
    b = n

  1,2,3

  2,3,5

  1,10,15

  None of the above

 7. If the code for JAVA is LCXC , what is the code for BASIC?

  None of the above

  CDFFG

  CBTJD

  DCUKE

 8. If the function mystery in the code below is called with '3' for the value of n, what will the output be?
def mystery(n):
    if n == 1:
        return 1
    else:
        return n + mystery(n-1)


print(mystery(3))

  5

  4

  3

  6

 9. If the code for PHP is QLY what is the code for SQL?

  TUS

  UTB

  TUU

  TRM

 10. In which box is the car?
AIL_computingaptitude_advanced_boxes.png

  The car is not in any of the boxes

  Box 3

  Box 1

  Box 2