Difference between revisions of "2022 Paper 1 Revision Quiz"
Line 68: | Line 68: | ||
{Look at this sample code: | {Look at this sample code: | ||
− | + | <nowiki> | |
1: public int Fact(int num) | 1: public int Fact(int num) | ||
2: { | 2: { | ||
Line 75: | Line 75: | ||
5: else | 5: else | ||
6: return num * Fact(num-1); | 6: return num * Fact(num-1); | ||
− | 7: } | + | 7: }</nowiki> |
− | |||
− | |||
The function Fact is run with the parameter of 5. | The function Fact is run with the parameter of 5. | ||
+ | Fact(5); | ||
|type="{}"} | |type="{}"} | ||
Name a famous Greek philosopher. | Name a famous Greek philosopher. | ||
{ Aristotle|Plato } | { Aristotle|Plato } | ||
</quiz> | </quiz> |