
Quiz2_07-05-2025
Authored by Uzma Sulthana
Professional Development
Professional Development
Used 1+ times

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
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.READ_NETWORK
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?