Android Lead Interview Questions

8,360 android lead interview questions shared by candidates

Have the function EvenPairs(str) take the str parameter being passed and determine if a pair of adjacent even numbers exists anywhere in the string. If a pair exists, return the string true, otherwise return false. For example: if str is "f178svg3k19k46" then there are two even numbers at the end of the string, "46" so your program should return the string true. Another example: if str is "7r5gg812" then the pair is "812" (8 and 12) so your program should return the string true. Examples Input: "3gy41d216" Output: true Input: "f09r27i8e67" Output: false
avatar

Android Developer

Interviewed at Knowcross

3.8
Aug 6, 2021

Have the function EvenPairs(str) take the str parameter being passed and determine if a pair of adjacent even numbers exists anywhere in the string. If a pair exists, return the string true, otherwise return false. For example: if str is "f178svg3k19k46" then there are two even numbers at the end of the string, "46" so your program should return the string true. Another example: if str is "7r5gg812" then the pair is "812" (8 and 12) so your program should return the string true. Examples Input: "3gy41d216" Output: true Input: "f09r27i8e67" Output: false

Viewing 1371 - 1380 interview questions

Glassdoor has 8,360 interview questions and reports from Android lead interviews. Prepare for your interview. Get hired. Love your job.