Describe Scoped functions in Kotlin ?
Junior Android Engineer Interview Questions
8,473 junior android engineer interview questions shared by candidates
what is singletone class?why we use this?
There were two questions on whiteboard interview. First of them was Algorithm related. Second one was about Android Knowledge.
Tell me about yourself
Viewmodel Internal Working MVVM, kotlin questions 2 dsa question array , string
How protected variable in one package can be accessed in another package.
How to optimize in-memory cache from list of pairs?
Peor tiempo para obtener un valor de un hashmap. Y como funciona.
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; } }
Viewing 871 - 880 interview questions