Multiple choice general knowledge science & technology

The built-in library function isalnum( ) is testing to determine if the argument is?

  1. one of "all" numbers available from the keyboard.

  2. an alphabet character.

  3. an ASCII character.

  4. an alphanumeric.

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The built-in library function isalnum() tests whether its argument is an alphanumeric character (either a letter A-Z or a digit 0-9). It returns true if the character is either alphabetic or numeric. This is different from isalpha() which only checks for alphabetic characters, or isdigit() which only checks for numeric characters.