Ask Question
17 May, 12:16

Which statement is true? Group of answer choices Variables cannot be assigned and declared in the same statement Variable names must contain at least one dollar sign Variable names can be no more than 8 characters long It is incorrect to initialize a string variable with a number

+3
Answers (1)
  1. 17 May, 15:15
    0
    Complete Question:

    Which statement is true? Group of answer choices

    A. Variables cannot be assigned and declared in the same statement

    B. Variable names must contain at least one dollar sign

    C. Variable names can be no more than 8 characters long

    D. It is incorrect to initialize a string variable with a number

    Answer:

    D. It is incorrect to initialize a string variable with a number

    Explanation:

    Options A-C are not correct Variables can be declared and assigned values on same statement like this int a = 5; Variable names must not contain the dollar sign as this declaration int num = 0; is legal without a dollar sign Variable names are not restricted to 8 characters long they can be longer In option D if you declare a variable of a particular type, you must assign a value of that type for example int s = "John" is wrong
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Which statement is true? Group of answer choices Variables cannot be assigned and declared in the same statement Variable names must ...” 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