Android Application Development (AND-401) — Question 10
What is a correct statement about an XML layout file?
Answer options
- A. A layout PNG image file
- B. A file used to draw the content of an Activity
- C. A file that contains all application permission information
- D. A file that contains a single activity widget.
Correct answer: B
Explanation
The correct answer is B, as an XML layout file is specifically designed to define the user interface of an Activity in Android. Option A is incorrect because a layout PNG image file is not an XML file, while option C pertains to application permissions and option D incorrectly suggests that an XML layout file only contains one widget, when it can include multiple UI components.