nerdexam
Microsoft

98-375 · Question #59

Which code fragment sets up a timer that calls a function named "adjust" every second?

The correct answer is B. setInterval(adjust, 1000). See the full explanation below for the reasoning.

Question

Which code fragment sets up a timer that calls a function named "adjust" every second?

Options

  • AsetTimeout(adjust, 1000);
  • BsetInterval(adjust, 1000);
  • CsetInterval(adjust, 1);
  • DsetTimeout(adjust, 1);

How the community answered

(51 responses)
  • A
    4% (2)
  • B
    76% (39)
  • C
    6% (3)
  • D
    14% (7)

Community Discussion

No community discussion yet for this question.

Full 98-375 Practice