Search Header Logo

21 Batch Android Programming Services, Fragments

Authored by Suresh Mamidisetti

Other

University

Used 2+ times

21 Batch Android Programming Services, Fragments
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following android component displays the part of an activity on screen?

Intent

View

Manifest

Fragment

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the first callback method that is invoked by the system during an activity life-cycle?

onStart() method

onClick() method

onCreate() method

onClick() method

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can we stop the services in android?

By using the finish() method

By using system.exit() method

By using the stopSelf() and stopService() method

None of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A service is started when component calls______.

onCreate()

onStartCommand()

startService()

start()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A service is bound when another component calls_______

bindService()

bind()

Both A and B

None of these

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The system calls this method when all clients have disconnected from a particular interface published by the service.

onUnBind()

onUnbind()

stopService()

onStop()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is true about Fragments ?

A fragment has its own layout and its own behaviour with its own life cycle callbacks.

You can add or remove fragments in an activity while the activity is running.

You can combine multiple fragments in a single activity to build a multi-pane UI.

All of the above

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?