Deck 7: Reveal Displaying Pictures in a Gridview

ملء الشاشة (f)
exit full mode
سؤال
Which of the following is NOT an attribute of a GridView control?

A) leftMargin
B) numColumns
C) columnWidth
D) verticalSpacing
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
What type of control is usually used to select a wallpaper image for the Android device background?

A) GridView
B) ImageViewer
C) MediaPlayer
D) TextView
سؤال
To meet the goal of providing a clean, professional effect with images in an application, Android provides a layout tool called ScrollView.
سؤال
A grid of images is not very useful for selecting wallpaper because of the large number of options.
سؤال
Using controls such as the GridView and Spinner, what binds specific types of data and displays that data in a particular layout?

A) adapter
B) context
C) editor
D) view
سؤال
What is typically used to assign values to a GridView control that has multiple items?

A) array
B) boolean
C) integer
D) String
سؤال
What should you use to declare a variable that cannot be changed?

A) local
B) final
C) temp
D) static
سؤال
Any method that is not declared void must contain a return statement with a corresponding return value.
سؤال
When you add a new class that extends a base class, the method stubs that need implementation are auto-generated.
سؤال
The GridView control, while very useful for displaying images, cannot be customized.
سؤال
What is the first GridView control in a project named by default?

A) control1
B) defaultGallery
C) gridView1
D) theGallery
سؤال
Which of the following variable types can be accessed from multiple methods throughout an application?

A) Static
B) Class-level
C) Local-level
D) Temporary
سؤال
If you wish, you can scale grid images to the full size of the screen.
سؤال
What is used to identify each element in an array?

A) counter
B) index
C) position
D) reference
سؤال
The position argument in the OnItemClick method is a numeric value that holds which quadrant of the screen an item can be found.
سؤال
Which of the following terms defines a rectangular area of the screen that displays an image or text object.

A) Expanse container
B) Layout container
C) Space container
D) View container
سؤال
The GridView control is the only control that monitors for tap or click events.
سؤال
A View represents a piece of the screen area that displays an object.
سؤال
The length of an array is one more than the maximum subscript number.
سؤال
What category of the Palette does the control GridView sit in?

A) Images category
B) Composite category
C) Media category
D) Viewing category
سؤال
Which method provides a number of arguments to its registered listeners?

A) tapped method
B) clicked method
C) onTap method
D) onItemClick method
سؤال
The code to reference an image called panda . P n g is ____________________.
سؤال
Which is a common aspect ratio?

A) 4:3
B) 3:4
C) 16:8
D) 10:6
سؤال
Where do you specify a method's return type?

A) in its body
B) in its declaration
C) in its last line
D) in its name
سؤال
When the ImageAdapter class is called, which method determines how many pictures should be displayed in the GridView control?

A) count() method
B) getCount() method
C) getNumber() method
D) getSize() method
سؤال
Which of the following terms best describes 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
سؤال
Which attribute in XML code can be used to place an image on the surface of a Button control?

A) a ndroid:image
B) image:src
C) image:path
D) android:src
سؤال
Which of the following is the scaling option that scales an image to fit the View type?

A) ImageView.ScaleType. CENTER
B) ImageView.ScaleType. CENTER_CROP
C) ImageView.ScaleType. FIT_SIZE
D) ImageView.ScaleType. FIT_XY
سؤال
Which of the following variables is used to load and access resources for the application?

A) App variable
B) Context variable
C) Program variable
D) System variable
سؤال
The method to set an image to an ImageView control is ____________________.
سؤال
What is used to initialize the instance variables of an object?

A) reference
B) class
C) constructor
D) method
سؤال
In Android programs, you can place the ____________________ method in another method that is triggered only when the user touches the GridView control.
سؤال
What is the return type of a method that returns nothing?

A) double
B) int
C) null
D) void
سؤال
Which argument of the onItemClick method determines the row of the selected item?

A) id
B) view
C) position
D) parent
سؤال
Which statement do you place at the end of a method if the method sends a value to the statement that called it?

A) public
B) default
C) return
D) case
سؤال
Which argument of the onItemClick method holds the value of the array element in the View adapter?

A) parent
B) view
C) position
D) id
سؤال
Which of the following is true about toast notifications?

A) They never receive focus
B) They are of fixed duration
C) They are limited to twenty characters
D) They message cannot contain a variable
سؤال
The ____________________ method provides the data model for the GridView layout.
سؤال
Which scaling option does not scale or change the aspect ratio of an image?

A) ImageView.ScaleType. CENTER
B) ImageView.ScaleType. CENTER_CROP
C) ImageView.ScaleType. FIT_SIZE
D) ImageView.ScaleType. FIT_XY
سؤال
Using a(n) __________________ control, users can quickly scroll through a listing of thumbnail-sized pictures.
سؤال
A(n) ____________ container can include layouts such as GridView, RadioGroup, and ListView.
سؤال
The ______________________ ScaleType option centers the image within the View type and scales it uniformly.
سؤال
The code to resize an image variable pic to 275x200 is ____________________.
سؤال
A(n) ____________________ is a series of statements that perform some repeated task.
سؤال
The most powerful method in the ImageAdapter class is the ____________________ method.
سؤال
The code to find the size of an array called fruit is ____________________.
سؤال
________________ can change the displayed size of an image and keeps or changes the aspect ratio of the image within the ImageView control.
سؤال
To use a toast message within an onItemClick method, you must replace MainActivity.this with a Context class called _________________.
سؤال
The method to scale an ImageView a certain way is ____________________.
سؤال
A(n) ____________________ is used to initialize the instance variables of an object.
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/50
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 7: Reveal Displaying Pictures in a Gridview
1
Which of the following is NOT an attribute of a GridView control?

