X. Boolean data type is used to test a particular condition i.e. true or false.
Which of the following is a correct representation:
a. boolean m=true
b. boolean m=’true’
c. boolean m= “true”
d. none
Answers
Answered by
1
Keywords are never considered as strings. They are reserved words which is why you can't use them as a variable.
Hence option a) Boolean m = true is the correct answer.
The other options have " " symbols which is not true. We cannot consider keywords as strings.
Similar questions