Android Engineer Interview Questions

9,765 android engineer 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.

Implement method oneEditApart that return boolean: true, if using one operations (insert or remove or replace) we can modify one string to get another. False otherwise. // Signature: boolean oneEditApart(String s1, String s2) // Allowing operations insert remove replace Example: oea("cat", "cut") =&gt; true // replace "u" -&gt; "a" oea("cat", "cuts") =&gt; false // no operations oea("ca", "ca") =&gt; false // no operations oea("cats", "cat") =&gt; true // remove "s" oea("cat", "at") =&gt; true // insert "c" oea("cat", "cbat") =&gt; true // remove "b"
avatar

Software Engineer, Android

Interviewed at Meta

3.6
Jun 4, 2014

Implement method oneEditApart that return boolean: true, if using one operations (insert or remove or replace) we can modify one string to get another. False otherwise. // Signature: boolean oneEditApart(String s1, String s2) // Allowing operations insert remove replace Example: oea("cat", "cut") =&gt; true // replace "u" -&gt; "a" oea("cat", "cuts") =&gt; false // no operations oea("ca", "ca") =&gt; false // no operations oea("cats", "cat") =&gt; true // remove "s" oea("cat", "at") =&gt; true // insert "c" oea("cat", "cbat") =&gt; true // remove "b"

You have an Activity, and you implement push notification, when you receive a notification, and you tap on it, the PendingIntent launched point to your Activity. If you open a notification, and your Activity is visible in that moment, in which method of the activity you receive the intent with the information of the push message?
avatar

Android Developer

Interviewed at Globant

3.6
Jul 2, 2015

You have an Activity, and you implement push notification, when you receive a notification, and you tap on it, the PendingIntent launched point to your Activity. If you open a notification, and your Activity is visible in that moment, in which method of the activity you receive the intent with the information of the push message?

Viewing 21 - 30 interview questions

See Interview Questions for Similar Jobs

Glassdoor has 9,765 interview questions and reports from Android engineer interviews. Prepare for your interview. Get hired. Love your job.