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 - Is Go a case sensitive language?

A - yes

B - no

Answer : A

Explanation

Yes! Go is a case sensitive programming language.

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 local variable in Go?

A - Undefined

B - 0 or nil

C - Not fixed

D - None of the above.

Answer : B

Explanation

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

Answer : D

Explanation

All of the above options are correct.

Q 7 - Which of the following causes the loop to skip the remainder of its body and immediately retest its condition prior to reiterating in Go?

A - break

B - continue

C - goto

D - None of the above.

Answer : B

Explanation

continue causes the loop to skip the remainder of its body and immediately retest its condition prior to reiterating.

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 - In Go language, Pointer types are derived types.

A - false

B - true

Answer : B

Explanation

Yes! Pointer types are derived types.

Q 10 - Expressions that refer to a memory location is called "rvalue" expression.

A - false

B - true

Answer : A

Explanation

Expressions that refer to a memory location is called "lvalue" expression.

go_questions_answers.htm
Advertisements