wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Android Studio Quiz - BSCS IV

Total questions: 10

Worksheet time: 3mins

Name
Class
Date
1.

What does XML stand for?

a)

Extra Multi Language

b)

Extensible Markup Language

c)

Example Markup Language

d)

Executable Multiple Language

2.

In Android, where are XML layout files stored?

a)

/src/layout/

b)

/xml/layout/

c)

/res/layout/

d)

/assets/layout/

3.

Which attribute sets the width of a View in XML?

a)

android:layout_width

b)

android:height

c)

android:weight

d)

android:width

4.

What is the default orientation of a LinearLayout?

a)

Grid

b)

None

c)

Horizontal

d)

Vertical

5.

Which XML file defines string resources?

a)

AndroidManifest.xml

b)

strings.xml

c)

styles.xml

d)

colors.xml

6.

Which attribute is used to set margins in Android XML?

a)

android:padding

b)

android:margin

c)

android:layout_margin

d)

android:gap

7.

What is the root element in most Android XML layout files?

a)

<layout>

b)

<root>

c)

<RelativeLayout>

d)

<LinearLayout>

8.

Which attribute sets the text size of a TextView in XML?

a)

android:fontSize

b)

android:text_size

c)

android:textSize

d)

android:labelSize

9.

Which of the following is NOT a valid layout in Android?

a)

TableLayout

b)

GridLayout

c)

FrameDesign

d)

LinearLayout

10.

Which symbol is used to close a tag in XML?

a)

</>

b)

<->

c)

<//>

d)

<!>