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 2 - Which of the following is a derived type in Go?

A - Interface types

B - Map types

C - Channel types

D - All of the above.

Answer : D

Explanation

All of the above are derived types.

Q 3 - Which of the following operator increases integer value by one in Go?

A - ++

B - %

C - --

D - None of the above.

Answer : A

Explanation

++ − Increments operator increases integer value by one.

Answer : D

Explanation

All of the above options are correct.

Answer : C

Explanation

Both of the above options are correct.

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 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