Exam 3: Coding the Gui Programmatically, Layout Managers
Exam 1: Basics of Android: Hello World23 Questions
Exam 2: Model View Controller, Gui Components, Events20 Questions
Exam 3: Coding the Gui Programmatically, Layout Managers20 Questions
Exam 4: Multiple Activities, Passing Data Between Activities, Transitions, Persistent Data22 Questions
Exam 5: Menus, Sqlite21 Questions
Exam 6: Managing the Device Orientation22 Questions
Exam 7: Touches and Swipes22 Questions
Exam 8: Graphics, Animations, Sounds and Gaming27 Questions
Exam 9: Fragments26 Questions
Exam 10: Using Libraries and Their Apis: Speech Recognition and Maps33 Questions
Exam 11: Using the Gps and Location Services21 Questions
Exam 12: Using an Existing App: Taking a Photo and Sending an Email28 Questions
Exam 13: Xml and Content Apps25 Questions
Exam 14: Making an Android Widget35 Questions
Exam 15: In App Advertising25 Questions
Exam 16: Security and Encryption23 Questions
Exam 17: Android Development: Extending Views, Fragments, and Google Maps Permissions127 Questions
Select questions type
What is the only method of the View.OnClickListener interface?
Free
(Multiple Choice)
4.8/5
(43)
Correct Answer:
D
Gravity is in the ____________ package.
Free
(Short Answer)
4.9/5
(33)
Correct Answer:
android.widget
When we call the getSize method of the Display class, its Point parameter gets written too.
Free
(True/False)
4.9/5
(38)
Correct Answer:
True
If B is a public, static, inner class of A, ____________ refers to B.
(Short Answer)
4.9/5
(36)
The View.OnClickListener interface can be implemented to handle a __________________ event on a View.
(Short Answer)
4.7/5
(32)
Adding a Null GUI component to a View will result in a(n) ____________.
(Short Answer)
4.8/5
(40)
The Color class in the android.graphics package is the same as the Color class in the java.XYZ.
(True/False)
4.9/5
(43)
____________ is a layout manager class that organizes GUI components in a grid.
(Short Answer)
4.8/5
(38)
It is possible to retrieve the width of the screen programmatically.
(True/False)
4.8/5
(28)
One of the spec methods of GridLayout has the following API:
Public, static GridLayout.Spec spec( int s1, int s2 )
What do s1 and s2 represent?
(Multiple Choice)
4.9/5
(32)
What method do we use to set the number of rows in a GridLayout?
(Multiple Choice)
4.8/5
(40)
If TicTacToe is the class for the Model and we are inside the Activity class (the Controller), we can use an instance variable of type __________________ to represent the Model.
(Short Answer)
4.8/5
(48)
In order to implement game play inside the Activity class (the Controller), we ____________ methods of the Model.
(Short Answer)
4.9/5
(31)
The getDefaultDisplay method from the WindowManager interface returns a __________________ reference.
(Short Answer)
5.0/5
(31)
A GUI cannot be defined programmatically; we must define it in an XML file.
(True/False)
4.9/5
(35)
We used the GridLayout.Spec class in the chapter. What can we say about Spec?
(Multiple Choice)
4.9/5
(33)
If we want to code the View programmatically and separate the View from the Controller, then we should have an instance variable representing the View inside the Controller so that we can call the methods of the View in order to update it.
(True/False)
4.7/5
(34)
An AlertDialog.Buider constructor has this API:
Public AlertDialog.Buider ( Context context)
Inside an Activity class, when using the constructor, what argument do we pass?
(Multiple Choice)
4.8/5
(36)
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)