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 2 - Can you declared multiple types of variables in single declaration in Go?

A - true

B - false

Answer : A

Explanation

Yes! Variables of different types can be declared in one go using type inference.

Q 3 - Which of the following operator gives remainder of after an integer division in Go?

A - ^

B - %

C - $

D - None of the above.

Answer : B

Explanation

% − Modulus Operator returns remainder of after an integer division.

Q 4 - Does Go supports function closures?

A - true

B - false

Answer : A

Explanation

Yes! function clousures are supported in Go. Functions closure are anonymous functions and can be used in dynamic programming.

Answer : C

Explanation

Both of the above options are correct.

Answer : C

Explanation

Both of the above options are correct.

Q 7 - Which of the following transfers control to the labeled statement in Go?

A - break

B - continue

C - goto

D - None of the above.

Answer : C

Explanation

goto transfers control to the labeled statement.

Q 8 - Go supports type inheritance.

A - true

B - false

Answer : B

Explanation

No support for type inheritance.

Q 9 - In Go language, variables of different types can be declared in one statement.

A - true

B - false

Answer : A

Explanation

Yes! Variables of different types can be declared in one go using type inference.

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