Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to print a message about testing importance.
Go
package main import "fmt" func main() { fmt.Println("Testing is important because it helps to [1] bugs early.") }
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing words like 'ignore' or 'hide' which do not fit the purpose of testing.
✗ Incorrect
The word detect fits best because testing helps find bugs early.
2fill in blank
mediumComplete the code to explain why testing saves time.
Go
package main import "fmt" func main() { fmt.Println("Testing saves time by [1] costly fixes later.") }
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Selecting words that imply causing or ignoring problems.
✗ Incorrect
Preventing costly fixes is the main benefit of testing early.
3fill in blank
hardComplete the code to print why testing improves code quality.
Go
package main import "fmt" func main() { fmt.Println("Testing improves code [1] by catching errors.") }
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing unrelated words like speed or length.
✗ Incorrect
The correct word is quality because testing makes code better.
4fill in blank
hardFill both blanks to complete the sentence about testing benefits.
Go
package main import "fmt" func main() { fmt.Println("Testing helps to [1] bugs and [2] software reliability.") }
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using words that imply causing problems instead of fixing them.
✗ Incorrect
Testing helps to find bugs and increase software reliability.
5fill in blank
hardFill all three blanks to explain why testing is required.
Go
package main import "fmt" func main() { fmt.Println("Testing [1] bugs, [2] code quality, and [3] confidence in software.") }
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'creates' or 'hides' bugs which is wrong.
✗ Incorrect
Testing finds bugs, improves code quality, and builds confidence in software.