Ask Question
16 September, 07:14

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.

+5
Answers (1)
  1. 16 September, 07:41
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers