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

Answer : C

Explanation

Both of the above options are correct.

Q 2 - Which of the following is a derived type in Go?

A - Pointer types

B - Array types

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

Q 6 - Which of the following function returns the capacity of slice as how many elements it can be accomodate?

A - size()

B - len()

C - cap()

D - None of the above.

Answer : C

Explanation

cap() function returns the capacity of slice as how many elements it can be accomodate.

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

A - call by value.

B - call by reference

C - Both of the above.

D - None of the above.

Answer : B

Explanation

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

Q 9 - Go is a case sensitive language.

A - true

B - false

Answer : A

Explanation

Yes! Go is a case sensitive programming language.

Q 10 - In Go language, Slice types are inbuilt types.

A - false

B - true

Answer : A

Explanation

No! Slice types are derived types.

go_questions_answers.htm
Advertisements