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 1 - Does Go support method overloading?

A - yes

B - no

Answer : B

Explanation

No support for method overloading.

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 returns the total number of elements present in a slice?

A - size()

B - len()

C - cap()

D - None of the above.

Answer : B

Explanation

len() function returns the elements presents in the 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 - In Go programming language, Programs are constructed using packages, for efficient management of dependencies?

A - false

B - true

Answer : B

Explanation

Programs are constructed using packages, for efficient management of dependencies.

Q 9 - Go supports generic programming.

A - true

B - false

Answer : B

Explanation

No support for generic programming.

Q 10 - Numeric literals are lvalues and so may not be assigned and can not appear on the left-hand side.

A - true

B - false

Answer : B

Explanation

Numeric literals are rvalues and so may not be assigned and can not appear on the left-hand side.

go_questions_answers.htm
Advertisements