Jump Trading Interview Question: It was an on campus career fa... | Glassdoor.co.uk

Interview Question

Software Engineering Interview(Student Candidate) Madison, WI (US)

It was an on campus career fair. One of the recruiters

  asked me to write a function that prints out fizz when the parameter is divisible by 3 and prints out buzz when it is divisible by 5. And it can be in any programming language

Interview Answer

1 Answer


Python -

def print_fizz_or_buzz(param):
    if param % 3 == 0: print('fizz')
    if param % 5 == 0: print('buzz')

Anonymous on 10 Apr 2015

Add Answers or Comments

To comment on this, Sign In or Sign Up.