0

platforms and products Online Quiz - 30

Description: platforms and products Online Quiz - 30
Number of Questions: 20
Created by:
Tags: platforms and products
Attempted 0/20 Correct 0 Score 0

Activities are basic objects, describing things a user can see or do and they can subscribe for intents.

  1. True

  2. False


Correct Option: B
  1. Calling drop() method

  2. Calling finish() method

  3. Calling release() method

  4. kill the process_id

  5. Above b or d

  6. None of above


Correct Option: E

The visible lifetime of an activity happens between a call to onStart() until a corresponding call to onPause(). Choose the right answer.

  1. True

  2. False


Correct Option: B

____ method is called just before the activity starts interacting with the user. At this point the activity is at the top of the activity stack, with user input going to it.

  1. onPause()

  2. onResume()

  3. onRestart()

  4. onStart()

  5. None of above


Correct Option: B

AI Explanation

To answer this question, we need to understand the lifecycle of an Android Activity.

The correct method that is called just before the activity starts interacting with the user is the onResume() method. This method is called when the activity is about to become visible to the user and is at the top of the activity stack. User input is directed to this activity at this point.

Let's go through each option to understand why it is correct or incorrect:

A) onPause() - This method is called when the activity is no longer in the foreground and is about to be paused. It is not called just before the activity starts interacting with the user.

B) onResume() - This method is called just before the activity starts interacting with the user. It is the correct answer.

C) onRestart() - This method is called when the activity is being restarted after being stopped. It is not called just before the activity starts interacting with the user.

D) onStart() - This method is called when the activity is becoming visible to the user. It is not called just before the activity starts interacting with the user.

E) None of the above - This option is incorrect as the correct answer is option B, onResume().

The correct answer is B) onResume(). This method is called just before the activity starts interacting with the user.

The activity in this state is killable by the system.

  1. onDestroy()

  2. onStop()

  3. onPause()

  4. Above a & c

  5. Above a & b

  6. Above a & b & c


Correct Option: F

The following method is called when the system is about to start resuming another activity

  1. onStop()

  2. onPause()

  3. onRestart()

  4. onDestroy()

  5. None of above


Correct Option: B
  1. onResume(), onStop()

  2. onStart(), onStop()

  3. onStart(), onDestroy()

  4. onResume(), onDestroy()

  5. None of above


Correct Option: B

________ method is passed a Bundle object containing the activity's previous state, if that state was captured.

  1. onCreate()

  2. onResume()

  3. onStart()

  4. None of above


Correct Option: A

Suppose there are two applications having same priority, but the process that has _______ priority will be killed first.

  1. Highest

  2. Lowest

  3. Medium

  4. None of above


Correct Option: B

An Android Application can be “Alive” even when process has been killed

  1. True

  2. False


Correct Option: B

All Android applications will remain running and in memory until the system needs its resources for other applications.

  1. True

  2. False


Correct Option: B

A typical Android application has ________ components.

  1. 3

  2. 5

  3. 4

  4. 6

  5. None of above


Correct Option: C

An android application includes the following components -

  1. Activity, Service, Process and Content Provider

  2. Activity, Intent, Process and Service

  3. Activity, Service, Broadcast Receiver and Content provider

  4. Service, Process, Broadcast Receiver and Content Provider

  5. None of above


Correct Option: C
- Hide questions