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

Answer : C

Explanation

Both of the above options are correct.

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

Answer : C

Explanation

Both of the above options are correct.

Q 7 - In which of the following method of parameter passing, changes made to the parameter inside the function have no effect on the argument?

A - call by value.

B - call by reference

C - Both of the above.

D - None of the above.

Answer : A

Explanation

Call by value − changes made to the parameter inside the function have no effect on the argument.

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

A - false

B - true

Answer : B

Explanation

Yes! Pointer types are derived types.

Q 10 - The type for a case in select statement must be the a communication channel operation.

A - true

B - false

Answer : A

Explanation

The type for a case in select statement must be the a communication channel operation.


go_questions_answers.htm

Advertisements