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

Quiz: precedence and expressions

Whilst most students are quite happy with the rules of mathematical precedence, if you have any doubts, or are tempted to put in extra parentheses "just to make sure" you should do the following quiz.

Note: for simplicity we use integer expressions but the rules apply to all types. Remember that the rules of integer division mean that the remainder is thrown away.

This reminder exercise has the form of a quiz which you may either do on your own or with a partner. It may be done on any web browser.

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