Is the highlighted assignment to f in the following code a legal variable assignment?
Module 2 Quiz >>> Is the highlighted assignment to f in the following code a legal variable assignment >>> Functions, Methods, and Interfaces in Go
1.
Question 1
Is the highlighted assignment to f in the following code a legal variable assignment?
1 / 1 point
No
4.
Question 4
Which of the following statements correctly declares a function whose return value is another function which takes a string as an argument and returns an integer?
1 / 1 point
func fA(fB (int) string) func (string) int
func fA(fB func (int) string) {}
func fA(int) string {}
func fA() fB func (string) int{}
2.
Question 2
Which of the following statements correctly declares a function whose argument is another function which takes an integer as an argument and returns a string?
1 / 1 point
func fA(fB (int) string)
func fA(fB func (int) string)
func fA(fB func (int)) string
func fA(fB func (string) int)
6.
Question 6
What symbols are used in a function declaration to indicate that it is a variadic function?