Which of the following statements is not true? Group of answer choices

A. A Boolean variable can hold any integer value.
B. When a variable is declared, its type should be specified.
C. A string variable can hold a numeric value but it cannot be used in a mathematical operation.
D. The variable name I_Love_to_eat_pizza is a valid variable name.

Respuesta :

ijeggs

Answer:

A

Explanation:

Option A is not true because a Boolean variable type can hold one of two values only that is  (true/True or false/False).

All the other options given in the question are correct because

  1. A variable declaration refers to specifying its type and name
  2. If string variables are assigned a numeric values which is legal provided the values are enclosed in quaotes( " "), trying to carryout a mathematical operation like addition will result in string concatenation.
  3. The Variable name I_Love_to_eat_pizza is legal because it contains no special characters, doesn't start with a number and its not a reserved word in any language
ACCESS MORE
EDU ACCESS