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

Choose the Best Option

Click any option to instantly check if you're correct.

  • B 1
  • C True
  • D False
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. ✅

  • False and True (capitalized) are not valid in Java.

  • 0 is an integer, not boolean.

Answer: false

Share This Question

Challenge a friend or share with your study group.