Deck 2: Model View Controller, Gui Components, Events
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/20
العب
ملء الشاشة (f)
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
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
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
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>
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"
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