Question

Mobile Application Development questions Match the component type to the example of that component type.   ...

Mobile Application Development questions

Match the component type to the example of that component type.

      -       A.       B.       C.       D.       E.       F.       G.   

A Tip Calculator

      -       A.       B.       C.       D.       E.       F.       G.   

Where’s My App, which waits for a text message to be received and responds with the device’s location

      -       A.       B.       C.       D.       E.       F.       G.   

A background music player, which runs while the user interacts with other activities

      -       A.       B.       C.       D.       E.       F.       G.   

The Contacts app, which makes the user’s contact list available to other apps

A.

Activity

B.

Regular App

C.

Broadcast Receiver

D.

Broadcast Sender

E.

Content Receiver

F.

Content Provider

G.

Services

QUESTION 22

The Timer class method schedule uses which of the following units for its delay value?

Hours

Minutes

Seconds

Milliseconds

QUESTION 23

What interface is included in the following code?

public class DotSmasherCanvas extends View implements OnTouchListener {
   int dotX, dotY, score;
   //Other code here
}

class DotSmasherCanvas

class View

class OnTouchListener

class int

QUESTION 24

How do you tag objects for garbage collection?

Pass the object reference to a built-in garbage collection method.

Set the object references to null.

Both A and B

Neither A nor B

QUESTION 25

Class instance variables must be declared at the beginning of the class definition.

True

False

2 points   

QUESTION 26

One feature of the Eclipse editor is showing or hiding blocks of code, which makes it easier to scroll through source code. Which of the following is the correct name for this in Eclipse?

Code folding

Section hiding

Expand/Collapse

Open/close

QUESTION 27

In the following onOptionsItemSelected() method, which id is most likely associated with starting a new session?

public boolean onOptionsItemSelected(MenuItem item) {
   switch (item.getItemId()) {
      case R.id.item1:
        new();
        return true;
      case R.id.item2:
        open();
        return true;
      case R.id.item3:
        close();
        return true;
      case R.id.item4:
        info();
        return true;
      default:
        return super.onOptionsItemSelected(item);
   }
}

item1

item2

item4

none, it will be handled by the default case

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Please Note: You have posted more than one Question. I have answered the four questions. Please Post Separate for other Questions.

QUESTION 22

The Timer class method schedule uses which of the following units for its delay value?

Hours

Minutes

Seconds

Milliseconds

Answer)

In the Time class method the schedule uses

-Milliseconds-

for its delay value.

delay value is always calculated in milliseconds.

QUESTION 23

What interface is included in the following code?

public class DotSmasherCanvas extends View implements OnTouchListener {

   int dotX, dotY, score;

   //Other code here

}

class DotSmasherCanvas

class View

class OnTouchListener

class int

Answer)

OnTouchListener is the interface which is included in the following code.

implements OnTouchListener is the statement where it implements the interface OnTouchListener.

QUESTION 24

How do you tag objects for garbage collection?

Pass the object reference to a built-in garbage collection method.

Set the object references to null.

Both A and B

Neither A nor B

Answer)

Tag objects for garbage collection by;

Set the object references to null.

We nullify the object reference to make it eligible for garbage collection.

QUESTION 25

Class instance variables must be declared at the beginning of the class definition.

True

False

Answer)

False

Instance variables can be declared anywhere at class level in the class definition of the object.

