Go Online Quiz



Following quiz provides Multiple Choice Questions (MCQs) related to Go. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.

Questions and Answers

Q 3 - Which of the following operator checks if the values of two operands are equal or not in Go?

A - !=

B - <>

C - eq

D - None of the above.

Answer : A

Explanation

!= − Checks if the values of two operands are equal or not, if values are not equal then condition becomes true.

Q 4 - Method are special functions with a receiver in Go.

A - true

B - false

Answer : A

Explanation

Yes! Method are special functions with a receiver.

Q 6 - Which of the following function can be used to copy a slice to another slice in Go?

A - append()

B - copy()

C - resize()

D - None of the above.

Answer : B

Explanation

Using copy() function, contents of a source slice are copied to destination slice.

Q 7 - Which of the following transfers control to the labeled statement in Go?

A - break

B - continue

C - goto

D - None of the above.

Answer : C

Explanation

goto transfers control to the labeled statement.

Q 8 - Go supports method overloading.

A - true

B - false

Answer : B

Explanation

No support for method overloading.

Q 9 - In Go language, Structure types are derived types.

A - false

B - true

Answer : B

Explanation

Yes! Structure types are derived types.

Q 10 - An lvalue may appear as either the left-hand or right-hand side of an assignment.

A - false

B - true

Answer : B

Explanation

An lvalue may appear as either the left-hand or right-hand side of an assignment.

go_questions_answers.htm
Advertisements