Android Programming Fundamentals

Test your knowledge of Android application development including architecture, components, manifest file, resources, and activity lifecycle.

15 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Developers can build android applications on _________ operating systems.

  1. Microsoft Windows XP or higher
  2. Mac OS 10.5.8 or higher
  3. Linux 2.7 or higher
  4. All of the above
Question 2 Multiple Choice (Single Answer)

How many layers does android architecture have?

  1. 1
  2. 2
  3. 3
  4. 4
Question 3 Multiple Choice (Single Answer)

_________ are not a component of android application.

  1. Activities
  2. Services
  3. Broadcast receivers
  4. None of these
Question 4 Multiple Choice (Single Answer)

Which of the following statements is correct about manifest file?

  1. One must save all the projects in manifest file.
  2. All the backup versions will be stored in manifest file under manifest directory.
  3. All the components of an android application must be declared in Androidmanifest.xml file.
  4. There is no manifest file in android development.
Question 5 Multiple Choice (Single Answer)

How many sections does android architecture have?

  1. 2
  2. 3
  3. 4
  4. 5
Question 6 Multiple Choice (Single Answer)

Manifest.xml file resides in

  1. /main folder
  2. /start folder
  3. the root
  4. anywhere on desktop
Question 7 Multiple Choice (Single Answer)

_____________ are not a resource of an android application.

  1. User interface strings
  2. Bitmaps
  3. Colours
  4. Smartphones
  5. Layout definitions
Question 8 Multiple Choice (Single Answer)

Which of the following tags is not present in manifest file?

  1. <activity>
  2. <services>
  3. <os>
  4. <provider>
  5. <receiver>
Question 9 Multiple Choice (Single Answer)

Which is the the first callback method when an activity is created?

  1. Create()
  2. onCreate()
  3. Start()
  4. onStart()
Question 10 Multiple Choice (Single Answer)

Which of the following statements is correct about application resources?

  1. All the resources should be placed directly under the root directory.
  2. All the resources should be placed directly under the res/ directory.
  3. You should place each type of resource in a specific directory of your project's res/ directory.
  4. You can define your own user defined directories and place all the resources over there.
  5. None of these
Question 11 Multiple Choice (Single Answer)

Find the odd one out.

  1. anim/
  2. colour/
  3. menu/
  4. java/
  5. layout/
Question 12 Multiple Choice (Single Answer)

Which of the following options is not a correct callback method in an activity class?

  1. onCreate()
  2. onStart()
  3. onResume()
  4. onInterrupt()
Question 13 Multiple Choice (Single Answer)

Match the following:

(a) Activities (i) Handle data and database management issues
(b) Services (ii) Handle user interaction to smartphone screen and also dictate the UI
(c) Broadcast receivers (iii) Handle background processing associated with an application
(d) Content providers (iv) Handle communication between android OS and applications
  1. (a) – (ii), (b) – (iii), c – (iv), d – (i)
  2. (a) – (iii), (b) – (ii), c – (iv), d – (i)
  3. (a) – (i), (b) – (iv), c – (iii), d – (i)
  4. None of these
Question 14 Multiple Choice (Single Answer)

What is the name of the window where all the event messages will be displayed upon execution of the code from an eclipse IDE?

  1. Log window
  2. Log cat
  3. Error log
  4. Message log
  5. Log
Question 15 Multiple Choice (Single Answer)

Match the callback methods in an activity class with their description.

(a) onCreate() 1. It is called when the first activity is created.
(b) onStart() 2. It is called when activity restarts after stopping it.
(c) onResume() 3. It is called before the activity is destroyed by the system.
(d) onPause() 4. It is called when the activity is no longer visible.
(e) onStop() 5. It is called when the activity becomes visible to the user.
(f) onDestroy() 6. It is called when the user starts interacting with the application.
(g) onRestart() 7. When It is called, the paused activity does not receive any further user input and cannot execute any code.
  1. a – 1; b – 5; c – 6; d – 7; e – 4; f – 3; g – 2
  2. a – 2; b – 5; c – 6; d – 7; e – 4; f – 3; g – 1
  3. a – 2; b – 4; c – 6; d – 7; e – 5; f – 3; g – 1
  4. None of these