Deck 7: Reveal Displaying Pictures in a Gridview

ملء الشاشة (f)
exit full mode
سؤال
The ____ control displays items in a two-dimensional, scrollable grid.

A) Box
B) GridView
C) Swatch
D) Wallpaper
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
The GridView control is a widget that sits in the ____ category of the palette.

A) Images
B) Composite
C) Media
D) Viewing
سؤال
You can only scroll in one direction using a GridView control.
سؤال
When you add a new class that extends a base class, the methods that need implementation are auto-generated.
سؤال
A grid of images is not very useful for selecting wallpaper because of the large number of options.
سؤال
Images are a powerful marketing tool by adding visual appeal to your application.
سؤال
Arrays provide access to data by using a numeric ____ to identify each element in the array.

A) counter
B) index
C) position
D) threshold
سؤال
The length of an array is one more than the maximum subscript number.
سؤال
____ variables can be accessed from anywhere within the Java class in which they are declared.

A) Automatic
B) Class-level
C) Local-level
D) Temporary
سؤال
Typically, a(n) ____ is used to assign values to a GridView control that has multiple items.

A) array
B) boolean
C) integer
D) String
سؤال
If you provide different resolutions of images to the Android system, you will have to manually select the correct resolution for a given system.
سؤال
A(n) ____ container is a rectangular area of the screen that displays an image or text object.

A) Expanse
B) Layout
C) Space
D) View
سؤال
The GridView control is the only control that monitors for click events.
سؤال
If you wish, you can scale grid images to the full size of the screen.
سؤال
If you want to use a Toast notification in an Activity that is the main Activity, you should use the Main.this reference as the correct Context.
سؤال
A View represents a piece of the screen area that displays an object.
سؤال
Using controls such as the GridView and Spinner, a(n) ____ binds specific types of data and displays that data in a particular layout.

A) adapter
B) context
C) editor
D) view
سؤال
Typically you add an ImageView control by dragging the control onto the ____.

A) emulator
B) View
C) Palette
D) XML code
سؤال
The ____ layout tool shows items in a center-locked, horizontally scrolling list.

A) GridView
B) ImageViewer
C) MediaPlayer
D) TextView
سؤال
The first GridView control in a project is named ____ by default.

A) control1
B) defaultGallery
C) gridView1
D) theGallery
سؤال
Users can quickly scroll the image grid by ____________________ their fingers.
سؤال
A(n) ____ variable is used to load and access resources for the application.

A) App
B) Context
C) Program
D) System
سؤال
The ____ statement returns the value from a method.

A) if
B) for
C) return
D) while
سؤال
In the onItemClick method, the variable that holds the position of the View in the Adapter is ____ argument.

A) first
B) second
C) third
D) fourth
سؤال
In the onItemClick method, the variable that holds the actual View that was selected is the ____ argument.

A) first
B) second
C) third
D) fourth
سؤال
The return type of a method that returns nothing is ____.

A) double
B) int
C) String
D) void
سؤال
The code to reference an image called panda. p ng is ____________________.
سؤال
The ____________________ method provides the data model for the GridView layout.
سؤال
You declare a method's return type in its ____ .

A) body
B) declaration
C) last line
D) name
سؤال
The scaling option that scales an image to fit the View type is ImageView.ScaleType. ____.

A) CENTER
B) CENTER_CROP
C) FIT_SIZE
D) FIT_XY
سؤال
The ____ is the fractional relation of the width of an image compared with its height.

A) aspect ratio
B) framing ratio
C) scaling ratio
D) x-to-y ratio
سؤال
The scaling option that does not change the aspect ratio of an image is ImageView.ScaleType. ____.

A) CENTER
B) CENTER_CROP
C) FIT_SIZE
D) FIT_XY
سؤال
In Android programs, you can place the ____________________ method in another method that is triggered only when the user touches the GridView control.
سؤال
The last argument to the onItemClick method determines the row id of the selected item, which is most useful for a ____.

A) GridView
B) ListView
C) Spinner
D) TextView
سؤال
When the ImageAdapter class is called, the ____ method determines how many pictures should be displayed in the GridView control.

A) count()
B) getCount()
C) getNumber()
D) getSize()
سؤال
The method to set an image to an ImageView control is ____________________.
سؤال
The Toast class is part of the android. ____ package.

A) context
B) controls
C) layout
D) widget
سؤال
The ____ method provides a number of arguments to its registered listeners.

A) beenClicked
B) clicked
C) onClick
D) onItemClick
سؤال
A(n) ____ return type indicates that the return type of a method is an integer.

A) char
B) double
C) int
D) number
سؤال
A common aspect ratio is ____.

A) 4:3
B) 3:4
C) 16:8
D) 10:6
سؤال
Keeping the ____________________ means that an image is not distorted from its original ratio of width to height .
سؤال
The code to find the size of an array called bananas is ____________________.
سؤال
A(n) ____________________ is used to initialize the instance variables of an object.
سؤال
The most powerful method in the ImageAdapter class is the ____________________ method.
سؤال
The code to return the length of a String variable called butter is ____________________.
سؤال
The method to scale an ImageView a certain way is ____________________.
سؤال
The Context class is in the ____________________ package.
سؤال
A(n) ____________________ is a series of statements that perform some repeated task.
سؤال
The code to resize an image variable pic to 275x200 is ____________________.
سؤال
To set an image on the surface of a Button control, you can set the ____________________ attribute in the XML code.
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/50
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 7: Reveal Displaying Pictures in a Gridview
1
The ____ control displays items in a two-dimensional, scrollable grid.

