Deck 4: Multiple Activities, Passing Data Between Activities, Transitions, Persistent Data
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/22
العب
ملء الشاشة (f)
Deck 4: Multiple Activities, Passing Data Between Activities, Transitions, Persistent Data
1
We place transition XML files in the ____________ directory of the res directory.
anim
2
A Table Layout arranges its components in ____________ and ____________.
rows and columns
3
Using a RelativeLayout, to specify that a View matches the left edge of another View, we use which of the following attributes?
A) android:layout_alignLeft
B) android:layout_leftOf
C) android:layout_rightOf
D) android:layout_align
A) android:layout_alignLeft
B) android:layout_leftOf
C) android:layout_rightOf
D) android:layout_align
android:layout_alignLeft
4
Using a RelativeLayout, to specify that a View goes to the right of another View, we use which of the following attributes?
A) android:layout_toRight
B) android:layout_rightOf
C) android:layout_toRightOf
D) android:layout_right
A) android:layout_toRight
B) android:layout_rightOf
C) android:layout_toRightOf
D) android:layout_right
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 22 في هذه المجموعة.
فتح الحزمة
k this deck
5
If we have more than one activity, it is possible to navigate back and forth between the corresponding views.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 22 في هذه المجموعة.
فتح الحزمة
k this deck
6
Clicking on a button can make the app move to another activity.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 22 في هذه المجموعة.
فتح الحزمة
k this deck
7
The onResume method of the Activity class is called right after the ____________ method.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 22 في هذه المجموعة.
فتح الحزمة
k this deck
8
The ____________ method of the Activity class is called when an activity becomes invisible to the user.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 22 في هذه المجموعة.
فتح الحزمة
k this deck
9
The ____________ interface includes the functionality to write to and read from the user preferences.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 22 في هذه المجموعة.
فتح الحزمة
k this deck
10
What XML element do we use when defining a transition that involves a fade-in effect?
A) fade
B) transparent
C) alpha
D) change
A) fade
B) transparent
C) alpha
D) change
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 22 في هذه المجموعة.
فتح الحزمة
k this deck
11
In order to set up a transition when going from one activity to another, we call the ____________ method from the Activity class.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 22 في هذه المجموعة.
فتح الحزمة
k this deck
12
Following is the API of the getint method of SharedPreferences.Editor:
Int getInt( String a, int b)
What does b represent?
A) A key for which getInt returns the associated value
B) A value for which getInt returns the associated key
C) A default value that may (or may not) be returned by getInt
D) A default key value
Int getInt( String a, int b)
What does b represent?
A) A key for which getInt returns the associated value
B) A value for which getInt returns the associated key
C) A default value that may (or may not) be returned by getInt
D) A default key value
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 22 في هذه المجموعة.
فتح الحزمة
k this deck
13
What XML element represents a row in a TableLayout?
A) Row
B) TableRow
C) Table
D) Rows
A) Row
B) TableRow
C) Table
D) Rows
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 22 في هذه المجموعة.
فتح الحزمة
k this deck
14
Using a RelativeLayout, which attribute do we use to specify that a View goes below another View?
A) android:below
B) android:belowView
C) android:layout_belowView
D) android:layout_below
A) android:below
B) android:belowView
C) android:layout_belowView
D) android:layout_below
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 22 في هذه المجموعة.
فتح الحزمة
k this deck
15
Using a RelativeLayout, which attribute do we use to specify that a View's bottom matches the bottom of its parent View?
A) android:layout_align
B) android:layout_alignBottom
C) android:layout_alignParentBottom
D) android:layout_alignY
A) android:layout_align
B) android:layout_alignBottom
C) android:layout_alignParentBottom
D) android:layout_alignY
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 22 في هذه المجموعة.
فتح الحزمة
k this deck
16
What is this in the following code?
Intent myIntent = new Intent( this, DataActivity.class );
A) A DataActivity reference
B) A reference to the current Activity
C) An Intent
D) A class
Intent myIntent = new Intent( this, DataActivity.class );
A) A DataActivity reference
B) A reference to the current Activity
C) An Intent
D) A class
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 22 في هذه المجموعة.
فتح الحزمة
k this deck
17
What is DataActivity in the following code?
Intent myIntent = new Intent( this, DataActivity.class );
A) A subclass of Intent
B) A reference to the current Activity
C) An Intent
D) An Activity class
Intent myIntent = new Intent( this, DataActivity.class );
A) A subclass of Intent
B) A reference to the current Activity
C) An Intent
D) An Activity class
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 22 في هذه المجموعة.
فتح الحزمة
k this deck
18
When using a scale element for a scaling transition, what attribute do we use to define the x coordinate of a fixed point when scaling takes place?
A) android:pivot
B) android:X
C) android:scaleX
D) android:pivotX
A) android:pivot
B) android:X
C) android:scaleX
D) android:pivotX
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 22 في هذه المجموعة.
فتح الحزمة
k this deck
19
We can use a View element to encode a line.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 22 في هذه المجموعة.
فتح الحزمة
k this deck
20
It is possible to pass data from one activity to another.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 22 في هذه المجموعة.
فتح الحزمة
k this deck
21
The __________________ method of the Activity class is called when an activity is about to restart.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 22 في هذه المجموعة.
فتح الحزمة
k this deck
22
The __________________ method of the Activity class is called when another activity starts and the current activity goes in the background.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 22 في هذه المجموعة.
فتح الحزمة
k this deck