Top 50 Android Interview Questions with Answers

Android Interview Questions with Answers

1. What is an Android?

a. A smartphone
b. A mobile operating system
c. A type of app
d. All of the above

Answer: b

2. What is an APK file?

a. A file format for Windows operating system
b. A file format for iOS operating system
c. A file format for Android operating system
d. None of the above

Answer: c

3. What is an Intent in Android?

a. A class
b. A message passing mechanism
c. An interface
d. A layout

Answer: b

4. Which of the following is a base class for Android layouts?

a. Object
b. View
c. ViewGroup
d. All of the above

Answer: c

5. What is the name of the Android debugger?

a. Android Debug Bridge (ADB)
b. Android Debug Framework (ADF)
c. Android Debug Module (ADM)
d. None of the above

Answer: a

6. Which of the following is not a permission in Android?

a. INTERNET
b. CAMERA
c. LOCATION
d. MUSIC

Answer: d

7. Which of the following is a thread-safe data structure in Android?

a. HashTable
b. ArrayList
c. LinkedList
d. None of the above

Answer: a

8. Which of the following is a type of broadcast in Android?

a. Ordered Broadcast
b. Normal Broadcast
c. Instant Broadcast
d. All of the above

Answer: a

9. What is the name of the Android virtual machine?

a. JVM
b. Dalvik VM
c. ART VM
d. None of the above

Answer: b

10. What is the difference between startActivity() and startActivityForResult()?

a. startActivity() is used to start a new activity and startActivityForResult() is used to start an activity for getting a result from it
b. startActivity() is used for getting a result from an activity and startActivityForResult() is used to start a new activity
c. Both startActivity() and startActivityForResult() are used for starting a new activity
d. None of the above

Answer: a

11. What is an ANR in Android?

a. Application Not Responding
b. Android Notification Response
c. Authorized Network Request
d. Advanced Notification Routing

Answer: a

12. Which of the following is a class for storing user preferences in Android?

a. Intent
b. Bundle
c. ContentProvider
d. SharedPreferences

Answer: d

13. What is the use of “adb logcat” command in Android?

a. It shows the log messages of the device
b. It starts the Android emulator
c. It installs an app on the device
d. None of the above

Answer: a

14. Which of the following component is responsible for managing the application’s preferences?

a. Activity
b. Service
c. ContentProvider
d. PreferenceActivity

Answer: d

15. Which of the following is a storage class for key-value pairs in Android?

a. Bundle
b. Intent
c. ContentValues
d. None of the above

Answer: c

16. What is the use of “adb shell” command in Android?

a. It starts the Android emulator
b. It installs an app on the device
c. It opens a shell on the device
d. None of the above

Answer: c

17. Which of the following is not an Android component?

a. Activity
b. Service
c. ContentProvider
d. Fragment

Answer: d

18. What is the difference between “match_parent” and “wrap_content” in Android layouts?

a. “match_parent” fills the parent element and “wrap_content” wraps the content
b. “match_parent” wraps the content and “wrap_content” fills the parent element
c. Both “match_parent” and “wrap_content” fill the parent element
d. None of the above

Answer: a

19. What is the name of the Android package manager?

a. PackageManager
b. PackageInstaller
c. PackageManagerService
d. None of the above

Answer: a

20. What is the use of “adb push” command in Android?

a. It pulls a file from the device to the computer
b. It pushes a file from the computer to the device
c. It installs an app on the device
d. None of the above

Answer: b

21. Which of the following is used for storing and retrieving data in Android applications?

a. SQLite database
b. MySQL database
c. Oracle database
d. None of the above

Answer: a

22. What is the use of “adb pull” command in Android?

a. It pulls a file from the device to the computer
b. It pushes a file from the computer to the device
c. It installs an app on the device
d. None of the above

Answer: a

23. Which of the following is a class for creating a database and tables in Android?

a. SQLiteOpenHelper
b. SQLiteDatabase
c. SQLiteManager
d. None of the above

Answer: a

24. What is the name of the Android layout that includes other layouts?

a. LinearLayout
b. RelativeLayout
c. FrameLayout
d. None of the above

Answer: b

25. Which of the following is a class for managing the media playback in Android?

a. AudioManager
b. MediaPlayer
c. MediaRecorder
d. None of the above

Answer: b

