Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 9

=======================================================================

=======

Interview Questions
Android

1. Services ( https://developer.android.com/guide/components/services#java)
2. Job Scheduler
(https://www.vogella.com/tutorials/AndroidTaskScheduling/article.html)
3. (https://developer.android.com/guide/background)
4. Bound services (https://developer.android.com/guide/components/bound-
services.html)
5. Intent Service
6. Background execution limits
(https://developer.android.com/about/versions/oreo/background.html)
7. Create a notification (https://developer.android.com/training/notify-user/build-
notification.html)
8. Work manager
(https://developer.android.com/topic/libraries/architecture/workmanager?
gclid=CjwKCAiA_f3uBRAmEiwAzPuaM1wKinCrWSR0ayR0YsNJjrGHNRMDDIF29
R5nBydD7Uuuf0cTQUqdPBoC8G4QAvD_BwE)
9. Local broadcast and BroadcastReceivers
(https://developer.android.com/jetpack/androidx/releases/localbroadcastmana
ger#1.1.0-alpha01)
10. Types of Threads in Android
(https://developer.android.com/topic/performance/threads#kotlin)
11. Communicate with UI thread (https://developer.android.com/training/multiple-
threads/communicate-ui#java)
12. Handler : (https://developer.android.com/reference/android/os/Handler.html)
13. Handler vs. Thread
14. Post and send message example (https://medium.com/@manishgiri/android-
handler-tutorial-ccda6994f01c)
15. Parcelable ( https://android.jlelse.eu/parcelable-vs-serializable-6a2556d51538)
16. Scope operators : (https://www.journaldev.com/19467/kotlin-let-run-also-apply-
with)
17. (https://blog.mindorks.com/viewmodel-with-savedstate)
18. Internal Working of ViewModel
(https://stackoverflow.com/questions/59513329/how-does-the-android-
viewmodel-works-internally-internal-working- of-view-model)
19. SavedinstanceState : (https://stackoverflow.com/questions/16769654/how-to-
use-onsaveinstancestate-and-onrestoreinstancestate
20. Data Binding : (https://www.journaldev.com/11950/android-data-binding-
advanced-concepts)
21. Binding with recycler view : (https://www.journaldev.com/23989/android-
recyclerview-data-binding)
22. Retrofit vs volley : (https://medium.com/@ali.muzaffar/is-retrofit-faster-than-
volley-the-answer-may-surprise-you-4379bc589d7c)
23. Picasso vs glide : (https://medium.com/@multidots/glide-vs-picasso-
930eed42b81d)
24. Navigation architecture : (https://www.journaldev.com/22299/android-jetpack-
navigation-architecture)
25. (https://developer.android.com/guide/navigation/navigation-principles)
26. (https://codelabs.developers.google.com/codelabs/android-navigation/#0)
27. (https://medium.com/@amitshekhar/top-kotlin-blogs-to-learn-more-in-kotlin-
82a6387e4dd6?source=email-e685fec5400e-1576961637456-digest.reader------
0-1------------------3e138073_a555_45b1_bb40_ea0eb46fc300-1-----
&sectionName=top)
28. Null safety : (https://kotlinlang.org/docs/reference/null-safety.html)
29. Parceable in Kotlin
30. Android security shared preferences:
(https://medium.com/@sgkantamani/securing-sensitive-data-in-android-
e261687ab66e)
31. Fragment add, replace and add to the back stack :
(https://stackoverflow.com/questions/18634207/difference-between-add-
replace-and-addtobackstack)
32. Min time between the periodic request of Work Manager:
https://developer.android.com/reference/androidx/work/PeriodicWorkRequest#
MIN_PERIODIC_INTERVAL_MILLIS
33. Min time to run a request = 5 min Min time between 2 requests = 15 min
34. commit() writes the data synchronously (blocking the thread it’s called from). It
then informs you about the success of the operation.apply() schedules the data
to be written asynchronously. It does not inform you about the success of the
operation. If you save with apply() and immediately read via any getX-method, the
new value will be returned!
35. https://stackoverflow.com/questions/5960678/whats-the-difference-between-
commit-and-apply-in-shared-preference
36. Async task with screen orientation change:
https://www.androiddesignpatterns.com/2013/04/retaining-objects-across-
config-changes.html
37. Kotlin inline and infix functions reified
38. Handling Lifecycles with Lifecycle-Aware Components:
https://developer.android.com/topic/libraries/architecture/lifecycle
39. JobScheduler
40. Lifecycle of view android (https://proandroiddev.com/the-life-cycle-of-a-view-in-
android-6a2c4665b95e)
41. https://medium.com/@manish_bannur/replace-android-foreground-services-
with-workmanager-a739f7c8ff76#fromHistory
42. Activity life cycle - https://medium.com/androiddevelopers/the-android-lifecycle-
cheat-sheet-part-iv-49946659b094
43. https://developer.android.com/guide/topics/manifest/activity-element#lmode
44. https://developer.android.com/guide/components/activities/tasks-and-back-
stack
45. https://developer.android.com/guide/fragments/fragmentmanager
46. Scoped Storage
47. Sealed Classes
48. Coroutines, why coroutines are lightweight, exception handling
49. Scope functions Kotlin
50. Difference between intent and intent filter in Android
(https://stackoverflow.com/questions/5919865/difference-between-intent-and-intenfilter-
in-android)
51. Kotlin Flows
52. What happens when you start the same service twice
53. How does RecyclerView work internally?
54. Internal working picasso glide
55. Launch Mode SingleInstance -
After navigating from A->B you have 2 tasks: The first one contains A, the second one
contains B. B is on top and A is below that.

Now when navigating from B->C Android launches activity C into the task containing A (it
cannot launch it into the task containing B because B is defined as "singleInstance", so it
launches it into a task that has the same "taskAffinity", in this case, the task containing
A). To do that, Android brings the task containing A to the front. Now you have 2 tasks:
The task containing A and C in the front, and the second one containing B below that.

Now you press the BACK key, which finishes activity C and returns to the activity below
that in the task, namely A. You still have 2 tasks: The one containing A in the front, and
the one containing B below that.
Now you press the BACK key again. This finishes activity A (and thereby finishes the
task that held A) and brings the previous task in the task stack to the front, namely the
task containing B. You now have 1 task: the task containing B.

In your other scenario, after navigating from A->B->C, you start with 2 tasks: The task
containing A and C in the front, and the second one containing B below that.

56. Memory Leak - (https://proandroiddev.com/everything-you-need-to-know-about-memory-


leaks-in-android-d7a59faaf46a#:~:text=One%20common%20indication%20of
%20a,available%20by%20the%20garbage%20collector.)
57. Plugins vs. packages
58. UI janks
59. Invoke Kotlin
60. Operator overloading - unaryMinus, inc…
61. Inline, no inline, crossline, reified
62. Progaurd vs. R8
63. Room Db migrations

============================================================
====

Java

Coding
1. Print all permutations of a string in Java (https://www.geeksforgeeks.org/print-
all-permutations-of-a-string-in-java/ )
2. Check if two strings are anagrams of each other
(https://afteracademy.com/blog/check-if-two-strings-are-anagram-of-each-
other)
3. Java Program to Check Whether a Number is Prime or Not
(https://www.programiz.com/java-programming/examples/prime-number)
4. Find the Second largest element in an array
(https://www.geeksforgeeks.org/find-second-largest-element-array/)
5. Java program to find the second largest number in an array
(http://java.candidjava.com/tutorial/Java-program-to-find-second-largest-
number-in-an-array.htm)
6. Remove duplicates from the array in Java
7. Add 2 linked lists
8. Remove all duplicate adjacent numbers from array
9. Separate 0 and 1: https://www.geeksforgeeks.org/segregate-0s-and-1s-in-an-
array-by-traversing-array-once/
10. Sorting Algorithms
11. Tree mirroring
12. Height of binary tree
13. Queue using stacks: https://www.geeksforgeeks.org/queue-using-stacks/
14. Tree traversing: https://www.geeksforgeeks.org/tree-traversals-inorder-preorder-
and-postorder/
15. Checked vs. unchecked exceptions
16. Call by value call by reference

General
1. Exceptions in Java (https://www.geeksforgeeks.org/exceptions-in-java/)
2. Checked vs Unchecked Exceptions in Java
(https://www.geeksforgeeks.org/checked-vs-unchecked-exceptions-in-java/)
3. How to clone an object : (https://www.geeksforgeeks.org/clone-method-in-java-
2/)
4. Prevent cloning : (https://www.geeksforgeeks.org/prevent-singleton-pattern-
reflection-serialization-cloning)
5. Java Design patterns : (https://www.journaldev.com/1827/java-design-patterns-
example-tutorial)
6. Singleton pattern : (https://www.geeksforgeeks.org/java-singleton-design-
pattern-practices-examples/)
7. Reflection in Java: (https://www.geeksforgeeks.org/reflection-in-java/)
8. Thread : (https://www.edureka.co/blog/java-thread/)
9. Interthread communication
(https://www.tutorialspoint.com/java/java_thread_communication.htm)
10. Deadlock : (https://www.tutorialspoint.com/java/java_thread_deadlock.htm)
11. how to create an immutable class in Java
(https://www.geeksforgeeks.org/create-immutable-class-java/)
12. Final, finally, finalize (https://www.geeksforgeeks.org/g-fact-24-finalfinally-and-
finalize-in-java/)
13. Memory Leaks - https://www.baeldung.com/java-memory-leaks
14. how to prevent object creation in the class. --private constructor
15. HashSet : https://www.geeksforgeeks.org/hashset-in-java/
16. References in Java: https://www.geeksforgeeks.org/types-references-java/
17. Hashing: https://www.geeksforgeeks.org/hashing-set-1-introduction/
18. Stack vs Heap Memory Allocation:
19. Garbage Collector
20. String Pool in Java:
https://www.edureka.co/blog/java-string-pool/#:~:text=String%20Pool%20is
%20a%20storage,performance%20and%20decrease%20memory%20overhead.
21. Why is String immutable?
22. Reverse a string
https://www.techiedelight.com/reverse-string-kotlin/#:~:text=Using
%20Character%20Array,characters%20from%20the%20original%20string .
23.

=================================================================
=======

Flutter
1. Dart Overview https://dart.dev/overview
2. Mixins
3. Streams
4. State Management - BLOC, Providers, Inherited Widgets,
5. Isolates
6. Method and Event Channels
https://docs.flutter.dev/platform-integration/platform-channels
7. https://medium.com/@igaurab/event-channels-in-flutter-2b4d0db0ee4f
8. Hot Restart vs. Hot Reload
9. Async vs. async*
10. Plugin vs. Package
11. Hive, Sqlite
12. Exception handling globally
13. Lifecycle of widgets
14. Tree Shaking
15. Dart ffi
16. Layout Builder
17. Why const flutter
18. Types of trees
19. Pass object to method channel
20. Sort list using dart function

=======================================================================
=======

Common Questions
1. Unit testing
2. CI/CD Pipeline
3. Latest Updates
4. Scripts
5. System Design (https://www.youtube.com/watch?
v=cODCpXtPHbQ&list=PLhgw50vUymycJPN6ZbGTpVKAJ0cL4OEH3&index=4&t
=946s)
6.
7. Optimize apps (https://radixweb.com/blog/how-to-improve-android-app-
performance)
8. https://www.geeksforgeeks.org/ways-to-optimize-the-performance-of-your-
flutter-application/
9. UI Janks - (https://medium.com/androiddevelopers/spot-your-ui-jank-using-cpu-
profiler-in-android-studio-9a4c41a54dab)
10. Baseline Profiles
11. Performance Issues, improve
12. Security - SSL Pinning SafetyNetApi
13. Solid principles
14. Deeplink handling
15. Design Patterns

=======================================================================
=======

Company Wise Questions

Paytm

1. Print mirror elements of tree


2. The life cycle of view
3. Launch Modes
4. Work Manager
5. Activity A -> Fragment A -> Fragment B ( lifecycle)
6. Separate 0 and 1
7. Activity A-> Fragment A(add to back stack)-> Fragment B(replace)
8. Dagger and Dagger 2
9. MVVM-> View models
10. Observerforever
11. Broadcast receiver
12. NEW TASK and Clear top
13. Given a string s, find the first non-repeating character in it and return its index. If
it does not exist, return -1.

Input - Paytm Output - 0

Input - pAyaTpaytm Output - 9

Input - payyap Output - -1

14. Remove adjacent similar items from an array.

Ganna
1. R R R G G G G G G G B B B B B B B B B B - 2 9
2. Left view print of a tree
3. Reverse the linked list

1
3 4
6 7

Pepper Money
1. Valid Sudoku
2. Merge Linked LIst

Bodmas ques a -( b + c ) + d

Unit test case for division


Given an array of size N that contains values in the range [1 N-1], find All missing
numbers Do each in O(n). with Working code

Abdul Bari videos https://www.youtube.com/watch?


v=xGYsEqe9Vl0&list=PLDN4rrl48XKpZkf03iYFl-O29szjTrs_O&index=5&t=440s
=======================================================================
=======

Extra Link for Extra Questions


https://docs.google.com/document/u/0/d/1snTO-
HP3Z86ZIHDPSSFGP9DzBQ72BDEZH2i6idWhgjM/mobilebasic

You might also like