Solved

Assuming a String Variable Named City Has Already Been Declared

Question 40

Multiple Choice

Assuming a string variable named city has already been declared, which one of the following statements assigns the string literal "Vienna" to the variable?


A) "Vienna" = city;
B) city + "Vienna";
C) city("Vienna") ;
D) city = "Vienna";

Correct Answer:

verifed

Verified

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

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents