Quiz: Deduce the Outputs

In this lesson your concepts will be evaluated through a quiz.

Choose one correct answer.

1

What is the output of the following code snippet?

capitals := map[string] string {"France":"Paris", "Italy":"Rome", "Japan":"Tokyo" }
fmt.Println(capitals["Tokyo"])
fmt.Println(capitals["Italy"])
fmt.Println(capitals["Paris"])
A)

Rome

B)

Japan

France

C)

Compiler Error

D)

Japan

Rome

France

Question 1 of 40 attempted

Get hands-on with 1200+ tech skills courses.