go questions

What is an input stream? Any data source that generates contiguous data like Standard Input CORRECT An input from a user The contents of a file The contents of a website 1: That's right. The input str
阅读全文

go Exercises

Exercises Let's exercise with the scanner and maps. Uppercaser Use a scanner to convert the lines to uppercase, and print them. Unique Words Create a program that counts the unique words from an input
阅读全文

go questions

Which one is a correct function declaration? add func(a, b int) {} function run(a int, b int) {} func run(int a, b) {} func run(a, b int) {} CORRECT Which one is the input and result names of the foll
阅读全文

go Function Exercises

Function Exercises Refactor the Game Store to Funcs - Step #1 Remember the game store program from the structs exercises? Now, it's time to refactor it to funcs. Refactor the Game Store to Funcs - Ste
阅读全文

go Type Conversion

Type Conversion Here are 5 exercises for you. You must find the errors and then fix them using the correct type conversions. Convert and Fix #1 Convert and Fix #2 Convert and Fix #3 Convert and Fix #4
阅读全文

go questions

What happens when you assign a variable to another variable? The variables become the same variable Assignee variable gets deleted Variable's value is changed to the assigned variable's value CORRECT
阅读全文

go Assignments

Assignments Assignment means "copying" values. Everything is getting copied in Go. You'll learn more about this afterward. Now, get your feet wet and try some assignment exercises. Make It Blue Variab
阅读全文

go 03-unused-variables

What happens when you don't use a declared variable in the block scope? Nothing, it will work fine It will get removed automatically The program won't compile CORRECT What happens when you don't use a
阅读全文