QUESTION IMAGE
Question
question 1 consider the following code: is_fruit = \true\ is_vegetable = 0 is_dessert = false what is the data type of is_vegetable? integer string boolean
Step1: Identify data - type of 0
In programming, 0 is a whole number without a fractional part.
Step2: Recall data - type definitions
An integer is a data type that represents whole numbers. A string is a sequence of characters (enclosed in quotes). A boolean represents True or False values. Since 0 is a whole number, its data - type is integer.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
integer