Android Programming (2180715) MCQs

MCQs of User Interface

Showing 31 to 36 out of 36 Questions
31.
_____ sets the gravity of the view or layout in its parent?
(a) android:gravity
(b) android:layout_gravity
(c) android:weight
(d) android:orientation
Answer:

Option (b)

32.
What is android view group?
(a) Collection of views and other child views It is used to pass the data between activities
(b) It will fire at a future point of time.
(c) Base class of building blocks
(d) Layouts
Answer:

Option (a)

33.
What is fragment life cycle in android?
(a) onReceive()
(b) onCreate()
(c) onAttach()->onCreate() −> onCreateView() −> onActivityCreated() −> onStart() −> onResume()
(d) None of the above
Answer:

Option (c)

34.
What method you should override to use Android menu system?
(a) onCreateOptionsMenu()
(b) onCreateMenu()
(c) onMenuCreated()
(d) onCreateContextMenu()
Answer:

Option (a)

35.
All layout classes are direct sub classes of________
(a) java.lang.object
(b) android.widget
(c) android.view.Viewgroup
(d) android.view.View
Answer:

Option (c)

36.
To perform repeated tasks,we use _____________ class.
(a) Timer
(b) Post
(c) Intent Service
(d) onBind
Answer:

Option (a)

Showing 31 to 36 out of 36 Questions