nerdexam
Android

AND-401 · Question #114

Which of the following is true about this code snippet? (Choose two) Intent intent = new Intent(Intent.ACTION_DIAL,Uri.parse("tel:555- 1234")); startActivity(intent);

The correct answer is B. The system will not dial the number without adding permission CALL_PHONE. C. The system will perform an intent resolution to start the proper activity. See the full explanation below for the reasoning.

Question

Which of the following is true about this code snippet? (Choose two) Intent intent = new Intent(Intent.ACTION_DIAL,Uri.parse("tel:555- 1234")); startActivity(intent);

Options

  • AThis is an explicit intent that start the system's dialer.
  • BThe system will not dial the number without adding permission CALL_PHONE.
  • CThe system will perform an intent resolution to start the proper activity.
  • DThe code will not compile.

How the community answered

(24 responses)
  • A
    21% (5)
  • B
    71% (17)
  • D
    8% (2)

Community Discussion

No community discussion yet for this question.

Full AND-401 Practice