Quiz: Deduce the Outputs
Explore how to analyze and deduce outputs from Go functions, reinforcing your skills in recursion, closures, and efficient coding. This quiz prepares you to confidently use Go functions before advancing to arrays and slices.
We'll cover the following...
We'll cover the following...
Choose one correct answer
1.
Which of the following is the true statement?
func DoSomething1(a *A) {
b = a
}
func DoSomething2(a A) {
b = &a
}
A.
DoSomething1 assigns b the value present at a.
B.
DoSomething1 assigns b the adress the same as a.
C.
DoSomething2 assigns b the adress the same as a.
D.
Both A and C
E.
Both B and C
1 / 8
...