Exam 7: Reveal Displaying Pictures in a Gridview

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

The code to find the size of an array called bananas is ____________________.

Free
(Short Answer)
4.9/5
(29)
Correct Answer:
Verified

bananas.lengthbananas.length()

Arrays provide access to data by using a numeric ____ to identify each element in the array.

Free
(Multiple Choice)
4.9/5
(40)
Correct Answer:
Verified

B

Typically, a(n) ____ is used to assign values to a GridView control that has multiple items.

Free
(Multiple Choice)
4.8/5
(24)
Correct Answer:
Verified

A

When you add a new class that extends a base class, the methods that need implementation are auto-generated.

(True/False)
4.8/5
(36)

The GridView control is the only control that monitors for click events.

(True/False)
4.7/5
(29)

Typically you add an ImageView control by dragging the control onto the ____.

(Multiple Choice)
4.9/5
(43)

The ____ is the fractional relation of the width of an image compared with its height.

(Multiple Choice)
4.8/5
(38)

The ____ control displays items in a two-dimensional, scrollable grid.

(Multiple Choice)
4.8/5
(37)

When the ImageAdapter class is called, the ____ method determines how many pictures should be displayed in the GridView control.

(Multiple Choice)
4.9/5
(37)

In Android programs, you can place the ____________________ method in another method that is triggered only when the user touches the GridView control.

(Short Answer)
5.0/5
(29)

You declare a method's return type in its ____ .

(Multiple Choice)
4.9/5
(39)

A(n) ____________________ is used to initialize the instance variables of an object.

(Short Answer)
4.7/5
(43)

The scaling option that scales an image to fit the View type is ImageView.ScaleType. ____.

(Multiple Choice)
4.9/5
(26)

In the onItemClick method, the variable that holds the actual View that was selected is the ____ argument.

(Multiple Choice)
5.0/5
(39)

The scaling option that does not change the aspect ratio of an image is ImageView.ScaleType. ____.

(Multiple Choice)
4.8/5
(30)

If you wish, you can scale grid images to the full size of the screen.

(True/False)
4.8/5
(37)

In the onItemClick method, the variable that holds the position of the View in the Adapter is ____ argument.

(Multiple Choice)
4.7/5
(39)

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.

(True/False)
4.8/5
(39)

A grid of images is not very useful for selecting wallpaper because of the large number of options.

(True/False)
4.9/5
(40)

The first GridView control in a project is named ____ by default.

(Multiple Choice)
4.9/5
(40)
Showing 1 - 20 of 50
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)