Quiz
Questions in this quiz (1)
1What does the following function do when passed two integer values for $p and $q ?
function magic($p, $q) {
return ($q == 0) ? $p : magic($q, $p % $q);
}- ADetermines the greatest common divisor between them
- BDetermines if they are both even or odd
- CLoops infinitely
- DCalculate the modulus between the two
- ESwitches the values of $p and $q
Information
- Description
- Quiz on QQ, created by Lita Yurasova on 18/01/2021.
- Author
- Lita Yurasova
- Language
- English
- Views
- 0
- Rating
- No ratings yet Rate this quiz