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 operator overloading?

A - yes

B - no

Answer : B

Explanation

No support for operator overloading.

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

A - uint8

B - uint64

C - complex128

D - All of the above.

Answer : C

Explanation

complex128 is not a integer type.

Answer : C

Explanation

Both of the above options are correct.

Answer : D

Explanation

All of the above options are correct.

Q 5 - Which of the following is the default value of a global variable in Go?

A - Undefined

B - 0 or nil

C - Not fixed

D - None of the above.

Answer : B

Explanation

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

Answer : D

Explanation

All of the above options are correct.

Q 7 - Which of the following method of parameter passing, copies the actual value of an argument into the formal parameter of the function?

A - call by value.

B - call by reference

C - Both of the above.

D - None of the above.

Answer : A

Explanation

Call by value − This method copies the actual value of an argument into the formal parameter of the function.

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 - Dynamic type variable declaration provides assurance to the compiler that there is one variable existing with the given type and name.

A - true

B - false

Answer : B

Explanation

Static type variable declaration provides assurance to the compiler that there is one variable existing with the given type and name.

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