Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Android Development Quiz

Total questions: 94

Worksheet time: 1hrs 5mins

Name
Class
Date
1.

What is the Gradle build system used for in Android development?

4 lines
2.

What is the difference between a layout and a view?

4 lines
3.

For long-running background tasks that don't require a user interface, you should use:

4 lines
4.

For defining the visual structure of your app's screens, you use:

4 lines
5.

To provide visual consistency across your app, you should define styles and themes in:

4 lines
6.

Which file extension typically indicates an Android application package?

4 lines
7.

True or False: Using an unlocked bootloader allows more customization and freedom

4 lines
8.

For data persistence, Android offers:

a)

Only SharedPreferences

b)

SharedPreferences, databases, and files

c)

Only databases

d)

Only files

9.

What is the purpose of a broadcast receiver?

a)

Display UI elements

b)

Perform tasks in the background

10.

To handle user interaction with a button, you would use a(n):

a)

Layout manager

b)

OnClickListener

c)

Adapter

d)

Context menu

11.

To display text on the screen, you would use a(n):

a)

Button

b)

TextView

c)

ImageView

d)

EditText

12.

Which component handles background tasks without a UI?

a)

Activity

b)

Service

c)

Broadcast receiver

d)

Fragment

13.

The core building block of an Android application is:

a)

Activity

b)

Layout

c)

Fragment

d)

Service

14.

The Android lifecycle refers to the different states an activity can go through, such as:

a)

Active, Paused, Stopped, Destroyed

b)

Running, Sleeping, Idle, Terminated

c)

Visible, Hidden, Background, Foreground

d)

Created, Started, Resumed, Destroyed

15.

Which layout manager is best for a list of items?

a)

LinearLayout

b)

RelativeLayout

c)

FrameLayout

d)

RecyclerView

16.

For navigation within your app, you can use:

a)

Intents

b)

Fragments

c)

Activities

d)

All of the above

17.

Which is NOT a core principle of the Android design philosophy?

a)

Openness

b)

Flexibility

c)

Performance

d)

Security

18.

Which API level should you target to support as many devices as possible?

a)

The latest Android version

b)

The minimum supported version by your app

c)

Android 5.0 (Lollipop)

d)

Android 10 (Q)

19.

How do you request runtime permissions from the user?

a)

By modifying the manifest file

b)

Through runtime checks and dialogs

c)

Permissions are always granted automatically

d)

By using a third-party library

20.

Debugging tools provided by Android Studio include:

a)

Logcat

b)

Breakpoints

c)

Stetho

d)

All of the above

21.

How do you handle different screen sizes and orientations?

a)

Ignore them and design for one size/orientation

b)

Use layout resource qualifiers

c)

Rely on the device to adjust the layout

d)

Create multiple versions of your app

22.

Which official IDE is recommended for Android development?

a)

Visual Studio Code

b)

IntelliJ IDEA

c)

Android Studio

d)

Eclipse

23.

What is the purpose of a broadcast receiver?

a)

Display UI elements

b)

Perform tasks in the background

c)

Handle user input

d)

Store data

24.

What is the role of the Android Manifest file?

a)

Defines the app's layout

b)

Stores user data

c)

Declares app components and permissions

d)

Handles network communication

25.

What is the role of the Android Resource System?

a)

Manages application permissions.

b)

Stores app resources like strings, layouts, and images.

c)

Handles network communication.

d)

Provides access to hardware sensors.

26.

What is the extension of an Android application package?

a)

.apk

b)

.aar

c)

.jar

d)

.xml

27.

What language is primarily used for developing Android applications?

a)

C++

b)

Python

c)

Java

d)

JavaScript

28.

The core building block of an Android app is a(n):

a)

Service

b)

Content provider

c)

Activity

d)

Broadcast receiver

29.

What is the role of the Android Studio IDE?

a)

A virtual machine for running Android apps.

b)

A marketplace for downloading Android apps.

c)

