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 pointer arithmetics?

A - yes

B - no

Answer : B

Explanation

No support for pointer arithmetic.

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

Explanation

Both of the above options are correct.

Q 8 - Go supports operator overloading.

A - true

B - false

Answer : B

Explanation

No support for operator overloading.

Q 9 - A static type variable declaration requires compiler to interpret the type of variable based on value passed to it.

A - true

B - false

Answer : B

Explanation

A dynamic type variable declaration requires compiler to interpret the type of variable based on value passed to it.

Q 10 - Variables are rvalues and so may appear on the left-hand side of an assignment.

A - false

B - true

Answer : A

Explanation

Variables are lvalues and so may appear on the left-hand side of an assignment.

go_questions_answers.htm
Advertisements