Explore topic-wise MCQs in Technical MCQs.

This section includes 10 Mcqs, each offering curated multiple-choice questions to sharpen your Technical MCQs knowledge and support exam preparation. Choose a topic below to get started.

1.

Every activity you define for your application must be declared in yourAndroid.xmlfile

A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
E.
Answer» C. Can be true or false
2.

An application can have one or more activities without any restrictions.

A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
Answer» B. FALSE
3.

TheLog.d()method has been used to generate log messages

A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
Answer» B. FALSE
4.

For creating Fragments the java class needs to extend which base class?

A. MainActivity
B. MiniActivity
C. Fragments
D. None of the above
Answer» D. None of the above
5.

In android mini-activities are also known as

A. Adapter
B. Activity
C. Fragments
D. None of the above
Answer» D. None of the above
6.

If you need to pass data back from an activity, Which method you should use?

A. startActivity()
B. startActivityForResult()
C. ActivityForResult()
D. None of the above.
Answer» C. ActivityForResult()
7.

Which callback is called when the activity restarts after stopping it?

A. onDestroy()
B. onPause()
C. onStart()
D. onRestart()
Answer» E.
8.

Which callback is called when the activity is no longer visible?

A. onRestart()
B. onDestroy()
C. onStop()
D. onPause()
Answer» D. onPause()
9.

Which callback is called when the activity becomes visible to the user?

A. onCreate()
B. onStart()
C. onResume()
D. onPause()
Answer» C. onResume()
10.

Android system initiates its program with in anActivitystarting with a call on?

A. offCreate()callback
B. onDrop()callback
C. offCreate()callback
D. onCreate()callback
Answer» E.