Android Development Flashcards
25 cards from real Android Development practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.
Read the first 20 Android Development flashcards as text
What is the most recent Android smartphone version?
Answer: 5.0 (Lollipop)
Based on the provided options, Android 5.0 (Lollipop) was the most recent Android smartphone version among them at a certain point in time. Released in 2014, it introduced significant changes like Material Design, an updated notification system, and Project Volta for improved battery life. While newer versions exist today, Lollipop was the latest among the choices given.
Which of these aren't included in Android's native libraries?
Answer: Dalvik
Android's native libraries include essential components like OpenGL for graphics rendering, WebKit for web content display, and SQLite for local database management. Dalvik, however, is the virtual machine that executes Android applications, not a native library itself. It's a core part of the Android runtime environment, responsible for running the compiled app code.
What is the activity's parent class?
Answer: ContextTheme Wrapper
The `Activity` class in Android inherits from `ContextThemeWrapper`, which itself extends `Context`. This inheritance hierarchy provides the `Activity` with access to application resources, theming capabilities, and the ability to interact with the Android system. `ContextThemeWrapper` specifically adds the functionality to apply a theme to the context, which is crucial for an Activity's UI.
What is Java bytecode compiled into while developing an Android app?
Answer: Dalvik byte code
During Android app development, Java source code is first compiled into standard Java bytecode (.class files). This Java bytecode is then further processed by the Dex Compiler (historically `dx`, now `d8`) into Dalvik bytecode (.dex files). This Dalvik bytecode is optimized for the Android Runtime (ART) or the older Dalvik virtual machine, which executes the app on the device.
Which of the following kernels is used by Android?
Answer: Linux kernel
Android is built upon the robust foundation of the Linux kernel. The Linux kernel provides essential low-level system services such as memory management, process management, networking, and hardware device drivers. This choice leverages Linux's stability, security, and open-source nature, forming the core of the Android operating system.
Which operating system serves as the Android stack's base?
Answer: Linux
The Android software stack is architecturally layered, with the Linux kernel serving as its foundational base. This kernel provides crucial low-level services like process management, memory management, and device drivers, ensuring the operating system's stability and security. Building upon Linux allows Android to efficiently manage hardware resources and provide a robust environment for applications.
Which of the following components an Intent doesn't activate?
Answer: Content Provider
Intents are messaging objects used to request an action from other application components, such as starting an Activity, a Service, or delivering a Broadcast. Content Providers, however, are activated and accessed differently; they are queried, inserted, updated, or deleted using a `ContentResolver` object, which interacts with the provider via URIs.
What is the name of the Java bytecode to Dalvik bytecode converter program?
Answer: Dex Compiler
The program responsible for converting Java bytecode (.class files) into Dalvik bytecode (.dex files) is known as the Dex Compiler. Historically, this was the `dx` tool, but it has been largely replaced by `d8` in modern Android development. This conversion is a critical step, as Android's runtime (Dalvik or ART) executes the optimized Dalvik bytecode.
After being installed on a device, each Android program is stored in a _______ .
Answer: Binder
After installation, each Android application runs in its own process, and inter-process communication (IPC) between these processes is facilitated by the Binder mechanism. The Binder is a high-performance IPC system that allows components from different applications to communicate securely and efficiently. It enables services to be called across process boundaries.
Which of the three basic components of an.apk file is not one of these?
Answer: Webkit
An `.apk` (Android Package Kit) file is the package format for Android applications, containing all necessary components for installation. It typically includes the Dalvik Executable (.dex files), compiled resources (like layouts and strings), and native libraries (C/C++ code). WebKit is a browser engine that might be *used by* an app, but it's not a fundamental structural component *of* the `.apk` file itself.
Which of the following languages is the basis for Android?
Answer: JAVA
Android applications are primarily developed using the Java programming language. The Android SDK provides a comprehensive set of Java APIs for building mobile applications. While Kotlin has gained prominence as a first-class language for Android, Java remains a foundational language for the platform.
You'll need an AVD to make an emulator. What exactly does it mean?
Answer: Android Virtual Device
AVD stands for Android Virtual Device. It is a configuration that defines the characteristics of an Android phone, tablet, or other device that you want to simulate in the Android Emulator. An AVD specifies the Android version, hardware features, and screen size for the virtual device, allowing developers to test their apps on various configurations.
Which of the following businesses purchased Android?
Answer: Google
Android Inc. was originally founded in 2003 by Andy Rubin, Rich Miner, Nick Sears, and Chris White. Google acquired Android Inc. in 2005, recognizing the potential of its mobile operating system. This acquisition was a pivotal moment that led to Android's development and eventual release as a dominant mobile platform.
What does not have any UI components and runs in the background?
Answer: Services
A Service is an application component that can perform long-running operations in the background without providing a user interface. Services can continue to run even if the user switches to another application, making them suitable for tasks like playing music, performing network operations, or syncing data in the background.
The method can be used to stop an activity.
Answer: finish()
The `finish()` method is used to explicitly close the current Activity. When called, the system invokes the `onDestroy()` method of the Activity, and it is removed from the activity stack. This is the standard way to programmatically terminate an activity and remove it from the user's view.
The Emulator simulates the operation of a genuine phone. Which feature of the game can't be simulated with an emulator?
Answer: Sensors
While Android emulators are highly capable of simulating many aspects of a real device, including applications, telephony, and network connectivity, they typically cannot fully emulate hardware sensors. Physical sensors like accelerometers, gyroscopes, magnetometers, or light sensors require direct hardware interaction that software emulation cannot perfectly replicate.
Is Android ROM available?
Answer: A) no
Android ROM, in the context of custom firmware, refers to a modified version of the Android operating system. However, Android itself is not a ROM (Read-Only Memory) in the traditional hardware sense. It is a software operating system that is installed onto a device's flash memory, which is rewritable, allowing for updates and modifications.
Android doesn't support which of the following file formats?
Answer: AVI
Android supports a wide array of media formats for audio and video playback, including common ones like MP4, MPEG, and MIDI. However, the AVI (Audio Video Interleave) format is generally not natively supported by the Android media framework. Developers often need to use third-party libraries or convert AVI files to compatible formats for playback on Android devices.
How many layouts does Android have?
Answer: 6
Android provides several fundamental layout types to arrange UI elements on a screen, offering flexibility for various designs. The primary layout types include LinearLayout, RelativeLayout, FrameLayout, ConstraintLayout, TableLayout, and GridLayout. These six layouts form the basis for constructing user interfaces in Android applications.
The Content Provider is turned on by .
Answer: Using Content Resolver
Content Providers are activated and accessed through a `ContentResolver` object. The `ContentResolver` acts as an intermediary, sending requests (query, insert, update, delete) to the appropriate `ContentProvider` based on the URI provided. This mechanism enables secure and standardized data sharing between applications.