Which function is used to copy a slice?

  • (x) copy()
  • ( ) cp()
  • ( ) rep()

Which of the following is true about packages in Go?

  • The first line of the program package defines the package name in which a Go program should lie.
  • It is a must statement as Go programs runs in packages.
  • Each package has a path and name associated with it.
  • All of the above
  • None of the above