Search Header Logo

Quiz2_07-05-2025

Authored by Uzma Sulthana

Professional Development

Professional Development

Used 1+ times

Quiz2_07-05-2025
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the primary purpose of AsyncTask in Android?

To manage databases

To run operations in the UI thread

To perform background operations and publish results on the UI thread

To create services

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which method is called after doInBackground() completes?

onPostExecute()

onCancelled()

onProgressUpdate()

onPreExecute()

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which permission is needed to access the internet in Android?

android.permission.ACCESS_NETWORK_STATE

android.permission.INTERNET

android.permission.ACCESS_WIFI_STATE

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which stream is used to read server responses?

InputStream

OutputStream

FileOutputStream

BufferedOutputStream

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

A broadcast receiver runs on which thread?

UI thread

Worker thread

Background thread

Main thread

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which intent is used to send broadcasts?

Intent.ACTION_SEND

sendBroadcast(Intent)

setBroadcastIntent()

createBroadcast()

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which method starts a service explicitly?

bindService()

onStartCommand()

runService()

startService()

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?

Discover more resources for Professional Development