203k views
1 vote
Which of the following are valid values of the char data type? (Select all that apply)

5
'Toast'
"5"
'2'
'C'
'%'
"B"
X

User Ingham
by
8.1k points

2 Answers

0 votes
2 and c are correct answers
User Daspianist
by
7.8k points
7 votes

Answer:

'2' 'C' '%' are all valid.

Step-by-step explanation:

5 is an integer, Toast, "5" and "B" are also strings. X isn't defined.

User Khurram Ijaz
by
7.2k points