4. Within what must a Fragment be hosted?
a. A View class
b. The
c. An Activity class
d. The
c. An Activity class
A Fragment must be hosted within an Activity class. It has its own lifecycle, but it is not a stand-alone component that can exist outside the context of an Activity
You might also like to view...
Which is an INVALID variable name?
A. user_choice B. u5er_choice C. user choice D. __user_choice
Absolute cell references are indicated by the $ symbol
Indicate whether the statement is true or false
Which of the following statements is true?
a. When you drive a car, pressing its gas pedal sends a message to the car to perform a task—that is, to go faster. b. You send messages to an object; each message is implemented as a method call that tells a method of the object to perform its task. c. A program might call a bank-account object’s deposit method to increase the account’s balance. d. All of the above statements are true.
The Graphics class is a(n) ____________ class.
a. discrete b. concrete c. abstract d. none of the above