Don't cheat! The conditions of the quiz are:
a) Do not refer to the language report
b) Do not try it in BlackBox until you have worked out the result with pen and paper
To avoid winning the 'Spoiler of the Day' trophy please to do not reply with the correct answer or any explanation in a reply until this topic has had at least 100 views.
--------------------------------------
1. Given the following assignments:
Code: Select all
q := -10 DIV 3;
r := -10 MOD 3;
What are the resulting values of q and r?
--------------------------------------
2. Given the following assignments:
Code: Select all
x := -10;
q := x DIV 3;
r := x MOD 3;
What are the resulting values of q and r?
--------------------------------------
Regards,
Chris
Chris Burrows
CFB Software
http://www.cfbsoftware.com