Add a comment
Know the answer?
Add Answer to:
Mobile Application Development questions Match the component type to the example of that component type.   ...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • QUESTION 21 In the following onOptionsItemSelected() method, which id is most likely associated with accessing the...

    QUESTION 21 In the following onOptionsItemSelected() method, which id is most likely associated with accessing the application’s help page? public boolean onOptionsItemSelected(MenuItem item) {    switch (item.getItemId()) {       case R.id.item1:         new();         return true;       case R.id.item2:         open();         return true;       case R.id.item3:         close();         return true;       case R.id.item4:         info();         return true;       default:         return super.onOptionsItemSelected(item);    } } item1 item2 item4 none, it will be handled by the default case 2 points    QUESTION 22 In the following onOptionsItemSelected()...

  • QUESTION 11 Which of the following could never be found in the file NewClass.java? public NewClass()...

    QUESTION 11 Which of the following could never be found in the file NewClass.java? public NewClass() { message = “Hello World!”; } public String title = “New Class”; public void doSomething() { doSomethingElse(); } public OtherClass() { message = “Hello, World! Good to see you again!”; } 2 points    QUESTION 12 Match the terms to the corresponding definition below.       -       A.       B.       C.       D.       E.      ...

  • QUESTION 13 A constructor is the same as any other method definition EXCEPT for what? A...

    QUESTION 13 A constructor is the same as any other method definition EXCEPT for what? A constructor includes an optional argument list. A constructor includes an optional access modifier, usually public. A constructor includes a return type. A constructor places arguments within parentheses (). 2 points    QUESTION 14 Using the asterisk wildcard (e.g. import com.packageName.*) will include all of the classes within packageName, even if they aren’t used. True False 2 points    QUESTION 15 The Random class gives...

  • Which of the following are ways to declare a new data type in C++? more than...

    Which of the following are ways to declare a new data type in C++? more than 1 choice is accepted A. There is no need to declare the data type in C++ B. Using the new keyword C. Create an alias using typedef D. Create a new type by using class or struct. E. Create an extension of an existing type using inheritance. F. Using the auto keyword QUESTION 6 When an object is copied by assigning each of the...

  • Hi all, I'm studying for a test for my Java class that coming up on Tuesday,...

    Hi all, I'm studying for a test for my Java class that coming up on Tuesday, and I would love it if someone could look over my answer. Can someone give me some feedback on the wrong one I get wrong? I really need to get it right for the upcoming test. Here my prep test: Which one statement is true" Question1 All objects that are eligible for garbage collection will be removed from the heap by the garbage collector....

  • tem Type bool result faise i result true What method is this? a) pop0 b) peekO...

    tem Type bool result faise i result true What method is this? a) pop0 b) peekO c) default constructor d) copy constructor template < class Item Type> ItemType ArrayStack<item Type>:doSomething) const assert (lisEmptyO): return items[top]: What method is this? e) pop) f) peek) g) default constructor h) copy constructor C.Given this graphic of an array based stack. b) top i tems 2 o 20 30 MAX STACK-1 Array indices What would be returned by a call to the method peek0)...

  • The following questions relate to IP addresses. Question 4 The following questions relate to IP addresses...

    The following questions relate to IP addresses. Question 4 The following questions relate to IP addresses Question 4 Part (a) Homework Unanswered Match the IP addresses on the left with their class on the right. Premise ResponseDrag and drop to match 159.255.16.0 A Class D 2 9.10.11.12/22 → -B Class C 3 228.199.209.254 → C Class A 4 15.208.256.20 D CIDR -E Invalid F Class E G Class B Submit Question 4 Part (b) Homework Unanswered What is the broadcast...

  • Question 1 2 pts The preprocessor executes after the compiler. False True Question 2 2 pts...

    Question 1 2 pts The preprocessor executes after the compiler. False True Question 2 2 pts What code is human-readable and follows the standards of a programming language? Secret code Source code Key code None of these Machine code Question 3 2 pts What is the symbol that marks the beginning of a one line comment? Question 1 2 pts The preprocessor executes after the compiler. True False Question 5 2 pts A statement that may be used to stop...

  • 17. Given the following definition of function £, what does the expression "t (1: 2: 3]::" return? let rec f listl match listl with 1 I head::rest -> head f resti b. 6 c. 120 d. 123 456...

    17. Given the following definition of function £, what does the expression "t (1: 2: 3]::" return? let rec f listl match listl with 1 I head::rest -> head f resti b. 6 c. 120 d. 123 456 e. g. 14; 5; 6] h. (6; 5; 4] i. Error message j. None of the above 18. Which of the following is the correct meaning of the C declaration "double (*a [n]) "? a is an array of n pointers to...

  • Overload a relational operator for the Job class: Assume that this operator is not overloaded for...

    Overload a relational operator for the Job class: Assume that this operator is not overloaded for the Salary class. a) Write how the function will be declared in your code. b) Write an external function definition (not inside the class). solve it in C++10 to solve this you nedd question number 1. Create a composition between the classes Job and Salary. Class Salary a. data member:    1. money b. constructors:    1. default constructor    2. user defined constructor with a parameter...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
Active Questions
ADVERTISEMENT