Android Development Fundamentals

Covers Android app development basics including project structure, components, and lifecycle management.

15 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

.apk file is present in _______ directory of project.

  1. bin
  2. res
  3. gen
  4. src
Question 2 Multiple Choice (Single Answer)

Which of the following methods is not provided by AsyncTask?

  1. doInBackground()
  2. doInFront()
  3. onPreExecute()
  4. onPostExecute()
Question 3 Multiple Choice (Single Answer)

What is the use of toast?

  1. For background task
  2. To provide a text window
  3. To provide a simple popup
  4. None of these
Question 4 Multiple Choice (Single Answer)

Where should the images be stored in an android project?

  1. Layout
  2. Values
  3. Drawable
  4. Assest
Question 5 Multiple Choice (Single Answer)

What is the use of AndroidManifest.xml present in res folder?

  1. To modify the application permissions
  2. To add media files(images)
  3. To change layout or graphical view
  4. To provide pointers to drawable, layout and values directory
Question 6 Multiple Choice (Single Answer)

__________ is a bundle of additional information, which can be used to provide extended information to the component.

  1. Log
  2. Extras
  3. Toast
  4. None of these
Question 7 Multiple Choice (Single Answer)

Which of the following options is not present in resource folder?

  1. Values
  2. Layout
  3. Drawable
  4. Assests
Question 8 Multiple Choice (Single Answer)

Which of the following options is not a sub folder of bin directory?

  1. Res
  2. Classes
  3. DexedLibs
  4. Libs
Question 9 Multiple Choice (Single Answer)

Which package needs to be imported for displaying images?

  1. android.widget.ImageView
  2. android.widget.Image
  3. android.widget.ShowImage
  4. None of these
Question 10 Multiple Choice (Single Answer)

Which of the following options is not a method from the android activity life cycle?

  1. onDestroy
  2. onPause
  3. onRewind
  4. onResume
Question 11 Multiple Choice (Single Answer)

Which field(s) from manifest.xml has/have to be edited if we want to use camera in our project?

  1. Only uses-permission
  2. Only uses-feature
  3. Both uses-permission and uses-feature
  4. None of these
Question 12 Multiple Choice (Single Answer)

The file ________ is an auto-generated file that is added to your application by the android plugin.

  1. BuildConfig.java
  2. AndroidManifest.xml
  3. <activity>.java
  4. R.java
Question 13 Multiple Choice (Single Answer)

_______ is an object used for runtime binding.

  1. Bundle
  2. Intent
  3. Message
  4. Log
Question 14 Multiple Choice (Single Answer)

Which of the following options is/are correct about android?
Designing user interface is
(a) XML-based
(b) Code-based

  1. Only a
  2. Only b
  3. Both a and b
  4. None of these
Question 15 Multiple Choice (Single Answer)

_______ defines a particular device’s software version and hardware format to run user designed application in.

  1. Run as
  2. Android virtual devices (or AVD for short)
  3. Emulator
  4. Hardware (mobile phone having android OS)