Build-A-Bot: Android Java Quiz for Curious Kids
Test your Android Java smarts with fun questions about apps, code, and gadgets—perfect for curious 12+ minds ready to explore mobile magic!
- Which class is the typical entry point for an Android app screen?
- BroadcastReceiver
- Service
- Activity
- Fragment
- Which file defines an Android app's package name and version?
- AndroidManifest
- build.gradle
- strings.xml
- MainActivity.java
- Which layout type arranges children relative to each other or parent edges (legacy but still used)?
- FrameLayout
- LinearLayout
- RelativeLayout
- ConstraintLayout
- Which Android component runs background tasks without a UI and can be stopped by the system?
- Activity
- Service
- ContentProvider
- BroadcastReceiver
- Which tool compiles Java/Kotlin and resources into an installable Android package?
- JUnit
- ProGuard
- ADB
- Gradle
- Which class helps store simple key-value app preferences?
- SharedPreferences
- SQLiteDatabase
- FileOutput
- ContentResolver
- Which permission is required to access the internet from an Android app?
- ACCESS_NETWORK
- INTERNET
- NETWORK_STATE
- ACCESS_WIFI
Answers and explanations
- Question: Which class is the typical entry point for an Android app screen?
Answer: Activity
Explanation: An Activity represents a single focused screen with a UI; fragments are reusable parts, not full entry points. It's where lifecycle methods like onCreate run. - Question: Which file defines an Android app's package name and version?
Answer: AndroidManifest
Explanation: AndroidManifest.xml declares the package name and versionCode/name; build.gradle sets build settings but not the manifest-declared package identifier. - Question: Which layout type arranges children relative to each other or parent edges (legacy but still used)?
Answer: RelativeLayout
Explanation: RelativeLayout positions views relative to siblings or parent edges; ConstraintLayout is newer and more flexible, while LinearLayout stacks views linearly. - Question: Which Android component runs background tasks without a UI and can be stopped by the system?
Answer: Service
Explanation: Services run background work; they differ from WorkManager which schedules deferrable tasks, and from Threads which are not Android components. - Question: Which tool compiles Java/Kotlin and resources into an installable Android package?
Answer: Gradle
Explanation: Gradle builds the app, invoking compilers and packagers to produce an APK/AAB; Android Studio uses Gradle under the hood, not just the Java compiler alone. - Question: Which class helps store simple key-value app preferences?
Answer: SharedPreferences
Explanation: SharedPreferences is for lightweight key-value storage like settings; databases are for complex structured data and files for raw storage. - Question: Which permission is required to access the internet from an Android app?
Answer: INTERNET
Explanation: The android.permission.INTERNET must be declared in the manifest to use network sockets; location or storage permissions do not grant network access.