An integrated development environment for building Android apps.

d)

A tool for customizing the Android user interface.

30.

To download data from the internet, you can use:

a)

Webview

b)

AsyncTask

c)

Broadcast receiver

d)

Service

31.

What is the role of the Android SDK?

a)

Provides the operating system

b)

Compiles and builds your app

c)

Connects to the Google Play Store

d)

Manages app permissions

32.

What are the four main layers of the Android architecture?

a)

UI layer, Application layer, System Libraries, Linux Kernel

b)

Activity layer, Service layer, Broadcast layer, Content Provider layer

c)

Hardware layer, Linux Kernel, Libraries, Android Framework, Applications

d)

View layer, Model layer, Controller layer, Data layer

33.

What is the core building block of an Android application?

a)

Service

b)

Widget

c)

Activity

d)

Intent

34.

What is the Dalvik Virtual Machine (DVM) responsible for?

a)

Compiling Java code

b)

Managing memory allocation

c)

Executing Android bytecode

d)

Handling user interface interactions

35.

What is the difference between an Activity and a Service in Android?

a)

Services are always running, while Activities have a lifecycle.

b)

Activities handle user interactions, while Services run in the background.

c)

Both are the same, just different names.

d)

None of the above.

36.

What is the purpose of an Intent in Android?

a)

Defines the app's theme

b)

Requests an action from another app component

c)

Stores app resources

d)

Manages app permissions

37.

What is the Android Open Source Project (AOSP)?

a)

A closed-source platform for building Android devices.

b)

The freely available source code of the Android operating system.

c)

A community forum for Android developers.

d)

A subscription service for accessing advanced Android features.

38.

What is the purpose of a Content Provider in Android?

a)

Manages app preferences

b)

Shares data between different applications

c)

Handles network communication

d)

Defines the app's permissions

39.

The manifest file in an Android project contains:

a)

The app's layout

b)

Java code

c)

App metadata and components

d)

Resource files

40.

What are the different states in an Activity lifecycle?

a)

Active, Background, Paused, Stopped

b)

Created, Started, Resumed, Paused, Stopped, Destroyed

c)

Running, Sleeping, Idle, Active

d)

Visible, Hidden, Minimized, Maximized

41.

What tool or mechanism is commonly used to sideload apps on Android devices (installing apps outside the official Play Store)?

a)

Google Play Store

b)

ADB (Android Debug Bridge)

c)

App Store

d)

Package Installer

42.

What is the purpose of the Android Debug Bridge (ADB)?

a)

A tool for testing and debugging Android apps.

b)

A library for accessing hardware features.

c)

A framework for building custom user interfaces.

d)

A virtual machine for running Android apps on other platforms.

43.

What is the primary programming language used for developing iOS apps?

a)

Java

b)

Kotlin

c)

Swift

d)

C#

44.

For testing your app, you can use:

a)

Only an emulator

b)

Only a physical device

c)

Both emulator and physical device

d)

Neither emulator nor physical device

45.

Which of the following is a tool used for Android app development?

a)

Xcode

b)

Android Studio

c)

Visual Studio

d)

Swift Playgrounds

46.

Which protocol in Swift is commonly used for delegation and data source methods?

a)

Codable

b)

Sequence

c)

Delegate

d)

Observable

47.

What design pattern is commonly used in iOS app development for defining the structure of an app?

a)

MVC (Model-View-Controller)

b)

MVP (Model-View-Presenter)

c)

MVVM (Model-View-ViewModel)

d)

Singleton

48.

What is the name of the Android library for building material design UIs?

a)

AndroidX

b)

Material Components

c)

Jetpack Compose

d)

Flutter

49.

In Android development, which XML file is used to define app-wide styles and themes?

a)

AndroidManifest.xml

b)

styles.xml

c)

dimens.xml

d)

colors.xml

50.

Which SwiftUI property wrapper is used to manage the state of a view?

a)

@State

b)

@ObservableObject

