Ask Question
22 April, 15:31

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.

+1
Answers (1)
  1. 22 April, 15:49
    0
    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

    A variable declaration refers to specifying its type and name 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. 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
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “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 ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers