Skip to content
Physics and Astronomy
Home Our Teaching Resources C programming Quiz: function calls
Back to top

Quiz: function calls

This quiz generates a sequence of fairly similar programs. Most of the programs generated will be valid but a small number will have a mistake in the function call (the rest of the program will be OK). To answer correctly you must:

  1. Decide whether the function call is correct or not.
  2. If the call is correct, decide the values of the numbers that will be printed to the screen.

Try to do the quiz as a pair

You may well find it useful to first do the straight quiz as a pair and then go on to one of the games when you are feeling a little more confident.

One person Two person
No game, just a score Single player hangman Hangman Connect 4
                                                                                                                                                                                                                                                                       

Validate   Link-check © Copyright & disclaimer Privacy & cookies Share
Back to top