Solved

What Is Wrong with the Following Code Snippet

Question 37

Multiple Choice

What is wrong with the following code snippet?
Int size = 42;
Cost = 9.99;
System.out.println("size = " + size) ;
System.out.println(" cost = " + cost) ;


A) The code snippet uses a variable that has not yet been initialized.
B) The code snippet uses a variable that has not been declared.
C) The code snippet attempts to assign a decimal value to an integer variable.
D) The code snippet attempts to assign an integer value to a decimal variable.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions