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
阅读全文

go 04-zero-values

Which type's zero value is 0? bool pointer string all numeric types CORRECT Which type's zero value is false? bool CORRECT pointer string all numeric types Which type's zero value is ""? bool pointer
阅读全文

go QUESTIONS: What's a variable?

QUESTIONS: What's a variable? Where does a variable live? Hard Disk Computer Memory - CORRECT CPU What do you use a variable's name for? To be able to access it later - CORRECT It's just a label I don
阅读全文

go 02-declaration

Which statement do you need to use for declaring variables? name int vars string name var name integer var width int CORRECT Which sentence below is correct? You can use a variable before declaring it
阅读全文

go Declare and Print Variables

Declare and Print Variables Warm up. Declare a few variables and get some experience. Get used to the variable declaration syntax. Declare int Declare bool Declare float64 Declare string Declare undec
阅读全文

go questions

Which one below is an integer literal? -42 CORRECT This is an integer literal "Hello" This is a string literal false This is a bool constant 3.14 This is a float literal Which one below is a float lit
阅读全文