nerdexam
National_Instruments

200-500 · Question #227

Which of the following functions can be used to match a string against a whitelist mask of allowed characters?

The correct answer is C. strspn(). See the full explanation below for the reasoning.

Question

Which of the following functions can be used to match a string against a whitelist mask of allowed characters?

Options

  • Astr_match()
  • Bsubstr_replace()
  • Cstrspn()
  • Dstrtr()

How the community answered

(54 responses)
  • A
    7% (4)
  • B
    13% (7)
  • C
    76% (41)
  • D
    4% (2)

Community Discussion

No community discussion yet for this question.

Full 200-500 Practice