c)

@EnvironmentObject

d)

@Binding

51.

True or False: Rooting your Android device gives you complete control over the system, but voids your warranty and can potentially brick your device if done incorrectly.

a)

True

b)

False

52.

In iOS development, what is the main tool used for interface design?

a)

Sketch

b)

Adobe XD

c)

Interface Builder

d)

Figma

53.

What Android component is used for performing operations in the background?

a)

Activity

b)

Service

c)

BroadcastReceiver

d)

ContentProvider

54.

Which iOS feature allows apps to update content in the background?

a)

Background App Refresh

b)

Silent Push Notifications

c)

Multitasking

d)

External Accessory Framework

55.

Which security measure should you prioritize when installing and running apps on your Android device?

a)

Only install apps from the Play Store

b)

Keep your device software updated

c)

Use a third-party antivirus app

d)

Grant permissions to apps sparingly

56.

Which property wrapper in SwiftUI is used for reading the current environment values?

a)

@Environment

b)

@State

c)

@Binding

d)

@Published

57.

Which of the following is NOT a feature of the Flutter framework?

a)

Hot Reload

b)

Native Performance

c)

Exclusive to Android Development

d)

Widget-based UI

58.

What is the benefit of using a custom Android ROM (Read-Only Memory)?

a)

It is always more stable and reliable than the stock ROM

b)

It offers enhanced security features that are not available in the stock ROM

c)

It provides access to the latest Android version before it is officially released for your device

d)

All of the above

59.

What is the purpose of the didFinishLaunchingWithOptions method in iOS app development?

a)

Handling app termination

b)

Managing background tasks

c)

Initializing the app

d)

Responding to memory warnings

60.

Which framework provides the UIView class for creating and managing the app's UI in iOS?

a)

UIKit

b)

SwiftUI

c)

Cocoa Touch

d)

Core Graphics

61.

What is the primary role of the Android Runtime (ART) in the Android system?

a)

Manages system processes and resources

b)

Handles user interface elements and interactions

c)

Provides network connectivity and communication

d)

Stores and retrieves data on the device

62.

Which method in iOS is typically used to save data before the app is terminated?

a)

applicationWillTerminate(_:)

b)

applicationDidEnterBackground(_:)

c)

applicationWillResignActive(_:)

d)

applicationDidBecomeActive(_:)

63.

In Android development, which file is used to define the app's navigation graph?

a)

AndroidManifest.xml

b)

nav_graph.xml

c)

activity_main.xml

d)

build.gradle

64.

For Android app development, which file defines the layout for an activity's user interface?

a)

AndroidManifest.xml

b)

MainActivity.java

c)

layout.xml

d)

build.gradle

65.

To handle user interaction and display content, you typically use:

a)

Activities

b)

Services

c)

Broadcast Receivers

d)

Content Providers

66.

In iOS development, which class is used to manage collections of data items?

a)

UIView

b)

UIViewController

c)

UITableView

d)

UICollectionView

67.

Which Android component is designed to perform long-running operations in the background and does not provide a user interface?

a)

Activity

b)

Service

c)

Content Provider

d)

Broadcast Receiver

68.

To create complex, flexible layouts with fine-grained control over widget positioning, you would use a:

a)

LinearLayout

b)

FrameLayout

c)

RelativeLayout

d)

ConstraintLayout

69.

What is the term for the design philosophy that focuses on the efficient use of screen space in mobile apps?

a)

Responsive Design

b)

Material Design

c)

Minimalist Design

d)

Adaptive Design

70.

Which method in the Android activity lifecycle is called when the activity is no longer visible to the user?

a)

onPause()

b)

onStop()

c)

onDestroy()

d)

onRestart()

71.

To communicate between components within an app or with other apps, you can use:

a)

Manifests

b)

Layouts

c)

Intents

d)

Resources

72.

What feature does Android offer for developing apps that can adapt to different device configurations?

a)

Intents

b)

