Chapter 5 Android Bootcamp 3rd edition Developer FAQs 1. Typically in a MainActi
ID: 3875692 • Letter: C
Question
Chapter 5 Android Bootcamp 3rd edition
Developer FAQs
1. Typically in a MainActivity.java file, the class extends ActionBarActivity. When the
primary purpose of the class is to display a list, what is the opening MainActivity class
statement?
2. Which Android control displays a vertical listing of items?
3. When does a scroll bar appear in a list?
4. Initialize an array named temps with the integers 22, 56, 38, 30, and 57.
5. Answer the following questions about the following initialized array:
String[]pizzaToppings = new String[10];
a. What is the statement to assign mushrooms to the first array location?
b. What is the statement to assign green peppers to the fourth location in the array?
c. How many toppings can this array hold?
d. Rewrite this statement to initially be assigned the following four toppings only:
extra cheese, black olives, mushrooms, and bacon.
6. Write a line of code that assigns the values Samsung, HTC, Sony, Motorola, and Asus
to the elements in the array phoneBrands.
7. Fix this array statement:
doubles { } driveSize = ["32.0", "64.0", "128.0"]
8. Write two lines of code that assign an array named coding with the items Java, C#,
Python, Visual Basic, and Ruby and display this array as a generic list.
9. Which type of pictures can be used for free fair use without copyright?
10. What does URI stand for?
Explanation / Answer
2)Answer:
List view
Explanation:
ListView displays a vertical listing of items.
3)Answer:
A scroll bar appears in a list when the list exceeds the size of the window.
4)Answer:
int[] temps = {22, 56, 38, 30, 57};
5)Answer:
a)Answer:
pizzaToppings[0] = "mushrooms";
b)Answer:
pizzaToppings[3] = "green peppers";
d)Answer:
String[] pizzaToppings = {"extra cheese", "black olives", "mushrooms", "bacon"}
9)Answer:
public domain
explanation:
Public domain pictures can be used for free fair use without copyright.
10)Answer:
Uniform Resource Identifier
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.