nerdexam
National_Instruments

200-500 · Question #11

Which piece of code will return the ASCII value of a character?

The correct answer is B. ord('t'). See the full explanation below for the reasoning.

Question

Which piece of code will return the ASCII value of a character?

Options

  • A(int)'t';
  • Bord('t');
  • Cto_ascii('t');
  • Dchr('t');

How the community answered

(27 responses)
  • A
    7% (2)
  • B
    74% (20)
  • C
    15% (4)
  • D
    4% (1)

Community Discussion

No community discussion yet for this question.

Full 200-500 Practice