Junior Android Engineer Interview Questions

8,473 junior android engineer interview questions shared by candidates

Describe the hardest product you've built to date, what did it involved, what devices and how did it perform. Pros and cons? Describe the hardest product you've built to date, what did it involved, what devices and how did it perform. Pros and cons?

Android Engineer

Interviewed at Panelfly

4
Jul 20, 2016

Describe the hardest product you've built to date, what did it involved, what devices and how did it perform. Pros and cons? Describe the hardest product you've built to date, what did it involved, what devices and how did it perform. Pros and cons?

What will be the return value of someCoolFunction("[ab][bc][ca]", "[", "]")? public static String[] someCoolFunction(String str, String open, String close) { if (str == null || open == null || close == null) { return null; } int strLen = str.length(); if (strLen == 0) { return null; } int closeLen = close.length(); int openLen = open.length(); List list = new ArrayList(); int pos = 0; while (pos < (strLen - closeLen)) { int start = str.indexOf(open, pos); if (start < 0) { break; } start += openLen; int end = str.indexOf(close, start); if (end < 0) { break; } list.add(str.substring(start+1, end)); pos = end + closeLen; } if (list.isEmpty()) { return null; } return (String[]) list.toArray(new String [list.size()]); } ["bb", "cc", "da"] ["a", "b", "c"] ["ab", "bc", "ca"] ["b", "c", "a"] ["c", "b", "a"] Question 4 A perfect number is a positive integer that is equal to the sum of its proper positive divisors (factors) excluding the number itself. Complete the following function which determines whether a given number is perfect or not. int perfect(int n) { int tot = 1; int i; // ********************* // What's the code here? // ********************* return tot == n; } for (i = 2; i < n; i++) { if ( (i % n) != 0 ) { tot += i; } } for (i = 2; i < n; i++) { if ( (i % n) == 0 ) { tot += i; } } for (i = 2; i < n; i++) { if ( (n % i) == 0 ) { tot += i; } } for (i = 2; i < n; i++) { if ( (n % i) != 0 ) { tot += i; } }
avatar

Android Developer

Interviewed at Smartprix

3.4
Aug 3, 2016

What will be the return value of someCoolFunction("[ab][bc][ca]", "[", "]")? public static String[] someCoolFunction(String str, String open, String close) { if (str == null || open == null || close == null) { return null; } int strLen = str.length(); if (strLen == 0) { return null; } int closeLen = close.length(); int openLen = open.length(); List list = new ArrayList(); int pos = 0; while (pos < (strLen - closeLen)) { int start = str.indexOf(open, pos); if (start < 0) { break; } start += openLen; int end = str.indexOf(close, start); if (end < 0) { break; } list.add(str.substring(start+1, end)); pos = end + closeLen; } if (list.isEmpty()) { return null; } return (String[]) list.toArray(new String [list.size()]); } ["bb", "cc", "da"] ["a", "b", "c"] ["ab", "bc", "ca"] ["b", "c", "a"] ["c", "b", "a"] Question 4 A perfect number is a positive integer that is equal to the sum of its proper positive divisors (factors) excluding the number itself. Complete the following function which determines whether a given number is perfect or not. int perfect(int n) { int tot = 1; int i; // ********************* // What's the code here? // ********************* return tot == n; } for (i = 2; i < n; i++) { if ( (i % n) != 0 ) { tot += i; } } for (i = 2; i < n; i++) { if ( (i % n) == 0 ) { tot += i; } } for (i = 2; i < n; i++) { if ( (n % i) == 0 ) { tot += i; } } for (i = 2; i < n; i++) { if ( (n % i) != 0 ) { tot += i; } }

Viewing 871 - 880 interview questions

Glassdoor has 8,473 interview questions and reports from Junior android engineer interviews. Prepare for your interview. Get hired. Love your job.