Respuesta :
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