nerdexam
Android

AND-401 · Question #119

Which of the following lines of codes adds zoom controls to a WebView?

The correct answer is A. webView.getSettings().setBuiltInZoomControls(true). See the full explanation below for the reasoning.

Question

Which of the following lines of codes adds zoom controls to a WebView?

Options

  • AwebView.getSettings().setBuiltInZoomControls(true);
  • BwebView.getSettings().setZoomControls(true);
  • CwebView.getZoomSettings().setControls(CONTROLS.enabled);
  • DZoom controls are included by default in WebViews

How the community answered

(36 responses)
  • A
    75% (27)
  • B
    8% (3)
  • C
    14% (5)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full AND-401 Practice