Developer Interview Questions

270,956 developer interview questions shared by candidates

Which of the following program is a correct implementation of fizzbuzz program? FizzBuzz is a program that prints the integers from 0 to 99. But for multiples of three print “Fizz” instead of the number, and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”. for(i = 0; i < 100; i++) { if(i % 3 == 0) printf("Fizz\n"); if(i % 5 == 0) printf("Buzz\n"); if(i % 15 == 0) printf("FizzBuzz\n"); else printf("%d\n", i); } for(i = 0; i < 100; i++) { if(i % 3 == 0) printf("Fizz\n"); else if(i % 5 == 0) printf("Buzz\n"); else if(i % 15 == 0) printf("FizzBuzz\n"); else printf("%d\n", i); } for(i = 0; i < 100; i++) { if(i % 15 == 0) printf("FizzBuzz\n"); else if(i % 5 == 0) printf("Buzz\n"); else if(i % 3 == 0) printf("Fizz\n"); else printf("%d\n", i); } for(i = 0; i < 100; i++) { if(i % 15 == 0) printf("FizzBuzz\n"); if(i % 5 == 0) printf("Buzz\n"); if(i % 3 == 0) printf("Fizz\n") else printf("%d\n", i); }
avatar

Android Developer

Interviewed at Smartprix

3.4
Aug 3, 2016

Which of the following program is a correct implementation of fizzbuzz program? FizzBuzz is a program that prints the integers from 0 to 99. But for multiples of three print “Fizz” instead of the number, and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”. for(i = 0; i < 100; i++) { if(i % 3 == 0) printf("Fizz\n"); if(i % 5 == 0) printf("Buzz\n"); if(i % 15 == 0) printf("FizzBuzz\n"); else printf("%d\n", i); } for(i = 0; i < 100; i++) { if(i % 3 == 0) printf("Fizz\n"); else if(i % 5 == 0) printf("Buzz\n"); else if(i % 15 == 0) printf("FizzBuzz\n"); else printf("%d\n", i); } for(i = 0; i < 100; i++) { if(i % 15 == 0) printf("FizzBuzz\n"); else if(i % 5 == 0) printf("Buzz\n"); else if(i % 3 == 0) printf("Fizz\n"); else printf("%d\n", i); } for(i = 0; i < 100; i++) { if(i % 15 == 0) printf("FizzBuzz\n"); if(i % 5 == 0) printf("Buzz\n"); if(i % 3 == 0) printf("Fizz\n") else printf("%d\n", i); }

First round was aptitude round followed by programing round then technical round and last hr round First aptitude round contain 3 section 1st section had 30 question based on logical reasoning , section B contain 15 question of english grammar like filling the blanks. Last section c contains technical questions like c,java programing output.It is not taugh but out of 60 students 15 clear that test. Sencond round was programing round they was given pattern program.out of 15 mostly 4-5 cracked that round and next round was technical round in that round they was ask me besic concept but in deep.this round took more than 1 hour. So be prepared oops concept deep.im wating for 3rd round result.
avatar

Java Developer

Interviewed at OSI Digital

3.5
May 13, 2018

First round was aptitude round followed by programing round then technical round and last hr round First aptitude round contain 3 section 1st section had 30 question based on logical reasoning , section B contain 15 question of english grammar like filling the blanks. Last section c contains technical questions like c,java programing output.It is not taugh but out of 60 students 15 clear that test. Sencond round was programing round they was given pattern program.out of 15 mostly 4-5 cracked that round and next round was technical round in that round they was ask me besic concept but in deep.this round took more than 1 hour. So be prepared oops concept deep.im wating for 3rd round result.

Viewing 631 - 640 interview questions

Glassdoor has 270,956 interview questions and reports from Developer interviews. Prepare for your interview. Get hired. Love your job.