Skip to main content

Quiz 1.1: FizzBuzz

Opdracht 1

Use this implementation for both subquestions:

class FizzBuzz {
String of(int number) { /* implementation */ }
}
Subquestion 1a (2 points)

What does FizzBuzz print for the number 15?

Show correct answer

FizzBuzz

Subquestion 1b (3 points)

What does FizzBuzz print for the number 7?

Show correct answer

7

Question 3

Which numbers produce "Fizz" (divisible by 3 but not 5)?

Show correct answer

3, 6, 9, 12