0
Alien head

Android Programming Test - 1

Description: Android Test 1
Number of Questions: 15
Created by:
Tags: Introduction to Android Android
Attempted 0/15 Correct 0 Score 0

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


Correct Option: D
Explanation:

.

How many layers does android architecture have?

  1. 1

  2. 2

  3. 3

  4. 4


Correct Option: D
Explanation:

 

_________ are not a component of android application.

  1. Activities

  2. Services

  3. Broadcast receivers

  4. None of these


Correct Option: D
Explanation:

.

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.


Correct Option: C
Explanation:

.

How many sections does android architecture have?

  1. 2

  2. 3

  3. 4

  4. 5


Correct Option: D
Explanation:

.

Manifest.xml file resides in

  1. /main folder

  2. /start folder

  3. the root

  4. anywhere on desktop


Correct Option: C

_____________ are not a resource of an android application.

  1. User interface strings

  2. Bitmaps

  3. Colours

  4. Smartphones

  5. Layout definitions


Correct Option: D
Explanation:

.

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

  1. <activity>

  2. <services>

  3. <os>

  4. <provider>

  5. <receiver>


Correct Option: C
Explanation:

.

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

  1. Create()

  2. onCreate()

  3. Start()

  4. onStart()


Correct Option: B
Explanation:

.

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


Correct Option: C

Find the odd one out.

  1. anim/

  2. colour/

  3. menu/

  4. java/

  5. layout/


Correct Option: D
Explanation:

.

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

  1. onCreate()

  2. onStart()

  3. onResume()

  4. onInterrupt()


Correct Option: D
Explanation:

.

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


Correct Option: A
Explanation:

.

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


Correct Option: B
Explanation:

.

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


Correct Option: A
Explanation:

.

+ View questions