Go Online Quiz


Advertisements

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 type inheritance?

A - yes

B - no

Answer : B

Explanation

No support for type inheritance.

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.

Answer : C

Explanation

Both of the above options are correct.

Answer : C

Explanation

Both of the above options are correct.

Answer : D

Explanation

All of the above options are correct.

Q 8 - Go programming language is strongly and statically typed, provides inbuilt support for garbage collection?

A - true

B - false

Answer : A

Explanation

Go programming language is strongly and statically typed, provides inbuilt support for garbage collection.

Q 9 - In Go language, a function/variable is exported if its name starts with capital letter.

A - true

B - false

Answer : A

Explanation

A function/variable is exported if its name starts with capital letter.

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