Preview

03 - Computing Aptitude (Advanced level 16+)

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

  D

  C

  F

  E

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

  128

  124

  133

  143

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

  2

  3

  1

  4

 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 ("")

  for c in range(1,11)

  a=2

  b = 55

  n = a + 5

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

  m

  l

  o

  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

  None of the above

  2,3,5

  1,2,3

  1,10,15

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

  CBTJD

  CDFFG

  None of the above

  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))

  3

  4

  6

  5

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

  TUS

  TRM

  TUU

  UTB

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

  Box 1

  Box 3

  Box 2

  The car is not in any of the boxes