Android Views MCQ Questions
This section focuses on "Views" of Android. These Multiple Choice Questions (mcq) should be practiced to improve the Android skills required for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive examinations.
1. View refers to the?
A. android.View.view class
B. android.view.View class
C. android.view class
D. android.View class
View Answer
Ans : A
Explanation: View is the basic building block of UI(User Interface) in android. View refers to the android.view.View class, which is the super class for all the GUI components
2. View class extends Object class and implements?
A. Drawable.Callback
B. KeyEvent.Callback
C. AccessibilityEventSource
D. All of the above
View Answer
Ans : D
Explanation: View class extends Object class and implements Drawable.Callback, KeyEvent.Callback and AccessibilityEventSource.
3. ___________ means it will occupy the complete space available on the display of the device.
A. wrap_content
B. match_content
C. match_parent
D. wrap_parent
View Answer
Ans : C
Explanation: match_parent means it will occupy the complete space available on the display of the device
4. ___________ means it will occupy only that much space as required for its content to display.
A. wrap_content
B. match_content
C. match_parent
D. wrap_parent
View Answer
Ans : A
Explanation: wrap_content means it will occupy only that much space as required for its content to display.
5. View always start with?
A. [
B. <
C. {
D. (
View Answer
Ans : B
Explanation: It always start with an angle bracket, followed by the View name
6. In the end, it is closed by ?
A. >
B. ?>
C. :>
D. />
View Answer
Ans : D
Explanation: In the end, it is closed by />
7. To embed a web browser in your activity which view you will use?
A. RichTextView
B. Browser
C. WebView
D. None of the above
View Answer
Ans : C
Explanation: To embed a web browser in your activity which view you will use WebView.
8. To display text which control you will use?
A. EditText
B. TextView
C. label
D. ViewText
View Answer
Ans : B
Explanation: To display text which control you will use TextView.
9. There are two attributes that are necessary for every View. These are: android:layout_height and android:layout_width.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: There are two attributes that are necessary for every View. These are: android:layout_height and android:layout_width.
10. A View is also known as Widget in Android.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: A View is also known as Widget in Android.Any visual(that we can see on screen) and interactive(with which user can interact with) is called a Widget.
Discussion
Random Guy
noice explanation with each answer
I am kinda preparing for my exams from this website. good place for last hour studying people like me