Exam 5: Menus, Sqlite

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

We place the icon files for the menu in the ____________ directory.

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

drawable

The setOnCheckedChangeListener method of the RadioGroup class registers a listener on this ____________.

Free
(Short Answer)
4.8/5
(36)
Correct Answer:
Verified

RadioGroup

A Toast is a temporary ____________ that can be used to provide visual feedback.

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

popup

The onCheckedChange method of the RadioGroup.OnCheckedChangeListener interface has the following API: Void onCheckedChanged( RadioGroup group, int a ) What does group represent?

(Multiple Choice)
4.7/5
(41)

The XML element for an item in a menu is __________________.

(Short Answer)
4.9/5
(39)

SQLite is available on Android devices.

(True/False)
4.9/5
(40)

The Blank Activity template automatically generates an XML file for a menu.

(True/False)
4.8/5
(42)

LENGTH_SHORT is a constant of the Toast class that can be used to specify the duration of a Toast. What is the other constant that we can use to specify the duration of a Toast?

(Multiple Choice)
4.7/5
(44)

What method of the SQLiteOpenHelper class do we use to create or open a database on which we can perform operations?

(Multiple Choice)
4.9/5
(33)

We have three activities in an app: MainActivity, InsertActivity, and DeleteActivity. How many activity elements should we have in the AndroidManifest.xml file?

(Multiple Choice)
4.8/5
(40)

The __________________ class encapsulates a table returned by a select SQL query.

(Short Answer)
4.8/5
(39)

After we have created a Toast, we need to call the __________________ method so that the Toast is visible.

(Short Answer)
4.9/5
(41)

We can use the following method of the Toast class to create a Toast: static Toast makeText( Context context, CharSequence text, int d ) The third parameter represents the duration or length of the Toast.

(True/False)
4.8/5
(29)

The XML element for a menu is __________________.

(Short Answer)
4.7/5
(43)

The ____________ class includes methods to execute SQL statements.

(Short Answer)
4.8/5
(29)

What encapsulates a menu item?

(Multiple Choice)
4.7/5
(41)

We created our own icon, nice.p n g, and placed it in the drawable directory; we can access it using the expression ____________.

(Short Answer)
4.9/5
(34)

The XML attribute that we use to specify an icon for a menu item is __________________.

(Short Answer)
4.7/5
(32)

We want to code a View, but we do not know how many radio buttons are in the View because we are retrieving the data from a database. We should code that View programmatically, not using an XML file.

(True/False)
4.7/5
(40)

When extending SQLiteOpenHelper, what methods must we override?

(Multiple Choice)
4.8/5
(31)
Showing 1 - 20 of 21
close modal

Filters

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