Deck 2: Model View Controller, Gui Components, Events

ملء الشاشة (f)
exit full mode
سؤال
If we want to handle persistent data in an app, we can use the Model View Controller ____________ architecture.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
A Model can be used only in Android apps, not in other Java applications.
سؤال
The class that renders a keyboard is ____________.
سؤال
Two constants that can be used as values of android:layout_width and android:layout_height are ____________ and ____________.
سؤال
To position Views relative to each other, we can use a(n) ____________ (layout manager).
سؤال
It is possible to specify the transparency of a View.
سؤال
A style can inherit from another style.
سؤال
In order to retrieve a View that has been given an id, we use the ____________ method.
سؤال
A CharSequence can be converted to a String by calling its toString method.
سؤال
In order to register a TextWatcher on a GUI component, we call the ____________ method.
سؤال
Which class enables the user to enter text?

A) TextField
B) EditText
C) EditView
D) Text
سؤال
Which class is not a subclass of Button?

A) CheckBox
B) Switch
C) RadioButton
D) EditText
سؤال
Which attribute do we use to specify the margin above a View?

A) margin
B) android:marginTop
C) android:layout_marginTop
D) android:layout_margin
سؤال
What is the correct definition of an item inside a style (assuming that the color abc is correctly defined in colors.xml)?

A) < item name="android:background">< /item>
B) < item name="android:background">@color/abc< /item>
C) < item name="android:background">abc< /item>
D) < item name="android:background">color/abc< /item>
سؤال
When a button is clicked on by the user, we want the method foo to execute. How do we do it (inside the Button element of the activity_main.xml file)?

A) android:onClick="foo"
B) android="foo"
C) android:onClick="@activity/foo"
D) onClick="foo"
سؤال
Button is a subclass of TextView.
سؤال
The Model is the middleman between the __________________ and the Controller.
سؤال
The superclass for layout classes is __________________.
سؤال
The XML attribute that we use to give an id to a View is __________________.
سؤال
The __________________ interface provides three methods that are called when the text changes inside a TextView.
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/20
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 2: Model View Controller, Gui Components, Events
1
If we want to handle persistent data in an app, we can use the Model View Controller ____________ architecture.
Store
2
A Model can be used only in Android apps, not in other Java applications.
False
3
The class that renders a keyboard is ____________.
KeyboardView
4
Two constants that can be used as values of android:layout_width and android:layout_height are ____________ and ____________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 20 في هذه المجموعة.
فتح الحزمة
k this deck
5
To position Views relative to each other, we can use a(n) ____________ (layout manager).
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 20 في هذه المجموعة.
فتح الحزمة
k this deck
6
It is possible to specify the transparency of a View.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 20 في هذه المجموعة.
فتح الحزمة
k this deck
7
A style can inherit from another style.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 20 في هذه المجموعة.
فتح الحزمة
k this deck
8
In order to retrieve a View that has been given an id, we use the ____________ method.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 20 في هذه المجموعة.
فتح الحزمة
k this deck
9
A CharSequence can be converted to a String by calling its toString method.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 20 في هذه المجموعة.
فتح الحزمة
k this deck
10
In order to register a TextWatcher on a GUI component, we call the ____________ method.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 20 في هذه المجموعة.
فتح الحزمة
k this deck
11
Which class enables the user to enter text?

A) TextField
B) EditText
C) EditView
D) Text
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 20 في هذه المجموعة.
فتح الحزمة
k this deck
12
Which class is not a subclass of Button?

A) CheckBox
B) Switch
C) RadioButton
D) EditText
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 20 في هذه المجموعة.
فتح الحزمة
k this deck
13
Which attribute do we use to specify the margin above a View?

A) margin
B) android:marginTop
C) android:layout_marginTop
D) android:layout_margin
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 20 في هذه المجموعة.
فتح الحزمة
k this deck
14
What is the correct definition of an item inside a style (assuming that the color abc is correctly defined in colors.xml)?

A) < item name="android:background">< /item>
B) < item name="android:background">@color/abc< /item>
C) < item name="android:background">abc< /item>
D) < item name="android:background">color/abc< /item>
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 20 في هذه المجموعة.
فتح الحزمة
k this deck
15
When a button is clicked on by the user, we want the method foo to execute. How do we do it (inside the Button element of the activity_main.xml file)?

A) android:onClick="foo"
B) android="foo"
C) android:onClick="@activity/foo"
D) onClick="foo"
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 20 في هذه المجموعة.
فتح الحزمة
k this deck
16
Button is a subclass of TextView.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 20 في هذه المجموعة.
فتح الحزمة
k this deck
17
The Model is the middleman between the __________________ and the Controller.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 20 في هذه المجموعة.
فتح الحزمة
k this deck
18
The superclass for layout classes is __________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 20 في هذه المجموعة.
فتح الحزمة
k this deck
19
The XML attribute that we use to give an id to a View is __________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 20 في هذه المجموعة.
فتح الحزمة
k this deck
20
The __________________ interface provides three methods that are called when the text changes inside a TextView.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 20 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 20 في هذه المجموعة.