Android Application Development (AND-401) — Question 10

What is a correct statement about an XML layout file?

Answer options

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.