Exam 2: Model View Controller, Gui Components, Events

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

The XML attribute that we use to give an id to a View is __________________.

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

android:id

Which attribute do we use to specify the margin above a View?

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

C

In order to register a TextWatcher on a GUI component, we call the ____________ method.

Free
(Short Answer)
4.7/5
(46)
Correct Answer:
Verified

addTextChangedListener

A style can inherit from another style.

(True/False)
4.8/5
(34)

The Model is the middleman between the __________________ and the Controller.

(Short Answer)
4.9/5
(34)

The superclass for layout classes is __________________.

(Short Answer)
4.8/5
(42)

A CharSequence can be converted to a String by calling its toString method.

(True/False)
4.9/5
(50)

The class that renders a keyboard is ____________.

(Short Answer)
4.8/5
(37)

It is possible to specify the transparency of a View.

(True/False)
4.7/5
(36)

Two constants that can be used as values of android:layout_width and android:layout_height are ____________ and ____________.

(Short Answer)
4.8/5
(29)

If we want to handle persistent data in an app, we can use the Model View Controller ____________ architecture.

(Short Answer)
4.9/5
(33)

When a button is clicked on by the user, we want the method foo to execute. How do we do it (inside the Button element of the activity_main.xml file)?

(Multiple Choice)
4.9/5
(38)

In order to retrieve a View that has been given an id, we use the ____________ method.

(Short Answer)
4.9/5
(33)

A Model can be used only in Android apps, not in other Java applications.

(True/False)
4.8/5
(54)

To position Views relative to each other, we can use a(n) ____________ (layout manager).

(Short Answer)
4.7/5
(38)

Which class is not a subclass of Button?

(Multiple Choice)
4.7/5
(32)

What is the correct definition of an item inside a style (assuming that the color abc is correctly defined in colors.xml)?

(Multiple Choice)
4.9/5
(33)

Which class enables the user to enter text?

(Multiple Choice)
4.7/5
(42)

The __________________ interface provides three methods that are called when the text changes inside a TextView.

(Short Answer)
4.9/5
(35)

Button is a subclass of TextView.

(True/False)
4.8/5
(37)
close modal

Filters

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