Online Exam Quiz

questionQuestion  1 to 30

What is the use of RecyclerView in Android?

  • To display a fixed number of items
  • To display a large dataset of items
  • To handle user input
  • To manage network operations
Mark for review

Which keyword is used to define a constant in Java?

  • const
  • final
  • static
  • immutable
Mark for review

How do you define a layout in XML for an Android application?

  • <layout>
  • <view>
  • <design>
  • <xml>
Mark for review

How can you optimize battery usage in an Android application?

  • Using background services
  • Using JobScheduler and WorkManager
  • Using IntentService
  • Using multiple activities
Mark for review

Which class in Android is used to store and retrieve data in the form of key-value pairs?

  • SharedPreferences
  • ContentProvider
  • SQLiteDatabase
  • FileProvider
Mark for review

Which component is responsible for managing the lifecycle of an Android app?

  • Activity
  • Fragment
  • Service
  • ActivityManager
Mark for review

Which of the following is NOT a type of Context in Android?

  • Application Context
  • Activity Context
  • Service Context
  • Fragment Context
Mark for review

Which method is used to start a new thread in Java?

  • begin()
  • start()
  • run()
  • execute()
Mark for review

Which method is used to close an activity in Android?

  • finish()
  • stop()
  • close()
  • destroy()
Mark for review

How can you handle different screen sizes in Android?

  • Use of flexible layouts
  • Fixed layouts
  • Using pixel-based dimensions
  • Ignoring the issue
Mark for review

What is the default value of a boolean variable in Java?

  • TRUE
  • FALSE
  • null
  • 0
Mark for review

How can you perform network operations in Android?

  • Using AsyncTask
  • Using Handler
  • Using IntentService
  • All of the above
Mark for review

Which method is used to start an activity for a result in Android?

  • startActivity()
  • startActivityForResult()
  • startResultActivity()
  • startForResultActivity()
Mark for review

How can you avoid ANR in Android?

  • Using background threads
  • Using heavy tasks on main thread
  • Blocking UI thread
  • Ignoring system events
Mark for review

How can you access a view by its id in Android?

  • findViewById()
  • getViewById()
  • findView()
  • getView()
Mark for review

What is the purpose of the 'Looper' class in Android?

  • To manage threads
  • To manage message queues for threads
  • To handle UI rendering
  • To manage network requests
Mark for review

What does the 'Parcelable' interface in Android do?

  • Serializes objects
  • Allows objects to be serialized and passed between activities
  • Manages app resources
  • Handles UI events
Mark for review

Mark for review

How do you handle long-running operations in Android without blocking the UI?

  • Using background threads
  • Using main thread
  • Using UI thread
  • Using main activity thread
Mark for review

Which method is used to display a dialog in Android?

  • showDialog()
  • displayDialog()
  • createDialog()
  • presentDialog()
Mark for review

What is the use of an Intent in Android?

  • To pass data between activities
  • To draw the UI
  • To handle background tasks
  • To manage the lifecycle
Mark for review

Which file contains the layout of an activity?

  • .java
  • .class
  • .xml
  • .json
Mark for review

What is ADB in Android?

  • Android Debug Bridge
  • x
  • Application Development Bridge
  • Application Database
Mark for review

What is the AndroidManifest.xml file used for?

  • Declaring app components
  • Defining UI layouts
  • Storing data
  • Handling background tasks
Mark for review

Which method is called when an activity is started for the first time?

  • onStart()
  • onCreate()
  • onResume()
  • onDestroy()
Mark for review

How can you define a new style in Android?

  • In strings.xml
  • In styles.xml
  • In layout.xml
  • In colors.xml
Mark for review

Mark for review

What does APK stand for?

  • Android Phone Kit
  • Android Page Kit
  • Android Package Kit
  • Android Package Keeper
Mark for review

Which company developed Android?

  • Apple
  • Google
  • Microsoft
  • IBM
Mark for review

How do you declare a service in AndroidManifest.xml?

  • <service>
  • <intent>
  • <activity>
  • <receiver>
Mark for review

blinkerOnline

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • Answered
  • Not Answered
  • Marked for Review