7.4 Character Test

7.4 Character Test

  1. [9] is_upper - Check whether a Character is an Uppercase Letter or not.

  2. [10] is_lower - Check whether a Character is a Lowercase Letter or not.

  3. [11] is_alpha - Check whether a Character is an Alphabet or not.

  4. [12] is_digit - Check whether a Character is a Digit or not.

  5. [13] is_alphanum - Check whether a Character is an Alphanumeric Character or not.

  6. [14] is_vowel - Check whether a Character is a Vowel or not.

    1. 1. Use if-else.

    2. 2. Use switch case.

  7. [15] is_consonant - Check whether a Character is a Consonant or not.

  8. [16] is_xdigit Check if the character is a hexadecimal digit.

  9. [17] is_punct Check if the character is a punctuation character.

  10. [18] is_equal - Test equality of two Characters.

সমাধান

[9] is_upper - Check whether a Character is an Uppercase Letter or not.

[10] is_lower - Check whether a Character is a Lowercase Letter or not.

[11] is_alpha - Check whether a Character is an Alphabet or not.

[12] is_digit - Check whether a Character is a Digit or not.

[13] is_alphanum - Check whether a Character is an Alphanumeric Character or not.

[14] is_vowel - Check whether a Character is a Vowel or not.

[15] is_consonant - Check whether a Character is a Consonant or not.

[16] is_xdigit Check if the character is a hexadecimal digit. (function)

[17] is_punct Check if the character is a punctuation character. (function)

[18] is_equal - Test equality of two Characters.

Last updated