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