Ask Question

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

+1
Answers (1)
  1. 30 May, 18:57
    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?
Find 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 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