Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

QA. Choose the appropriate state of the colorMap. a. {Juliet -> ROSE} b. {Romeo

ID: 3853464 • Letter: Q

Question

QA. Choose the appropriate state of the colorMap.

a. {Juliet -> ROSE}
b. {Romeo -> MIDNIGHT}
c. {Juliet -> ROSE, Romeo -> MIDNIGHT}
d. {} // empty map

a. {Juliet -> ROSE}
b. {Romeo -> MIDNIGHT}
c. {Juliet -> ROSE, Romeo -> MIDNIGHT}
d. {} // empty map

a. {Juliet -> ROSE}
b. {Romeo -> MIDNIGHT}
c. {Juliet -> ROSE, Romeo -> MIDNIGHT}
d. {} // empty map

a. {Juliet -> ROSE}
b. {Romeo -> MIDNIGHT}
c. {Juliet -> ROSE, Romeo -> MIDNIGHT}
d. {} // empty map

Explanation / Answer

Question 1 :

C : {Juliet -> ROSE,Romeo -> MIDNIGHT}

EXPLANATION: Map is an Interface hashmap is an class

2 : Answer

A : { Juliet -> ROSE }

Explanation : previously we inserted value to the Juliet key and now you are trying to assign new value to the same key so this put method adds our new value and it returnd old value

Question 3 :

Answer : B

Question 4 :

Answer : A