Exercise: Deduce the Outputs

In this lesson, your concepts will be evaluated through a quiz.

Choose one correct answer.

1

What will the following function return for x=2 and y=5?

func isGreater(x, y int) bool {
  if x > y {
  	return true
  }
  	return false
}
A)

True

B)

False

C)

None of the above

Question 1 of 150 attempted

Get hands-on with 1200+ tech skills courses.