MCQ
Single Best Answer
Not Set
QWhich of the following is the correct default value of a Boolean type? / The default value of a boolean variable is:
ID: #905
Data Types in C Language
5,628 views
Question Info
#905Q ID
Not SetDifficulty
Data Types in C LanguageTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer: Option D
Explanation
False is the correct default value of a Boolean type.
The default value of a boolean variable in Java:
-
In Java, if you declare a boolean instance variable (not local variable) and do not initialize it, its default value is false. ✅
-
FalseandTrue(capitalized) are not valid in Java. -
0is an integer, not boolean.
Answer: false
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic