MCQs / Computer Science / Android OS: Architecture, Framework and Application Development

Android OS: Architecture, Framework and Application Development MCQs — Computer Science (page 2)

53 multiple-choice questions on Android OS: Architecture, Framework and Application Development from Computer Science, each with the correct answer and, where available, a teacher's explanation. Read through them to revise the chapter, then practise the same questions one by one to test yourself.

26. Returning to a stopped activity calls:

  1. onDestroy(), onCreate()
  2. onCreate() only
  3. onRestart(), onStart(), onResume()
  4. onPause(), onStop()

Answer: C) onRestart(), onStart(), onResume()

Explanation: A stopped activity restarts with onRestart → onStart → onResume.

Discuss this question

27. Which value must increase with every update published to Google Play?

  1. applicationId
  2. versionCode
  3. versionName
  4. minSdk

Answer: B) versionCode

Explanation: versionCode is an integer that must be higher for each release.

Discuss this question

28. Google acquired Android Inc. in:

  1. 2003
  2. 2008
  3. 2010
  4. 2005

Answer: D) 2005

Explanation: Android Inc. was founded in 2003 and bought by Google in 2005.

Discuss this question

29. The Android NDK allows developers to:

  1. Design layouts visually
  2. Write parts of an app in C/C++
  3. Publish apps
  4. Test UI automatically

Answer: B) Write parts of an app in C/C++

Explanation: The Native Development Kit supports native C/C++ code.

Discuss this question

30. Device drivers for display, camera, Wi-Fi and audio are part of the:

  1. Linux kernel
  2. View System
  3. Resource Manager
  4. Application layer

Answer: A) Linux kernel

Explanation: The kernel contains hardware drivers.

Discuss this question

31. Runtime permissions (asking the user while the app runs) were introduced in Android:

  1. 5.0 Lollipop
  2. 6.0 Marshmallow
  3. 9 Pie
  4. 4.4 KitKat

Answer: B) 6.0 Marshmallow

Explanation: Android 6.0 (API 23) introduced runtime permissions.

Discuss this question

32. MVVM stands for:

  1. Main View View Manager
  2. Multi View Variable Mode
  3. Model–View–ViewModel
  4. Mobile Virtual Version Model

Answer: C) Model–View–ViewModel

Explanation: MVVM is the recommended architecture pattern with ViewModel.

Discuss this question

33. Binder in the Linux kernel is used for:

  1. Drawing graphics
  2. Inter-process communication between apps and system services
  3. Compiling Kotlin
  4. Storing images

Answer: B) Inter-process communication between apps and system services

Explanation: Binder is Android's fast IPC mechanism.

Discuss this question

34. The bottom layer of the Android architecture is the:

  1. HAL
  2. Application framework
  3. ART
  4. Linux kernel

Answer: D) Linux kernel

Explanation: The Linux kernel is the foundation of the Android stack.

Discuss this question

35. When an activity becomes interactive (in the foreground), which callback has just run?

  1. onResume()
  2. onStart()
  3. onPause()
  4. onStop()

Answer: A) onResume()

Explanation: onResume() is called when the activity starts interacting with the user.

Discuss this question

36. The Low Memory Killer is a kernel feature that:

  1. Deletes old photos
  2. Removes unused apps from the store
  3. Compresses APKs
  4. Ends background processes when RAM runs low

Answer: D) Ends background processes when RAM runs low

Explanation: It frees memory by killing lower-priority processes.

Discuss this question

37. Where must every activity of an app be declared?

  1. build.gradle
  2. MainActivity
  3. strings.xml
  4. AndroidManifest.xml

Answer: D) AndroidManifest.xml

Explanation: Components must be declared in the manifest or the system cannot start them.

Discuss this question

38. Android 16 corresponds to API level:

  1. 40
  2. 36
  3. 34
  4. 30

Answer: B) 36

Explanation: Android 16 (Baklava, 2025) is API 36.

Discuss this question

39. Notification channels became mandatory in Android:

  1. 13
  2. 8.0 Oreo
  3. 6.0
  4. 11

Answer: B) 8.0 Oreo

Explanation: From Android 8.0 (API 26) every notification must belong to a channel.

Discuss this question

40. ART improves performance mainly by using:

  1. Larger APKs
  2. Ahead-of-time compilation at install time (plus JIT/profile-guided compilation)
  3. Interpreting XML
  4. More RAM per app only

Answer: B) Ahead-of-time compilation at install time (plus JIT/profile-guided compilation)

Explanation: ART compiles DEX ahead of time and uses profiles to optimise hot code.

Discuss this question

41. The layer that provides standard interfaces so the framework can use vendor hardware is the:

  1. Application framework
  2. Native libraries
  3. Hardware Abstraction Layer (HAL)
  4. Content provider

Answer: C) Hardware Abstraction Layer (HAL)

Explanation: The HAL defines standard interfaces that vendors implement for their hardware.

Discuss this question

42. Which callback is called first when an activity is created?

  1. onCreate()
  2. onStart()
  3. onResume()
  4. onRestart()

Answer: A) onCreate()

Explanation: onCreate() is the first lifecycle method.

Discuss this question

43. Which native library provides a lightweight relational database?

  1. SQLite
  2. OpenGL ES
  3. WebKit
  4. FreeType

Answer: A) SQLite

Explanation: SQLite is the embedded database library in Android.

Discuss this question

44. AOSP stands for:

  1. Application Oriented Software Package
  2. Android Open Source Project
  3. Android Operating System Platform
  4. Advanced OS Program

Answer: B) Android Open Source Project

Explanation: AOSP is the open-source code base of Android.

Discuss this question

45. Sharing contacts data with other apps is done through a:

  1. Notification
  2. Service
  3. Content Provider
  4. Fragment

Answer: C) Content Provider

Explanation: Content providers expose structured data to other apps through URIs.

Discuss this question

46. Rotating the phone by default:

  1. Only calls onPause()
  2. Calls onRestart()
  3. Destroys and recreates the activity
  4. Closes the app

Answer: C) Destroys and recreates the activity

Explanation: A configuration change destroys and recreates the activity.

Discuss this question

47. The R class is generated by:

  1. Google Play
  2. AAPT2 while compiling resources
  3. The emulator
  4. Logcat

Answer: B) AAPT2 while compiling resources

Explanation: AAPT2 compiles resources and generates resource IDs in R.

Discuss this question

48. Which framework part provides UI elements like buttons, lists and text boxes?

  1. Notification Manager
  2. HAL
  3. Location Manager
  4. View System

Answer: D) View System

Explanation: The View System supplies all UI widgets and layouts.

Discuss this question

49. Each Android app runs in its own process as a separate Linux user. This is called:

  1. Multithreading
  2. Application sandboxing
  3. Fragmentation
  4. Rooting

Answer: B) Application sandboxing

Explanation: Sandboxing isolates apps from each other for security.

Discuss this question

50. Android apps' bytecode is stored in which format?

  1. .exe
  2. .jar
  3. .dex (Dalvik Executable)
  4. .class

Answer: C) .dex (Dalvik Executable)

Explanation: Compiled classes are converted into DEX files for ART.

Discuss this question

Previous Page 2 of 3 Next

Practise Android OS: Architecture, Framework and Application Development MCQs

More Computer Science chapters