nerdexam
Android

AND-401 · Question #108

What does the following code achieve? Intent intent = new Intent(FirstActivity.this, SecondActivity.class); startActivityForResult(intent);

The correct answer is B. Starts a sub-activity. See the full explanation below for the reasoning.

Question

What does the following code achieve? Intent intent = new Intent(FirstActivity.this, SecondActivity.class); startActivityForResult(intent);

Options

  • AStarts a browser activity
  • BStarts a sub-activity
  • CStarts an activity service
  • DSends results to another activity.

How the community answered

(21 responses)
  • A
    5% (1)
  • B
    81% (17)
  • C
    5% (1)
  • D
    10% (2)

Community Discussion

No community discussion yet for this question.

Full AND-401 Practice