26. Which of the following is a class for creating and managing notifications in Android?

a. Notification
b. NotificationManager
c. NotificationChannel
d. All of the above

Answer: d

27. What is the use of “adb install” command in Android?

a. It pulls a file from the device to the computer
b. It pushes a file from the computer to the device
c. It installs an app on the device
d. None of the above

Answer: c

28. Which of the following is a class for creating animations in Android?

a. Animation
b. Animator
c. AnimationDrawable
d. All of the above

Answer: d

29. Which of the following is a class for creating and managing threads in Android?

a. Thread
b. HandlerThread
c. AsyncTask
d. All of the above

Answer: d

30. What is the name of the Android UI toolkit?

a. Android UI Toolkit (AUIT)
b. Android User Interface Framework (AUIF)
c. Android Widget Toolkit (AWT)
d. None of the above

Answer: d

31. Which of the following is a class for creating and managing alarms in Android?

a. Alarm
b. AlarmManager
c. Reminder
d. None of the above

Answer: b

32. Which of the following is a class for creating and managing contacts in Android?

a. Contact
b. ContactManager
c. ContentProvider
d. None of the above

Answer: c

33. Which of the following is a class for creating and managing SMS messages in Android?

a. SMS
b. SMSManager
c. SMSProvider
d. None of the above

Answer: b

34. What is the use of “adb logcat -c” command in Android?

a. It shows the log messages of the device
b. It starts the Android emulator
c. It clears the log messages
d. None of the above

Answer: c

35. Which of the following is a class for creating and managing dialog boxes in Android?

a. Dialog
b. AlertDialog
c. ProgressDialog
d. All of the above

Answer: d

36. What is the name of the Android graphical user interface builder?

a. Android Studio
b. Eclipse
c. IntelliJ IDEA
d. None of the above

Answer: a

37. What is the use of “adb logcat -f ” command in Android?

a. It shows the log messages of the device
b. It starts the Android emulator
c. It saves the log messages to a file
d. None of the above

Answer: c

38. Which of the following is a class for creating and managing the wifi in Android?

a. Wifi
b. WifiManager
c. ConfigurationManager
d. None of the above

Answer: b

39. What is the name of the Android graphics rendering engine?

a. Canvas
b. OpenGL ES
c. Skia
d. None of the above

Answer: c

40. Which of the following is a class for creating and managing sensors in Android?

a. Sensor
b. SensorEvent
c. SensorManager
d. All of the above

Answer: d

41. What is the use of “adb reboot” command in Android?

a. It shows the log messages of the device
b. It reboots the Android device
c. It installs an app on the device
d. None of the above

Answer: b

42. Which of the following is a class for creating and managing a webview in Android?

a. WebView
b. Browser
c. WebKit
d. None of the above

Answer: a

43. What is the name of the Android application package file?

a. APK
b. JAR
c. WAR
d. None of the above

Answer: a

44. Which of the following is a class for creating and managing the layout of a ListView in Android?

a. ArrayAdapter
b. SimpleAdapter
c. CursorAdapter
d. All of the above

Answer: d

45. Which of the following is a class for creating and managing the layout of a RecyclerView in Android?

a. RecyclerViewAdapter
b. ItemAdapter
c. RecyclerViewManager
d. None of the above

Answer: a

46. What is the use of “adb devices” command in Android?

a. It shows the list of devices attached to the computer
b. It lists the applications installed on the device
c. It installs an app on the device
d. None of the above

Answer: a

47. Which of the following is a class for creating and managing animations with multiple frames in Android?

a. FrameAnimation
b. AnimationSet
c. StateListAnimator
d. None of the above

Answer: a

48. What is the use of “adb shell pm uninstall” command in Android?

a. It pulls a file from the device to the computer
b. It pushes a file from the computer to the device
c. It uninstalls an app from the device
d. None of the above

Answer: c

49. Which of the following is a class for creating and managing tabbed activities in Android?

a. TabLayout
b. TabActivity
c. FragmentTabHost
d. All of the above

Answer: d

50. What is the use of “adb forward” command in Android?

a. It forwards a local TCP port to the device
b. It forwards a remote TCP port to the device
c. It installs an app on the device
d. None of the above

Answer: a

Ashwani Kumar
Latest posts by Ashwani Kumar (see all)
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x