Please complete the following questions and upload your writ…

Please complete the following questions and upload your written solutions as a single file. If you are writing on a document or paper different than the provided pdf, please clearly indicate the question number and answer for each question, and include your name. Your work will be graded just as much (if not more) as your final answer. That includes cleanliness, legibility, and organization of argument. Correct answers with little to no work will not be given full credit.   Math_2063___Final_Exam.pdf

Given the following Go program: package mainimport “fmt”type…

Given the following Go program: package mainimport “fmt”type T struct { S string }func (t *T) test(){ if t==nil { fmt.Println(“nil underlying value”) } else { fmt.Println(t.S)   }}type Test interface{ test()}var myTest Testfunc main(){ var t *T myTest = t myTest.test()} Which of the following statements is true about the given program?

Consider the following Go program: package mainimport (    “…

Consider the following Go program: package mainimport (    “fmt”    “time”)func doSomething(s string) {    fmt.Println(s)    time.Sleep(100 * time.Millisecond)}func main() {    letters := []string{“a”, “b”, “c”, “d”, “e”}    for _, s := range letters {        go doSomething(s)    }} The program waits for all of the goroutines in the program to finish and prints out all strings in the letters slice.

Filling the blanks in the Go code block below so that it pro…

Filling the blanks in the Go code block below so that it produces the given expected output: var price int =10fmt.Println(“Price is $”, price)var taxRate float64 = 0.08var tax float64 = fmt.Println(“Tax is $”, tax)var total float64 = fmt.Println(“Total cost is $”, total)var availableFund int =120fmt.Println(availableFund, “dollars available.”)fmt.Println(“Within budget?”, ) Expected output: Price is $ 10 Tax is $ 0.8 Total cost is $ 10.8 120 dollars available. Within budget? true