Developer Interview Questions

269,106 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.

A duck that is being chased by a fox saves itself by sitting at the center of circular pond of radius r. The duck can fly from land but cannot fly from the water. Furthermore, the fox cannot swim. The fox is four times faster than the duck. Assuming that the duck and fox are perfectly smart, is it possible for the duck to ever reach the edge of the pond and fly away to its escape from the ground
avatar

Software Developer

Interviewed at Yandex

4.1
Jan 7, 2013

A duck that is being chased by a fox saves itself by sitting at the center of circular pond of radius r. The duck can fly from land but cannot fly from the water. Furthermore, the fox cannot swim. The fox is four times faster than the duck. Assuming that the duck and fox are perfectly smart, is it possible for the duck to ever reach the edge of the pond and fly away to its escape from the ground

Viewing 631 - 640 interview questions

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