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:
Verified
Q35: Inside a method, a variable's declaration statement
Q36: A common operation performed on strings is
Q37: A(n) _ specifies a variable's name and
Q38: Which one of the following is the
Q39: When an application is running, the control
Q41: Which one of the following statements declares
Q42: Which one of the following assignment statements
Q43: When declaring multiple variables with one statement,
Q44: You cannot declare two variables with the
Q45: The process of dropping a real number's
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents