Android Programming (2180715) MCQs

MCQs of User Interface

Showing 1 to 10 out of 36 Questions
1.
In which directory XML layout files are stored?
(a) /assets
(b) /src
(c) /res/values
(d) /res/layout
Answer:

Option (d)

2.
View Pager is used for
(a) Swiping Activities
(b) Swiping Fragments
(c) Paging Down List Items
(d) View Pager Is Not Supported By Android SDK
Answer:

Option (b)

3.
Which of the following does not belong to transitions?
(a) ViewFlipper
(b) ViewAnimator
(c) ViewSwitcher
(d) ViewSlider
Answer:

Option (d)

4.
ActionBar can be associated to
(a) Only Fragments
(b) Only Activities
(c) Both Activities And Fragments
(d) None Of The Above
Answer:

Option (b)

5.
Button option can be choose from the palette category
(a) textfields
(b) containers
(c) widgets
(d) layouts
Answer:

Option (c)

6.
In android studio, error is shown in
(a) logcat
(b) memory
(c) ADB logs
(d) CPU
Answer:

Option (a)

7.
What is an Interface in android?
(a) Interface is a class.
(b) Interface acts as a bridge between class and the outside world.
(c) Interface is a layout file
(d) All of the above
Answer:

Option (b)

8.
What activity method you use to retrieve a reference to an Android view by using the id attribute of a resource XML?
(a) findViewByReference(int id)
(b) findViewById(int id)
(c) retrieveResourceById(int id)
(d) findViewById(String id)
Answer:

Option (b)

9.
The android library that provides access to UI pre-built elements such as buttons, lists, views etc. is
(a) android.text
(b) android.os
(c) android.view
(d) android.webkit
Answer:

Option (d)

10.
Which of the following is layouts in android?
(a) Frame Layout
(b) Linear Layout
(c) Relative Layout
(d) All of the above
Answer:

Option (d)

Showing 1 to 10 out of 36 Questions