Services

c)

Fragments

d)

Broadcast Receivers

73.

What is the main purpose of the Widget class in Flutter?

a)

Managing app state

b)

Creating reusable UI components

c)

Handling user input

d)

Animating UI elements

74.

What is the key benefit of using Core Data in iOS development?

a)

Data encryption

b)

Local data storage and management

c)

Cloud data synchronization

d)

Real-time database updates

75.

To position widgets relative to each other and the edges of the screen, you would use a:

a)

LinearLayout

b)

FrameLayout

c)

RelativeLayout

d)

ConstraintLayout

76.

To stack widgets vertically on top of each other, you would use a:

a)

LinearLayout

b)

FrameLayout

c)

RelativeLayout

d)

ConstraintLayout

77.

Which Android lifecycle method is called when an activity is first created?

a)

onStart()

b)

onResume()

c)

onCreate()

d)

onRestart()

78.

Which class in Android is used to play sound or video?

a)

AudioManager

b)

MediaPlayer

c)

SoundPool

d)

VideoView

79.

What SwiftUI view is used for presenting a stack of views where the user can navigate forward and backward?

a)

HStack

b)

VStack

c)

NavigationView

d)

TabView

80.

The fundamental layout widgets in Android are:

a)

Buttons, TextViews, ImageViews, EditTexts

b)

LinearLayouts, FrameLayouts, RelativeLayouts, ConstraintLayouts

c)

Activities, Services, Broadcast Receivers, Content Providers

d)

Manifests, Styles, Themes, Resources

81.

In Flutter, what widget is used to create a horizontal row of children?

a)

Column

b)

Stack

c)

Row

d)

Container

82.

What SwiftUI modifier is used to align content in the center of its container?

a)

.center

b)

.alignCenter

c)

.alignment(.center)

d)

.frame(alignment: .center)

83.

To arrange widgets horizontally in a single row, you would use a:

a)

LinearLayout

b)

FrameLayout

c)

RelativeLayout

d)

ConstraintLayout

84.

In iOS development, what framework is used for drawing shapes, images, and other graphical content?

a)

UIKit

b)

Core Graphics

c)

Metal

d)

SpriteKit

85.

What mechanism does Android use to allow apps to communicate with each other?

a)

Services

b)

Intents

c)

Broadcast Receivers

d)

Content Providers

86.

To dynamically inflate layouts at runtime, you can use the:

a)

setContentView() method

b)

findViewById() method

c)

LayoutInflater class

d)

View class

87.

To handle user interaction with UI elements, you typically use:

a)

Layouts

b)

Styles

c)

Listeners, such as onClickListeners

d)

Intents

88.

Which of the following methods is NOT typically used to run Android on a non-Android device?

a)

Emulator

b)

Virtual machine

c)

Dual booting

d)

Native installation

89.

True or False: Using an unlocked bootloader allows more customization and freedom on your Android device but may compromise security.

a)

True

b)

False

90.

To test your app's UI on different screen sizes and devices, you can use:

a)

AVD manager

b)

Emulator

c)

Physical devices

d)

All of the above

91.

When installing an app from the Play Store, which permission(s) might you be asked to grant for the app to function properly?

a)

Access to your network connections

b)

None, all apps have full access by default.

c)

Control over your device's settings.

d)

All of the above.

92.

To make your app responsive and adapt to different screen sizes and devices, you should follow:

a)

Material Design guidelines

b)

Adaptive UI principles

c)

ConstraintLayout best practices

d)

Theme customization techniques

93.

When troubleshooting an app that isn't working properly on your Android device, which of the following is NOT likely to be a helpful action?

a)

Force stop the app and clear its cache

b)

Uninstall and reinstall the app

c)

Update the app to the latest version

d)

Reset your device to factory settings

94.

What is the term for the process of converting Swift or Objective-C code into machine code for iOS apps?

a)

Interpreting

b)

Compiling

c)

Linking

d)

Packaging