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 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 5 - Which of the following is the default value of a global variable in Go?

A - Undefined

B - 0 or nil

C - Not fixed

D - None of the above.

Answer : B

Explanation

Default value of a global variable is 0 type value or nil.

Answer : D

Explanation

All of the above options are correct.

Q 8 - Go programming implementations use a traditional compile and link model to generate executable binaries.

A - false

B - true

Answer : B

Explanation

Go programming implementations use a traditional compile and link model to generate executable binaries.

Q 9 - Dynamic type variable declaration provides assurance to the compiler that there is one variable existing with the given type and name.

A - true

B - false

Answer : B

Explanation

Static type variable declaration provides assurance to the compiler that there is one variable existing with the given type and name.

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