Deck 5: Investigate Android Lists, Arrays, and Web Browsers
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/50
العب
ملء الشاشة (f)
Deck 5: Investigate Android Lists, Arrays, and Web Browsers
1
The ____ method projects your data to the onscreen list by connecting a ListView object to array data.
A) createViewAdapter
C) setListAdapter
B) projectArrayAdapter
D) useListAdapter
A) createViewAdapter
C) setListAdapter
B) projectArrayAdapter
D) useListAdapter
C
2
It is not necessary to use the break keyword to end a case statement; it is automatically terminated by the next case keyword.
False
3
When you create a new class, you do not need to reference it in the Android Manifest file.
False
4
A good example of a professional city guide is ____.
A) CitySpaces
C) CitySeer
B) MetroAdvisor
D) TripAdvisor
A) CitySpaces
C) CitySeer
B) MetroAdvisor
D) TripAdvisor
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
5
A switch statement can also be implemented as a chain of if/else statements.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
6
The default generic layout is simple list item ____.
A) 1
C) checked
B) 2
D) multiple_choice
A) 1
C) checked
B) 2
D) multiple_choice
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
7
When publishing apps, you must be careful to follow copyright law.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
8
If a Java View list exceeds the length of the screen, the list is ____.
A) made scrollable
C) shrunk to fit
B) paginated
D) truncated
A) made scrollable
C) shrunk to fit
B) paginated
D) truncated
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
9
Using the ____ control allows you to create a two-level list.
A) ExpandableListView
C) MajorListView
B) ListView
D) TwoListView
A) ExpandableListView
C) MajorListView
B) ListView
D) TwoListView
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
10
Displaying lists is rarely used as a design pattern in mobile applications.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
11
Creating an ArrayAdapter with a non-standard layout requires fewer arguments than usual since the layout does not need to be specified.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
12
The first item in an array is referenced using index 0.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
13
It is important to verify that the links in your app are not broken.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
14
The reference for an array is enclosed in ____.
A) {}
C) ()
B) []
D) <>
A) {}
C) ()
B) []
D) <>
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
15
When you allocate an empty array, the number of elements in the array is equal to the index specified when allocating the array.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
16
If the primary purpose of a class is to display a ListView control, it is recommended to extend the class from ____.
A) Activity
C) SelectionActivity
B) ListActivity
D) ViewingActivity
A) Activity
C) SelectionActivity
B) ListActivity
D) ViewingActivity
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
17
A(n) ____ provides a data model for the layout of the list.
A) abstraction
C) blueprint
B) adapter
D) skeleton
A) abstraction
C) blueprint
B) adapter
D) skeleton
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
18
A(n) ____ variable allows you to store multiple values in one variable at the same time.
A) array
C) list
B) index
D) temporary
A) array
C) list
B) index
D) temporary
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
19
Switch statements do not allow ranges such as 10-40 to match a case.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
20
You can use a(n) ____ control to display lists.
A) ArrayView
C) ListView
B) ItemView
D) SelectorView
A) ArrayView
C) ListView
B) ItemView
D) SelectorView
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
21
Suppose you wanted to declare a variable called mat that is an array of arrays of ints. The code to declare this variable would be ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
22
The strings.xml file is located in the res/____ folder.
A) drawable-hdpi
C) layout
B) drawable-mdpi
D) values
A) drawable-hdpi
C) layout
B) drawable-mdpi
D) values
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
23
The intent action ____ opens a Web browser on the Android.
A) ACTION_VIEW
C) HTTP_VIEW
B) BROWSE_VIEW
D) WEB_VIEW
A) ACTION_VIEW
C) HTTP_VIEW
B) BROWSE_VIEW
D) WEB_VIEW
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
24
The code to access the fifth element of an array called names is ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
25
A generic layout that displays checkboxes is ____.
A) boxed_list_item
C) list_item_checked
B) checked_list_item
D) simple_list_item_checked
A) boxed_list_item
C) list_item_checked
B) checked_list_item
D) simple_list_item_checked
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
26
URL stands for ____.
A) Uniform Resource Locator
C) Unknown Resource Leash
B) Universal Resource Locator
D) Upstream Responsibility Lock
A) Uniform Resource Locator
C) Unknown Resource Leash
B) Universal Resource Locator
D) Upstream Responsibility Lock
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
27
When a list item is selected, its ____ is passed to the executing code.
A) bytecode
C) position
B) name
D) signature
A) bytecode
C) position
B) name
D) signature
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
28
To refer to an icon called "myIcon. png'' in the manifest file, the correct reference is android:icon="____".
A) @drawable/myIcon
C) drawable-hdpi/myIcon
B) @dpi/myIcon
D) myIcon
A) @drawable/myIcon
C) drawable-hdpi/myIcon
B) @dpi/myIcon
D) myIcon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
29
The code to declare and initialize an array (in one statement) called fruit that holds the strings "Apple", "Mango", and "Pear", in that order, is _____________________________________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
30
The ____ is not supported in Android.
A) Firefox
C) Opera
B) Internet Explorer
D) Skyfire
A) Firefox
C) Opera
B) Internet Explorer
D) Skyfire
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
31
If no matching case statement is found, the ____ statement, if it exists, is executed.
A) default
C) preferred
B) finally
D) try
A) default
C) preferred
B) finally
D) try
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
32
In an ImageView manifest element, the property that refers to the image file to display is android:____.
A) id
C) layout_marginTop
B) layout_height
D) src
A) id
C) layout_marginTop
B) layout_height
D) src
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
33
The options inside a switch statement are enclosed between ____.
A) [ and ]
C) | and |
B) { and }
D) begin and end
A) [ and ]
C) | and |
B) { and }
D) begin and end
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
34
Each item in the array is referenced using a(n) ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
35
Each individual item in an array is called a(n) ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
36
The ____ statement allows you to choose from many statements based on an integer or single character input.
A) choose
C) select
B) option
D) switch
A) choose
C) select
B) option
D) switch
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
37
When opening a Web site with an intent, the last argument is a(n) ____.
A) image
C) URI
B) string
D) URL
A) image
C) URI
B) string
D) URL
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
38
Apps can talk to each other very simply using ____.
A) activities
C) intents
B) classes
D) values
A) activities
C) intents
B) classes
D) values
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
39
To refer to the elements of an array called "travel" in the manifest, the proper reference is android:text="____".
A) @+id/travel
C) @travel
B) @+travel
D) travel
A) @+id/travel
C) @travel
B) @+travel
D) travel
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
40
The ____ is called when an item in a list is selected.
A) clicked
C) itemWasClicked
B) itemClicked
D) onListItemClick
A) clicked
C) itemWasClicked
B) itemClicked
D) onListItemClick
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
41
The standard generic layout for ListView is ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
42
The type of a ListAdapter that operates on an array of String objects is ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
43
A Web site address may also be called a(n) ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
44
Testing an Android app is called ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
45
The code to declare and initialize an empty array of 10 ints, called "digits", is ______________________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
46
Typically, each case option in a switch statement ends with the keyword ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
47
A browser is launched with Android code using a(n) ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
48
The variable ____________________ determines the String displayed as the title of the app.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
49
In a switch statement, each option must begin with the ____________________ keyword.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
50
URI is short for ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck