Developer Android Interview Questions

10,446 developer android 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); }

Which one of the following is true by default of a Service declared in your manifest? A. It runs in the UI thread. B. It comes with an associated Thread for background execution. C. It’s automatically initialized when you start your app. D. You can only configure it to communicate with the process in which it was started. You want your messaging app to appear as an option in the intent chooser when a user shares content in another application. To do this, you MUST do which of the following? A. Create an IntentService in your Application object to listen to the SENT_MESSAGE intent. B. Register a broadcast receiver in your manifest to receive BROADCAST_SMS. C. Register a ContentObserver to listen to writes to Telephony.Sms.Inbox. D. Register an intent filter for ACTION_SEND in your manifest.
avatar

Android Developer

Interviewed at Meta

3.6
May 1, 2015

Which one of the following is true by default of a Service declared in your manifest? A. It runs in the UI thread. B. It comes with an associated Thread for background execution. C. It’s automatically initialized when you start your app. D. You can only configure it to communicate with the process in which it was started. You want your messaging app to appear as an option in the intent chooser when a user shares content in another application. To do this, you MUST do which of the following? A. Create an IntentService in your Application object to listen to the SENT_MESSAGE intent. B. Register a broadcast receiver in your manifest to receive BROADCAST_SMS. C. Register a ContentObserver to listen to writes to Telephony.Sms.Inbox. D. Register an intent filter for ACTION_SEND in your manifest.

Viewing 21 - 30 interview questions

Glassdoor has 10,446 interview questions and reports from Developer android interviews. Prepare for your interview. Get hired. Love your job.