WorksheetsAndroid Unit 1 2 and 3
Total questions: 150
Worksheet time: 1hrs 15mins
Android is based on which operating system?
Windows
Linux
Unix
MacOS
Android was developed by:
Apple
Microsoft
IBM
Android is an example of:
Closed source OS
Proprietary OS
Open source OS
Desktop OS
Android was initially developed by:
Sun Microsystems
Android Inc.
Oracle
Samsung
First commercial Android version was released in:
2006
2007
2008
2009
Android is mainly designed for:
Servers
Desktop computers
Mobile devices
Supercomputers
Android applications can run on:
Only phones
Only tablets
All Android-powered devices
Only smart TVs
Android kernel is based on:
Unix kernel
Windows kernel
Linux kernel
DOS kernel
Android source code is licensed under:
MIT License
Apache License 2.0
BSD License
Mozilla License
Android OS is mainly written in:
Python
C and C++
Java and Kotlin
PHP
Which database is used in Android for local storage?
MySQL
Oracle
SQLite
MongoDB
Android supports which messaging services?
Email only
SMS only
MMS only
SMS and MMS
Android supports which type of multitasking?
Single task
Dual task
Multitasking
No task
Which sensor is NOT supported by Android?
Accelerometer
GPS
Camera
None of the above
Android web browser is based on
Firefox
Safari
WebKit / Chrome
Edge
Android supports which connectivity option?
GSM
WiFi
Bluetooth
All of the above
Multi-touch feature means
One finger touch
Two or more finger touch
No touch
Stylus only
Android supports which media format?
MP3
JPEG
MP4
All of the above
GCM stands for
Google Cloud Messaging
Global Communication Model
General Cloud Method
Google Content Manager
Wi-Fi Direct is used for
Internet browsing
Peer-to-peer connection
Bluetooth replacement
Email service
Which is the first Android version?
Cupcake
Donut
Android 1.0
Eclair
Cupcake belongs to which Android version?
1.1
1.5
1.6
2.0
Which Android version introduced Material Design?
KitKat
Jelly Bean
Lollipop
Oreo
Android 10 is also known as:
Pie
Q
R
Oreo
Android Pie version number is:
8.0
9.0
10.0
11.0
API level is used to:
Identify Android version
Store data
Create UI
Design layouts
Android 11 API level is:
29
30
31
28
First public mobile phone call was made in:
1965
1973
1980
1990
DynaTAC 8000X was developed by:
Nokia
Apple
Motorola
Samsung
Symbian OS was mainly driven by:
Apple
Nokia
Microsoft
Android architecture has how many layers?
3
4
5
6
Lowest layer of Android architecture is:
Applications
Libraries
Linux Kernel
Runtime
Which virtual machine was used earlier in Android?
JVM
ART
Dalvik
HotSpot
Current Android runtime is:
Dalvik
JVM
ART
Android SDK stands for:
Software Development Kit
System Development Kit
Source Development Kit
Standard Development Kit
Android SDK is used for:
Testing apps only
Developing Android apps
Running servers
Database management
Android emulator is used to:
Publish apps
Design UI
Test apps
Store data
AVD stands for:
Android Virtual Device
Application Version Device
Advanced Virtual Device
Android Verified Device
SDK Manager is used to:
Run apps
Download APIs
Write code
Debug apps
Android Studio is:
Compiler
IDE
Emulator
OS
AndroidManifest.xml contains:
UI design only
Database code
App information
Images
Activity represents:
Background task
App database
A single screen
Service
Intent is used to:
Store data
Move between activities
Design layout
Create database
Service runs in:
Foreground only
Background
UI thread only
Database layer
Content Provider is used for:
UI design
Data sharing
Event handling
App installation
Fragment is used to:
Create database
Reuse UI components
Replace activity
Compile code
XML is mainly used for:
Business logic
UI structure
Database queries
Network calls
View is:
Database
UI component
Background service
API
Gradle is used for:
UI design
App building
App testing only
App installation
APK file is:
Source code
Compiled Android app
Database file
Layout file
Context in Android is:
A database
An interface to global application information
A UI layout
A service
Which method returns Application Context?
getContext()
this
getApplicationContext()
getBaseContext()
Application Context lifecycle is tied to:
Activity
Service
Application
Fragment
Using Activity Context incorrectly may cause:
Faster execution
Memory leak
Compilation error
UI crash
Which context should be used for singleton objects?
Activity Context
Service Context
Application Context
Fragment Context
Activity Context lifecycle is tied to:
Application
Activity
System
Thread
Context provides access to:
Only UI
Resources and system services
Database only
Network only
Which keyword is used to pass Activity Context?
super
context
this
self
An Activity represents:
Background task
Database
Single screen UI
Service
First lifecycle method called in Activity:
onStart()
onResume()
onCreate()
onRestart()
Activity & Lifecycle (9–18) — Activity becomes visible in which state?
Created
Started
Destroyed
Activity enters foreground in:
onStart()
onCreate()
onResume()
onStop()
When another activity comes in front, current activity goes to:
Stopped
Destroyed
Paused
Created
onRestart() is called when activity moves from:
Paused to Resumed
Stopped to Started
Created to Started
Resumed to Paused
Which method is used to clean resources before activity is destroyed?
onStop()
onPause()
onDestroy()
onRestart()
Activity class belongs to which package?
android.view
android.app
android.content
android.widget
Which lifecycle method saves UI state?
onCreate()
onPause()
onStop()
onResume()
Activity cannot directly jump from:
Created to Resumed
Paused to Resumed
Stopped to Started
Service runs in:
UI thread
Foreground only
Background
Database
Service has UI?
Yes
No
Sometimes
Depends on version
Which method starts a service?
startActivity()
startService()
bindService()
openService()
Bound service is created using:
startService()
stopService()
bindService()
closeService()
Which callback is mandatory in Service?
onCreate()
onBind()
onDestroy()
onStart()
onStartCommand() is called when:
Service is destroyed
Service is started
Service is bound
App is closed
IBinder object is returned in:
onCreate()
onDestroy()
onBind()
onStartCommand()
Service lifecycle is independent of:
System
Activity
OS
User
Intent is used to:
Store data
Connect database
Communicate between components
Design UI
Intent dictionary meaning is:
Message
Data
Purpose
Signal
Which intent starts a specific activity?
Implicit
Explicit
Broadcast
Sticky
Implicit intent specifies:
Component name
Fully qualified class
Action only
Package name
startActivity() uses which object?
Context
Bundle
Intent
Intent.ACTION_VIEW is used to:
Send SMS
Open web page
Start service
Close app
Intent data is passed using:
putData()
setData()
putExtra()
addValue()
LabeledIntent is subclass of:
Context
Activity
Intent
Service
AndroidManifest.xml is located in:
res folder
src folder
root directory
assets
Manifest root tag is:
<application>
<activity>
<manifest>
<intent-filter>
Which tag registers an activity?
<service>
<provider>
<activity>
<receiver>
Main launcher activity uses which intent filter?
VIEW
DEFAULT
MAIN + LAUNCHER
BROWSABLE
Which tag declares permissions?
<permission>
<uses-permission>
<grant-permission>
<allow-permission>
Only one ___ tag is allowed in manifest:
activity
service
application
intent-filter
Permissions
API versions
Screen size
Hardware
Which tag registers broadcast receiver?
<service>
<provider>
<receiver>
<activity>
Resources are stored inside:
src
assets
res
lib
Layout XML files are stored in:
res/menu
res/values
res/layout
String resources are defined in:
colors.xml
strings.xml
dimens.xml
styles.xml
R class is generated:
Manually
By user
Automatically
By database
Dangerous permissions are granted at:
Compile time
Install time
Runtime
Build time
Which permission type needs user approval?
Normal
Runtime
Signature
System
BroadcastReceiver method is:
onCreate()
onReceive()
onStart()
onBind()
sendBroadcast() is used for:
Activity
Service
Broadcast Intent
Database
Android UI is mainly designed using:
Java files only
XML layout files
Manifest file
XML layout files are stored in:
src
assets
res/layout
res/values
Which file defines UI strings?
colors.xml
styles.xml
dimens.xml
strings.xml
Which unit is recommended for text size?
px
dp
sp
pt
dp stands for:
Device pixel
Density pixel
Density-independent pixel
Display pixel
Which attribute sets component width?
android:height
android:layout_width
android:layout_height
android:size
match_parent means:
Wrap content
Fixed size
Fill available space
Ignore parent
wrap_content means:
Fill parent
Use minimum space
Use screen size
Which folder stores images?
res/layout
res/menu
res/drawable
res/raw
Which UI element displays text only?
EditText
TextView
Button
ImageView
Which layout arranges components vertically or horizontally?
RelativeLayout
LinearLayout
FrameLayout
GridLayout
Orientation attribute is used in:
RelativeLayout
LinearLayout
FrameLayout
ConstraintLayout
RelativeLayout positions views:
In rows
In columns
Relative to parent or other views
Randomly
FrameLayout is mainly used for:
Multiple UI elements
Single child view
Grid arrangement
Lists
ConstraintLayout improves:
App size
Performance
Database speed
Security
Which layout uses constraints?
LinearLayout
RelativeLayout
ConstraintLayout
GridLayout
GridLayout arranges UI in:
Rows only
Columns only
Table-like grid
Stack
Which layout overlaps components?
LinearLayout
FrameLayout
RelativeLayout
GridLayout
Weight attribute is used in:
RelativeLayout
LinearLayout
FrameLayout
TableLayout
layout_weight controls:
Height only
Width only
Space distribution
Margin
Which layout is deprecated mostly?
LinearLayout
RelativeLayout
ConstraintLayout
GridLayout
TableLayout arranges components in:
Rows and columns
Layers
Stack
Tree
Button click is handled using:
Intent
Listener
Service
Fragment
EditText is used for:
Display text
Image display
User input
Button
ImageView is used to show:
Text
Buttons
Images
Videos
CheckBox allows:
Single selection
Multiple selection
No selection
Auto selection
RadioButton is used for:
Multiple choice
Single choice
Text input
Images
Which widget shows a list of items?
Spinner
ListView
TextView
Spinner displays:
Images
Buttons
Drop-down list
Dialog
Switch widget is used for:
Text input
ON/OFF option
Images
Navigation
ToggleButton represents:
Menu
List
Boolean state
Image
ProgressBar is used to show:
Text
Image
Progress
Button
SeekBar allows user to:
Enter text
Slide value
Click button
Scroll page
RatingBar is used for:
Rating input
Text input
Image display
List
Which widget displays web content?
WebView
TextView
ImageView
Styles are defined in:
layout.xml
AndroidManifest.xml
styles.xml
colors.xml
Theme is applied to:
Single view
Activity or app
Button only
Layout only
Which file defines colors?
styles.xml
strings.xml
colors.xml
dimens.xml
Material Design was introduced in:
Android 2.3
Android 4.0
Android 5.0
Android 6.0
Material Design focuses on:
Speed only
Flat UI only
Visual + motion
Database
Which component shows top app bar?
Toolbar
Button
TextView
Spinner
Floating Action Button is used for:
Navigation
Primary action
Text input
Menu
Which file controls app icon?
styles.xml
drawable
mipmap
values
Navigation drawer slides from:
Bottom
Top
Left/Right
Center
Which design supports different screen sizes?
px units
Hard coding
Responsive design
Fixed layout
Which unit is best for margins and padding?
px
sp
dp
in
Which attribute sets background color?
android:color
android:bg
android:background
android:setColor
Which folder stores menu XML?
res/layout
res/menu
res/drawable
res/raw
UI consistency improves:
Memory
UX
Database
Security
Android Design Essentials mainly focus on:
Coding logic
Database
User experience
Networking
