Android Development Fundamentals
Covers Android app development basics including project structure, components, and lifecycle management.
Questions
.apk file is present in _______ directory of project.
- bin
- res
- gen
- src
Which of the following methods is not provided by AsyncTask?
- doInBackground()
- doInFront()
- onPreExecute()
- onPostExecute()
What is the use of toast?
- For background task
- To provide a text window
- To provide a simple popup
- None of these
Where should the images be stored in an android project?
- Layout
- Values
- Drawable
- Assest
What is the use of AndroidManifest.xml present in res folder?
- To modify the application permissions
- To add media files(images)
- To change layout or graphical view
- To provide pointers to drawable, layout and values directory
__________ is a bundle of additional information, which can be used to provide extended information to the component.
- Log
- Extras
- Toast
- None of these
Which of the following options is not present in resource folder?
- Values
- Layout
- Drawable
- Assests
Which of the following options is not a sub folder of bin directory?
- Res
- Classes
- DexedLibs
- Libs
Which package needs to be imported for displaying images?
- android.widget.ImageView
- android.widget.Image
- android.widget.ShowImage
- None of these
Which of the following options is not a method from the android activity life cycle?
- onDestroy
- onPause
- onRewind
- onResume
Which field(s) from manifest.xml has/have to be edited if we want to use camera in our project?
- Only uses-permission
- Only uses-feature
- Both uses-permission and uses-feature
- None of these
The file ________ is an auto-generated file that is added to your application by the android plugin.
- BuildConfig.java
- AndroidManifest.xml
- <activity>.java
- R.java
_______ is an object used for runtime binding.
- Bundle
- Intent
- Message
- Log
Which of the following options is/are correct about android?
Designing user interface is
(a) XML-based
(b) Code-based
- Only a
- Only b
- Both a and b
- None of these
_______ defines a particular device’s software version and hardware format to run user designed application in.
- Run as
- Android virtual devices (or AVD for short)
- Emulator
- Hardware (mobile phone having android OS)