A) Box
B) GridView
C) Swatch
D) Wallpaper
B
2
The GridView control is a widget that sits in the ____ category of the palette.

A) Images
B) Composite
C) Media
D) Viewing
B
3
You can only scroll in one direction using a GridView control.
False
4
When you add a new class that extends a base class, the methods that need implementation are auto-generated.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
5
A grid of images is not very useful for selecting wallpaper because of the large number of options.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
6
Images are a powerful marketing tool by adding visual appeal to your application.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
7
Arrays provide access to data by using a numeric ____ to identify each element in the array.

A) counter
B) index
C) position
D) threshold
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
8
The length of an array is one more than the maximum subscript number.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
9
____ variables can be accessed from anywhere within the Java class in which they are declared.

A) Automatic
B) Class-level
C) Local-level
D) Temporary
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
10
Typically, a(n) ____ is used to assign values to a GridView control that has multiple items.

A) array
B) boolean
C) integer
D) String
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
11
If you provide different resolutions of images to the Android system, you will have to manually select the correct resolution for a given system.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
12
A(n) ____ container is a rectangular area of the screen that displays an image or text object.

A) Expanse
B) Layout
C) Space
D) View
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
13
The GridView control is the only control that monitors for click events.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
14
If you wish, you can scale grid images to the full size of the screen.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
15
If you want to use a Toast notification in an Activity that is the main Activity, you should use the Main.this reference as the correct Context.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
16
A View represents a piece of the screen area that displays an object.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
17
Using controls such as the GridView and Spinner, a(n) ____ binds specific types of data and displays that data in a particular layout.

A) adapter
B) context
C) editor
D) view
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
18
Typically you add an ImageView control by dragging the control onto the ____.

A) emulator
B) View
C) Palette
D) XML code
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
19
The ____ layout tool shows items in a center-locked, horizontally scrolling list.

A) GridView
B) ImageViewer
C) MediaPlayer
D) TextView
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
20
The first GridView control in a project is named ____ by default.

A) control1
B) defaultGallery
C) gridView1
D) theGallery
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
21
Users can quickly scroll the image grid by ____________________ their fingers.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
22
A(n) ____ variable is used to load and access resources for the application.

A) App
B) Context
C) Program
D) System
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
23
The ____ statement returns the value from a method.

A) if
B) for
C) return
D) while
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
24
In the onItemClick method, the variable that holds the position of the View in the Adapter is ____ argument.

A) first
B) second
C) third
D) fourth
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
25
In the onItemClick method, the variable that holds the actual View that was selected is the ____ argument.

A) first
B) second
C) third
D) fourth
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
26
The return type of a method that returns nothing is ____.

A) double
B) int
C) String
D) void
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
27
The code to reference an image called panda. p ng is ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
28
The ____________________ method provides the data model for the GridView layout.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
29
You declare a method's return type in its ____ .

A) body
B) declaration
C) last line
D) name
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
30
The scaling option that scales an image to fit the View type is ImageView.ScaleType. ____.

A) CENTER
B) CENTER_CROP
C) FIT_SIZE
D) FIT_XY
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
31
The ____ is the fractional relation of the width of an image compared with its height.

A) aspect ratio
B) framing ratio
C) scaling ratio
D) x-to-y ratio
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
32
The scaling option that does not change the aspect ratio of an image is ImageView.ScaleType. ____.

A) CENTER
B) CENTER_CROP
C) FIT_SIZE
D) FIT_XY
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
33
In Android programs, you can place the ____________________ method in another method that is triggered only when the user touches the GridView control.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
34
The last argument to the onItemClick method determines the row id of the selected item, which is most useful for a ____.

A) GridView
B) ListView
C) Spinner
D) TextView
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
35
When the ImageAdapter class is called, the ____ method determines how many pictures should be displayed in the GridView control.

A) count()
B) getCount()
C) getNumber()
D) getSize()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
36
The method to set an image to an ImageView control is ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
37
The Toast class is part of the android. ____ package.

A) context
B) controls
C) layout
D) widget
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
38
The ____ method provides a number of arguments to its registered listeners.

A) beenClicked
B) clicked
C) onClick
D) onItemClick
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
39
A(n) ____ return type indicates that the return type of a method is an integer.

A) char
B) double
C) int
D) number
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
40
A common aspect ratio is ____.

A) 4:3
B) 3:4
C) 16:8
D) 10:6
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
41
Keeping the ____________________ means that an image is not distorted from its original ratio of width to height .
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
42
The code to find the size of an array called bananas is ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
43
A(n) ____________________ is used to initialize the instance variables of an object.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
44
The most powerful method in the ImageAdapter class is the ____________________ method.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
45
The code to return the length of a String variable called butter is ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
46
The method to scale an ImageView a certain way is ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
47
The Context class is in the ____________________ package.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
48
A(n) ____________________ is a series of statements that perform some repeated task.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
49
The code to resize an image variable pic to 275x200 is ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
50
To set an image on the surface of a Button control, you can set the ____________________ attribute in the XML code.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.