Quiz: Interacting with Users

Test your knowledge of Go's features for interacting with users.

1

How do you export a type or function in Go so callers can use them outside of the package where they were defined?

A)

By defining them with the public keyword

B)

You can’t control that in Go.

C)

By defining them with an uppercase character as the first character of its name

D)

By defining them in an exported package

Question 1 of 50 attempted

Get hands-on with 1200+ tech skills courses.