1.Declaring a variable is the same as initializing a variable. true false ------
ID: 3761629 • Letter: 1
Question
1.Declaring a variable is the same as initializing a variable.
true
false
---------------------------------------------------------------------
2.An object name that is followed by parentheses represents an array.
true
false
---------------------------------------------------------------------
3.What is the value of returnValue after the following code has been executed?x = "150";y = "100";returnValue= x - y;
150100
B.150
C.You cannot perform a mathematical operation on these values. An error message will be generated
D.50
---------------------------------------------------------------------
4.When you assign a string value to a variable, you must enclose the text in quotation marks
true
false
Explanation / Answer
1.False
Reason : In declaration of variable we only declare variable while During initializing it we declare it with the value given to it.
2. True
3. C.You cannot perform a mathematical operation on these values. An error message will be generated.
Reason : we can not perform a mathematical operation on String.
4. True
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.