A) leftMargin
B) numColumns
C) columnWidth
D) verticalSpacing
A
2
What type of control is usually used to select a wallpaper image for the Android device background?

A) GridView
B) ImageViewer
C) MediaPlayer
D) TextView
A
3
To meet the goal of providing a clean, professional effect with images in an application, Android provides a layout tool called ScrollView.
False
4
A grid of images is not very useful for selecting wallpaper because of the large number of options.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
5
Using controls such as the GridView and Spinner, what 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
6
What is typically used to assign values to a GridView control that has multiple items?

A) array
B) boolean
C) integer
D) String
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
7
What should you use to declare a variable that cannot be changed?

A) local
B) final
C) temp
D) static
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
8
Any method that is not declared void must contain a return statement with a corresponding return value.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
9
When you add a new class that extends a base class, the method stubs that need implementation are auto-generated.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
10
The GridView control, while very useful for displaying images, cannot be customized.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
11
What is the first GridView control in a project named by default?

A) control1
B) defaultGallery
C) gridView1
D) theGallery
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
12
Which of the following variable types can be accessed from multiple methods throughout an application?

A) Static
B) Class-level
C) Local-level
D) Temporary
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
13
If you wish, you can scale grid images to the full size of the screen.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
14
What is used to identify each element in an array?

A) counter
B) index
C) position
D) reference
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
15
The position argument in the OnItemClick method is a numeric value that holds which quadrant of the screen an item can be found.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
16
Which of the following terms defines a rectangular area of the screen that displays an image or text object.

A) Expanse container
B) Layout container
C) Space container
D) View container
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
17
The GridView control is the only control that monitors for tap or click events.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
18
A View represents a piece of the screen area that displays an object.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
19
The length of an array is one more than the maximum subscript number.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
20
What category of the Palette does the control GridView sit in?

A) Images category
B) Composite category
C) Media category
D) Viewing category
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
21
Which method provides a number of arguments to its registered listeners?

A) tapped method
B) clicked method
C) onTap method
D) onItemClick method
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
22
The code to reference an image called panda . P n g is ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
23
Which is a common aspect ratio?

A) 4:3
B) 3:4
C) 16:8
D) 10:6
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
24
Where do you specify a method's return type?

A) in its body
B) in its declaration
C) in its last line
D) in its name
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
25
When the ImageAdapter class is called, which method determines how many pictures should be displayed in the GridView control?

A) count() method
B) getCount() method
C) getNumber() method
D) getSize() method
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
26
Which of the following terms best describes 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
27
Which attribute in XML code can be used to place an image on the surface of a Button control?

A) a ndroid:image
B) image:src
C) image:path
D) android:src
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
28
Which of the following is the scaling option that scales an image to fit the View type?

A) ImageView.ScaleType. CENTER
B) ImageView.ScaleType. CENTER_CROP
C) ImageView.ScaleType. FIT_SIZE
D) ImageView.ScaleType. FIT_XY
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
29
Which of the following variables is used to load and access resources for the application?

A) App variable
B) Context variable
C) Program variable
D) System variable
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
30
The method to set an image to an ImageView control is ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
31
What is used to initialize the instance variables of an object?

A) reference
B) class
C) constructor
D) method
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
32
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
33
What is the return type of a method that returns nothing?

A) double
B) int
C) null
D) void
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
34
Which argument of the onItemClick method determines the row of the selected item?

A) id
B) view
C) position
D) parent
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
35
Which statement do you place at the end of a method if the method sends a value to the statement that called it?

A) public
B) default
C) return
D) case
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
36
Which argument of the onItemClick method holds the value of the array element in the View adapter?

A) parent
B) view
C) position
D) id
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
37
Which of the following is true about toast notifications?

A) They never receive focus
B) They are of fixed duration
C) They are limited to twenty characters
D) They message cannot contain a variable
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
38
The ____________________ method provides the data model for the GridView layout.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
39
Which scaling option does not scale or change the aspect ratio of an image?

A) ImageView.ScaleType. CENTER
B) ImageView.ScaleType. CENTER_CROP
C) ImageView.ScaleType. FIT_SIZE
D) ImageView.ScaleType. FIT_XY
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
40
Using a(n) __________________ control, users can quickly scroll through a listing of thumbnail-sized pictures.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
41
A(n) ____________ container can include layouts such as GridView, RadioGroup, and ListView.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
42
The ______________________ ScaleType option centers the image within the View type and scales it uniformly.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
43
The code to resize an image variable pic to 275x200 is ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
44
A(n) ____________________ is a series of statements that perform some repeated task.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
45
The most powerful method in the ImageAdapter class is the ____________________ method.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
46
The code to find the size of an array called fruit is ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
47
________________ can change the displayed size of an image and keeps or changes the aspect ratio of the image within the ImageView control.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
48
To use a toast message within an onItemClick method, you must replace MainActivity.this with a Context class called _________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
49
The method to scale an ImageView a certain way is ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
50
A(n) ____________________ is used to initialize the instance variables of an object.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.